View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013991CMakeCMakepublic2013-03-07 23:292013-10-07 10:03
ReporterMatthew Lund 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformMacOSMountain LionOS Version10.8.2
Product VersionCMake 2.8.10.2 
Target VersionFixed in Version 
Summary0013991: QTXML Library Not Found
DescriptionWhen 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
Steps To ReproduceEvery time when running make for cadmesh.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032535)
Brad King (manager)
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 (manager)
2013-10-07 10:03

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-03-07 23:29 Matthew Lund New Issue
2013-03-08 07:54 Brad King Note Added: 0032535
2013-03-08 07:54 Brad King Status new => resolved
2013-03-08 07:54 Brad King Resolution open => no change required
2013-10-07 10:03 Robert Maynard Note Added: 0033982
2013-10-07 10:03 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team