MantisBT - CMake
View Issue Details
0013991CMakeCMakepublic2013-03-07 23:292013-10-07 10:03
Matthew Lund 
 
highmajoralways
closedno change required 
MacMountain Lion10.8.2
CMake 2.8.10.2 
 
0013991: QTXML Library Not Found
When compiling Cadmesh using CMake, every time the library Qtxml cannot be found during make.

Scanning dependencies of target cadmesh
[100%] Building CXX object CMakeFiles/cadmesh.dir/src/CADMesh.cc.o
Linking CXX shared library libcadmesh.dylib
ld: library not found for -lQtXml
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libcadmesh.dylib] Error 1
make[1]: *** [CMakeFiles/cadmesh.dir/all] Error 2
make: *** [all] Error 2

Found a similar issue 0013765, trying adding the sample program, same issue, but I was able to resolve adding the -F /Library/Frameworks to the linker command, but it still won't work with Cadmesh. I can successfully compile Cadmesh on linux with Cmake 2.8.10
Every time when running make for cadmesh.
No tags attached.
Issue History
2013-03-07 23:29Matthew LundNew Issue
2013-03-08 07:54Brad KingNote Added: 0032535
2013-03-08 07:54Brad KingStatusnew => resolved
2013-03-08 07:54Brad KingResolutionopen => no change required
2013-10-07 10:03Robert MaynardNote Added: 0033982
2013-10-07 10:03Robert MaynardStatusresolved => closed

Notes
(0032535)
Brad King   
2013-03-08 07:54   
This is a bug in cadmesh. It hard-codes the "QtXml" library instead of using the find_package result. Patch:

-target_link_libraries(cadmesh ${TETGEN_TARGET} ${VCGLIB_TARGET} QtXml)
+target_link_libraries(cadmesh ${TETGEN_TARGET} ${VCGLIB_TARGET} ${QT_LIBRARIES})

OR:

-target_link_libraries(cadmesh ${TETGEN_TARGET} ${VCGLIB_TARGET} QtXml)
+target_link_libraries(cadmesh ${TETGEN_TARGET} ${VCGLIB_TARGET} ${QT_QTXML_LIBRARIES})
(0033982)
Robert Maynard   
2013-10-07 10:03   
Closing resolved issues that have not been updated in more than 4 months.