Can't compile tgui against SFML 2.1 HEAD
« on: 11 November 2013, 16:57:33 »
Hi, I can't compile tgui against the current git head of SFML. I get this:

Code: [Select]
/usr/bin/ld: warning: libsfml-system.so.2, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libsfml-graphics.so, may conflict with libsfml-system.so.1.7
/usr/bin/ld: CMakeFiles/FormBuilder.dir/FormBuilder.cpp.o: référence au symbole non défini «_ZNK2sf6StringcvSsEv»
/usr/bin/ld: note: «_ZNK2sf6StringcvSsEv» est défini dans le DSO /usr/lib/libsfml-system.so.2 donc essayez de l'ajouter à la ligne de commande du lieur
/usr/lib/libsfml-system.so.2: could not read symbols: Opération invalide
collect2: erreur: ld a retourné 1 code d'état d'exécution
make[2]: *** [src/TGUI/FormBuilder/FormBuilder] Erreur 1
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Erreur 2
make: *** [all] Erreur 2

cmake version: 2.8.12.1

*

texus

  • *****
  • 1163
    • View Profile
    • Texus's Blog
Re: Can't compile tgui against SFML 2.1 HEAD
« Reply #1 on: 11 November 2013, 17:00:41 »
I have never seen that error before so I can only guess.

But I did notice this in your error:
Quote
may conflict with libsfml-system.so.1.7

So I think you may have an older sfml version still installed somewhere on you system that is causing problems.

Re: Can't compile tgui against SFML 2.1 HEAD
« Reply #2 on: 11 November 2013, 20:20:58 »
Indeed there was an old version of sfml somewhere and I managed to remove it, however I still have :

Code: [Select]
make[2]: *** Pas de règle pour fabriquer la cible « /usr/local/lib/libsfml-system.so », nécessaire pour « src/TGUI/FormBuilder/FormBuilder ». Arrêt.
make[1]: *** [src/TGUI/FormBuilder/CMakeFiles/FormBuilder.dir/all] Erreur 2
make: *** [all] Erreur 2

PS : Thank you for helping

Re: Can't compile tgui against SFML 2.1 HEAD
« Reply #3 on: 11 November 2013, 20:29:29 »
Sorry, I just found the problem, it was another old version of sfml in /usr/local that was the reason of the problem.

Thank you for helping.