-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while making moongl #9
Comments
You are compiling for Lua 5.3, but it is either not installed, or it is not in a standard location (the error says that it cannot find the Lua headers, lua.h & C). |
Thank you, how can I install the header files? |
Install Lua 5.3. This also installs the header files. As an aside, it may be that you have already installed Lua version 5.4, which is the current version. If this is the case, and you want to use this version, you have to compile with the LUAVER=5.4 flag (see here). |
I installed the Lua 5.3 binaries, but it didn't install the header files. I will try to find a way to install Lua 5.3. |
If you are using MSYS2, just follow these instructions. This will install the latest packaged version, which currently is Lua 5.4. If you really need to use 5.3, though, you should be able to install it from the sources which you can find at www.lua.org. Download the package for the version you are interested in (e.g. lua-5.3.6.tar.gz) , and run these commands from a mingw shell:
|
Now I am getting this error:
|
First of all, I heartily suggest you to follow the installation instructions, step by step. By just following them, you wouldn't get any of these errors. They are written specifically for this purpose. That said, this last error tells you that the GLEW library (libglew) is missing from your system. The solution is to install libglew, which (as stated in the above instructions) is a required dependency for moongl. |
I installed glew with msys2 however it still isn't working, I also followed the installation instructions. |
It seems that your system isn't recognized as MINGW, but regarded as LINUX instead. The makefile (src/Makefile) detects that the system is MINGW by checking the MINGW_PREFIX environment variable, which should be predefined. This suggests that the MINGW_PREFIX variable is not defined in the shell you are compiling in. To check it, run |
|
Are you working in a plain mingw shell? Try However, you should execute the export command in the shell that you are using to compile the library, like the one you used to install other programs with pacman as per the instructions. The instructions also tell you the shell launcher you should use to execute the shell. MSYS2 pre-defines a few environment variables, like MINGW_PACKAGE_PREFIX and MINGW_PREFIX. The former is useful to detect if the system is 32 or 64 bit, and thus to select the appropriate package when installing something with pacman. The latter (MINGW_PREFIX) contains the base path for the mingw directory tree. The makefiles for my libraries rely on this variable both to detect that the system is mingw (instead of linux, or macos) and adjust the build commands accordingly, and to decide where to install them when you run |
Oh thanks, it echoed |
Do you mean that you still get the By the way, another strange thing I noticed in your logs is that |
I'm not getting the -DLINUX flag, I am getting the same glew error. And yes, I am following the instructions |
Are you sure about the flag? If the error you get is still I really don't know what's going on on your system, but we can try a workaround. Edit EDIT: If this is actually the culprit, the problem should be solved by just commenting out line 14 in src/Makefile, i.e. by just adding a leading '#' like so: Again, let me know if this works. In case, I'll have to fix the makefile in the main branch (and also the makefiles of the other libraries...). Thank you |
While building moongl I get this error:
Can anyone help?
The text was updated successfully, but these errors were encountered: