I've now been trying to get MinGW-w64 to work on my system for several days, mainly because it has a more recent GCC version, but I either set things up wrong or there's some strange problem with MinGW-w64 itself.
I've now downloaded i686-w64-mingw32-gcc-4.7.2-release-win32_rubenvb, unpacked it to C:/Dev/mingw-ruben
and added the path C:/Dev/mingw-ruben/bin
to the $PATH environment variable.
What I'm trying to build is SFML 2 which comes with a CMake file. Running CMake will work just fine, the compiler gets recognized and passes all test. CMake also finds the ar.exe
in the C:/Dev/mingw-ruben/bin
folder. After generating the MinGW Makefile I switch to the windows command line and run mingw32-make install
.
There's where the problem happens, I get the error:
mingw-ruben\bin\ar.exe: mingw-ruben/lib/libopengl32.a: No such file or directory
Or for the network library
mingw-ruben\bin\ar.exe: mingw-ruben/lib/libws2_32.a: No such file or directory
The error seems quite obvious and on check there really is no libopengl32.a
or libws2_32.a
in mingw-ruben/lib/
, but the files is actually located in C:/Dev/mingw-ruben/i686-w64-mingw32/lib
.
Now How can I tell ar/make/cmake to not only search in the mingw-ruben/lib
directory but also in the mingw-ruben/i686-w64-mingw32/lib
?
Would it be a good idea to copy all the content from the i686-w64-mingw32
subfolder to the mingw-ruben
root folder?
As a side note: I can call mingw32-make install
again and the procedure will continue but up on trying to link my application against SFML, I run into many unresolved symbol errors for the glXYZ
functions from within SFML.
Further information: I'm on Windows 8 x64, but I think that doesn't really matter and yes I've tried MSYS but it doesn't resolve any of my issues.
Am I doing something wrong? Do I have to configure things specially?