Can't compile tgui against SFML 2.1 HEAD

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


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

/usr/bin/ld: warning:, needed by /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/, may conflict with
/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/ donc essayez de l'ajouter à la ligne de commande du lieur
/usr/lib/ 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:


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

But I did notice this in your error:
Quotemay conflict with

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


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/ », 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


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.