Qt debug

Craig Treleaven ctreleaven at cogeco.ca
Thu May 24 04:28:31 PDT 2012


At 10:58 AM +0800 5/24/12, James Linder wrote:
>Hi
>If anyone can save me ages of hunting I'd appreciate it lots:
>
>I built Qt [port install qt4-mac-devel]
>
>I then built my application which fails with:
>
>...
>/usr/bin/g++-4.2 -headerpad_max_install_names -arch x86_64 
>-Xarch_x86_64 -mmacosx-version-min=10.6 -o 
>vtext.app/Contents/MacOS/vtext obj/main.o obj/myxml.o 
>obj/TextOverlay.o obj/moc_TextOverlay.o     -L../serial/lib 
>-lqextserialport -L/opt/local/lib -lQtXml_debug -lQtGui_debug 
>-lQtCore_debug
>ld: library not found for -lQtXml_debug
>collect2: ld returned 1 exit status
>make: *** [vtext.app/Contents/MacOS/vtext] Error 1
>
>If I then by hand run the link command without the _debug suffixs 
>then all works perfectly.
>
>Where does the macports install of QT store the debug directive?
>nothing in my file.pro mentions debug.
>
Hi James

I don't have the debug version installed right now, but I'm sure the 
debug libraries were stored in the same directory with the regular 
versions.  Eg:

/opt/local/lib/libQtXml.4.8.1.dylib
/opt/local/lib/libQtXml_debug.dylib

HTH

Craig


More information about the macports-users mailing list