SFML community forums

Help => General => Topic started by: seyuup on September 22, 2016, 03:58:08 am

Title: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: seyuup on September 22, 2016, 03:58:08 am
Hello, I've been trying to build SFML from source over the past few days (I'm used to just using Visual Studio, but I wanted to try using CLion with MinGW-w64.

While following the build tutorial on the main site, I unfortunately encountered an error that I have no idea how to solve. Here is Cmake and the error.

(http://i1356.photobucket.com/albums/q724/seyuup/Capture_zps3sjvwfou.png)

I hope someone will be able to share some insight on helping me solve the issue.
Title: AW: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: eXpl0it3r on September 22, 2016, 07:47:12 am
Do you have a graphics driver installed?
Title: Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: Mario on September 22, 2016, 10:06:54 am
You're having some issues with your environment/path.

CMake somehow picked up some stuff from MinGW and some stuff from Cygwin. That shouldn't happen. Try removing Cygwin's bin dir  from your path, then try again starting from scratch.
Title: Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: seyuup on September 22, 2016, 02:29:28 pm
eXpl0it3r - Yes, I just recently updated my Nvidia GeForce driver to GeForce Game Ready.

Mario - Ok, I will remove it from the path. How exactly do I start from scratch? Remove any files created in SFML_2.4.0_BUILD and clear Cmake's cache?

Thanks for the speedy responses!
Title: Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: Mario on September 22, 2016, 04:07:15 pm
Yes, that's the easiest way to do so.
Title: Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
Post by: seyuup on September 23, 2016, 05:30:01 am
Mario - Thank you very much, that did the trick. I think I'm going to make a video showing how to setup SFML with Clion, as it was quite a mess trying to figure it out with little knowledge of MinGW and Cmake.

Thanks again.