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

Author Topic: odd error when compiling sfml  (Read 684 times)

0 Members and 1 Guest are viewing this topic.

charliesnike

  • Newbie
  • *
  • Posts: 10
    • View Profile
odd error when compiling sfml
« on: November 23, 2014, 12:01:49 pm »
history:
It was not 3 hours ago i was going through a tutorial on sfml and compiling it fine, then got an error saying directory was not there. Throughout the process, i had trouble with g++, so i purged g++ from my ubuntu and reinstalled.

I also reinstalled some pre-reqs, but i still get the same error:


Quote
sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev  libx11-dev libxrandr-dev libfreetype6-dev libglew1.5-dev libjpeg8-dev libsndfile1-dev libopenal-dev cmake


after reinstalling i now get this error:

Quote
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.

after putting in that argument i get this error:

Quote
g++: error: LIBGL_DEBUG=verbose: No such file or directory

I am not really sure where to go after this. I have spent the better part of tonight messing with the error i had with g++, and now that i have that working well, i seem to be stuck yet again at sfml. I am not really sure what intially sparked the problem in the first place as i was just compiling sfml between tutorials at the time, not installing, not hcanging config files, or not updating or anything. So its odd that it just seemed to happen out of thin air.


g++  -std=c++11  -Wall -o "%e" "%f" -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system &&"./%e"
sfml 2.1 on ubuntu 13.04
gcc version 4.7.3

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10224
    • View Profile
    • development blog
    • Email
Re: odd error when compiling sfml
« Reply #1 on: November 23, 2014, 02:34:08 pm »
So is your issue now solved or not? With what are you stuck with?

Quote
libGL error: failed to load driver: swrast
Did it ever occur to you, that someone else on this world might have had the same error, i.e. did you try to google for the issue? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/