Can't compile tgui against SFML 2.1 HEAD

Started by biatch, 11 November 2013, 16:57:33

biatch

Hi, I can't compile tgui against the current git head of SFML. I get this:

/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

I have never seen that error before so I can only guess.

But I did notice this in your error:
Quotemay 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.

biatch

Indeed there was an old version of sfml somewhere and I managed to remove it, however I still have :

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

biatch

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.