Lately I have been finding that the FindQt4.cmake module is broken
for Qt4 installs that are not in "standard" locations. The I ended up
swapping the latest FindQt4.cmake from CVS HEAD of CMake with my
current installed FindQt4.cmake and things seem to be much better.
Also. Did you compile Qt4 yourself? Did you compile Qt4 as Frameworks
or as libraries? This is selected in the ./configure stage of Qt 4
compilation using the --frameworks or --no-frameworks.
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Oct 12, 2007, at 3:27 AM, Martin Buchleitner wrote:
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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake