Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error  (Read 3678 times)

0 Members and 1 Guest are viewing this topic.

seyuup

  • Newbie
  • *
  • Posts: 14
    • View Profile
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.



I hope someone will be able to share some insight on helping me solve the issue.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
« Reply #1 on: September 22, 2016, 07:47:12 am »
Do you have a graphics driver installed?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
« Reply #2 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.

seyuup

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
« Reply #3 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!

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
« Reply #4 on: September 22, 2016, 04:07:15 pm »
Yes, that's the easiest way to do so.

seyuup

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [Windows 8.1] - Building SFML 2.4.0 - MinGW-w64 - Cmake OpenGL error
« Reply #5 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.

 

anything