Bonjour à tous,
J'ai actuellement un projet sous Qt. Je dois utiliser Cmake.
je crée des librairies. Cela marche sans problèmes.
Par contre, mon executable avec Qt ne trouve pas un certain fichier, voila ce que cela me renvoie :
Linking CXX executable exec_avec_Qt
/usr/bin/ld: cannot find -lQtGui
collect2: ld a retourné 1 code d'état d'exécution
Dans mon CMakeLists, j'écris ce qui suit pour faire mon lien avec Qt :
FIND_PACKAGE( Qt4 REQUIRED )
INCLUDE( ${QT_USE_FILE} )
TARGET_LINK_LIBRARIES(exec_avec_Qt -static lib1 lib2 lib3 ${QT_LIBRARIES})
Pouvez vous m'aider s'il vous plait!
Merci d'avance
Partager