[solved] qmake und irritierendes exists()
Verfasst: 15. Januar 2011 13:58
Hallo
Ich versuche mein qt-Projekt für debian und andere Linuxe gleichermaßen zu programmieren. allerdings verwendet debian eine ältere Bibliothek weshalb ich dafür eine Linkeroption streichen muss.
Versucht habe ich es im Projectfile zu lösen:Auf meinem Testsystem sollte erste Abfrage zustimmen, leider tuts die zweite auch. Dementsprechend weiß ich überhaut nicht mehr, ob ich die Funktion richtig anwende:Weiß jemand Rat?
Vielen Dank für jede Antwort.
Ich versuche mein qt-Projekt für debian und andere Linuxe gleichermaßen zu programmieren. allerdings verwendet debian eine ältere Bibliothek weshalb ich dafür eine Linkeroption streichen muss.
Versucht habe ich es im Projectfile zu lösen:
Code: Alles auswählen
#check dcmtk-libs lower than 3.6.0 without -loflog
!exists( /usr/include/dcmtk/oflog/oflog.h )
{
message( "Not found oflog-lib in usual path, testing second" )
!exists( ../../binary/include/dcmtk/oflog/oflog.h )
{
message( "Not found oflog-lib in private path, assume dcmtk <=3.6.0" )
LIBS -= -loflog #this does work, but it shouldn't
}
}Code: Alles auswählen
bash ~/develop/cpp/dicomclient/cvs_sandbox/ourdicom $ qmake
Project MESSAGE: Not found oflog-lib in usual path, testing second
Project MESSAGE: Not found oflog-lib in private path, assume dcmtk <=3.6.0
bash ~/develop/cpp/dicomclient/cvs_sandbox/ourdicom $ ls /usr/include/dcmtk/oflog/oflog.h
ls: Zugriff auf /usr/include/dcmtk/oflog/oflog.h nicht möglich: Datei oder Verzeichnis nicht gefunden
bash ~/develop/cpp/dicomclient/cvs_sandbox/ourdicom $ ls ../../binary/include/dcmtk/oflog/oflog.h
../../binary/include/dcmtk/oflog/oflog.h
bash ~/develop/cpp/dicomclient/cvs_sandbox/ourdicom $ Vielen Dank für jede Antwort.