Qt debug
James Linder
jam at tigger.ws
Thu May 24 04:55:42 PDT 2012
On 24/05/2012, at 7:28 PM, Craig Treleaven wrote:
> 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
I do not know if I did anything to provoke or how to change, but no, eg
...
/opt/local/lib/libQtWebKit.4.9.0.dylib
/opt/local/lib/libQtWebKit.4.9.dylib
/opt/local/lib/libQtWebKit.4.dylib
/opt/local/lib/libQtWebKit.dylib
/opt/local/lib/libQtWebKit.la
/opt/local/lib/libQtWebKit.prl
/opt/local/lib/libQtXml.4.8.0.dylib
/opt/local/lib/libQtXml.4.8.dylib
/opt/local/lib/libQtXml.4.dylib
/opt/local/lib/libQtXml.dylib
/opt/local/lib/libQtXml.la
/opt/local/lib/libQtXml.prl
/opt/local/lib/libQtXmlPatterns.4.8.0.dylib
/opt/local/lib/libQtXmlPatterns.4.8.dylib
/opt/local/lib/libQtXmlPatterns.4.dylib
/opt/local/lib/libQtXmlPatterns.dylib
/opt/local/lib/libQtXmlPatterns.la
/opt/local/lib/libQtXmlPatterns.prl
James
More information about the macports-users
mailing list