[CMake] linking error after upgrading to snow leopard
S Roderick
kiwi.net at mac.com
Fri Sep 11 14:34:42 EDT 2009
On Sep 11, 2009, at 14:27 , Sean McBride wrote:
> On 9/11/09 4:24 PM, Boudewijn Rempt said:
>
>> I'm getting weird linking errors after I upgraded to Snow Leopard.
>> I'm using
>> the CVS version of cmake. If I have the MACOSX_BUNDLE flag in
>> ADD_EXECUTABLE,
>> there are lots of weird visiblity errors like:
>> nking CXX executable HyvesDesktop.app/Contents/MacOS/HyvesDesktop
>> /usr/local/bin/cmake -E cmake_link_script CMakeFiles/
>> HyvesDesktop.dir/
>> link.txt --verbose=1
>> /usr/bin/c++ -mmacosx-version-min=10.6 -Wall -arch i386 -fPIC -
>> fvisibility=hidden -fvisibility-inlines-hidden -Wl,-
>> search_paths_first -
>> headerpad_max_install_names -fPIC CMakeFiles/HyvesDesktop.dir/
>> HyvesDesktop_automoc.cpp.o CMakeFiles/HyvesDesktop.dir/src/main.cpp.o
>> CMakeFiles/HyvesDesktop.dir/qrc_HyvesDesktop.cxx.o -o
>> HyvesDesktop.app/
>> Contents/MacOS/HyvesDesktop
>> Undefined symbols:
>> "CrashHandler::CrashHandler::~CrashHandler()", referenced from:
>> _main in main.cpp.o
>> _main in main.cpp.o
>> "QString::free(QString::Data*)", referenced from:
>> QString::~QString()in main.cpp.o
>> "Updater::Updater::instance()", referenced from:
>> _main in main.cpp.o
>
> Are all those symbols from some library/framework you are linking
> against? Qt I assume?
Do you need to explicitly list the Qt libraries to link against, in
the above link command line?
Stephen
More information about the CMake
mailing list