Hi,
from a conversation quoted:
On mac i get now following error when i try to compile:
Linking CXX shared library libMhcfg.dylib
cd /Users/mabu/Documents/uni/robocup05/build/base/config && /usr/
local/bin/cmake -P CMakeFiles/Mhcfg.dir/cmake_clean_target.cmake
cd /Users/mabu/Documents/uni/robocup05/build/base/config && /usr/
local/bin/cmake -E cmake_link_script CMakeFiles/Mhcfg.dir/link.txt
--verbose=1
/usr/bin/c++ -dynamiclib -headerpad_max_install_names -o
libMhcfg.dylib -install_name /Users/mabu/Documents/uni/robocup05/
build/base/config/libMhcfg.dylib "CMakeFiles/Mhcfg.dir/document.o"
"CMakeFiles/Mhcfg.dir/section.o" "CMakeFiles/Mhcfg.dir/util.o"
"CMakeFiles/Mhcfg.dir/replacer.o" "CMakeFiles/Mhcfg.dir/
xml_file.o" "CMakeFiles/Mhcfg.dir/schema_node.o" "CMakeFiles/
Mhcfg.dir/class_generator.o" -lQtCore -lQtXml
/usr/bin/libtool: can't locate file for: -lQtCore
/usr/bin/libtool: file: -lQtCore is not an object file (not
allowed in a library)
/usr/bin/libtool: can't locate file for: -lQtXml
/usr/bin/libtool: file: -lQtXml is not an object file (not allowed
in a library)
I got the hint to look at FindQt4.cmake - ok, but QT_USE_FRAMEWORKS
is set to ON.
The following command works:
/usr/bin/c++ -dynamiclib -headerpad_max_install_names -o
libMhcfg.dylib -install_name /Users/mabu/Documents/uni/robocup05/
build/base/config/libMhcfg.dylib "CMakeFiles/Mhcfg.dir/document.o"
"CMakeFiles/Mhcfg.dir/section.o" "CMakeFiles/Mhcfg.dir/util.o"
"CMakeFiles/Mhcfg.dir/replacer.o" "CMakeFiles/Mhcfg.dir/xml_file.o"
"CMakeFiles/Mhcfg.dir/schema_node.o" "CMakeFiles/Mhcfg.dir/
class_generator.o" -F/usr/local/Trolltech/Qt-4.3.2/lib -framework
QtXml -framework QtCore -lException -L../exception
I followed the message in http://public.kitware.com/pipermail/cmake/
2006-March/008781.html
May be is this the same error?
Thanks, Martin
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake