I am unable to compile the GLFW libraries for Win32 MingW. While I’ve never compiled from the command line before, I’m fairly sure I’m doing it correctly.
I can see the list of supported compilers, and can run ‘make win32-mgw’ without errors, but no files are created.
Any ideas? Or is there somewhere I can download precompiled libraries?
Could you elaborate "without errors"? When you compile (type make win32-mgw), you should see a bunch of lines telling which files are compiled. The first couple of lines read like this on my system:
Just a guess: have you set the PATH variable correct? Either do it in the environment variables (hard to find setting under Windows), or do:
set PATH=%PATH%;C:\Path\To\DevCpp\bin
(or similar) on the command line (you have to do it every time you start a new command prompt). You shouldn’t have to copy make.exe, it should be in the PATH.
Which system are you using? I seem to recall some problems with Win98 (bad path to the make program in the $(MAKE) variable). If so, try fixing it by uncommenting the line in the top level Makefile that says MAKE = make.
Yes, you are right. The best thing would be to fix it somehow in compile.bat (detect if the make program will execute at all, for instance).
It would be so much easier under Unix, since there everything is standardized, and you can do things like ‘rm -f’… Under Windows we are crippled by the utterly impotent and unstandardized command line interpetrer and commands.
$ make win32-mgw
.\compile.bat: @echo: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: REM: command not found
.\compile.bat: line 10: syntax error near unexpected token `(i’
.\compile.bat: line 10: `REM * Windows NT, 2000 and 9x (it’s easier to make a script/makefile’
make: *** [win32-mgw] Error 2
Don’t use MSYS. It’s a Un*x-type shell and will not understand MS-DOS/Windows .BAT files. Set up the path to the MinGW bin folder and run the make from a normal command prompt (called MS-DOS prompt under Win98).
Also make sure that you are using the right make program (I believe MSYS and MinGW come with separate flavours of the make program), and under Win98 you may have to change the top level Makefile (see the comment about the $(MAKE) variable at the beginning of the file) because of a bug in the MinGW make program under Win98.