Hello Johannes, Gerrit, On 2015-10-22 07:41, Johannes wrote:
I have one additional small problem with the build system. I got an unresolved external symbol error from a missing memmanager library in target simplePluginApp. That target is somehow special and does not add the OSG_GLOBAL_LIB dependencies. I have temporarily added the following line of cmake code
hmm, why is that not a problem for the tests? I guess the difference is they link with at least one OpenSG library and pull in the memmanager symbols that way?
TARGET_LINK_LIBRARIES(simplePluginApp ${${OSG_GLOBAL_LIB}}) into Contrib/CSMPlugin/SimpleTest/CMakeLists.Lib.OSGContribCSMSimplePlugin.txt which resolves this error. Probably there is a more elegant solution that would be more in the line of the other executable targets?
Given that this is indeed a special target that (intentionally) does not link with any OpenSG libs and also avoids the rest of the build machinery this is probably the simplest solution.
Gerrit: I'll push the attached patch in a few days if there are no objections. Thanks!
Cheers, Carsten
diff --git a/Source/Contrib/CSMPlugin/SimpleTest/CMakeLists.Lib.OSGContribCSMSimplePlugin.txt b/Source/Contrib/CSMPlugin/SimpleTest/CMakeLists.Lib.OSGContribCSMSimplePlugin.txt index 6e309fa..751cded 100644 --- a/Source/Contrib/CSMPlugin/SimpleTest/CMakeLists.Lib.OSGContribCSMSimplePlugin.txt +++ b/Source/Contrib/CSMPlugin/SimpleTest/CMakeLists.Lib.OSGContribCSMSimplePlugin.txt @@ -11,6 +11,10 @@ IF(${OSGBUILD_OSGContribCSMSimplePlugin}) ADD_EXECUTABLE(simplePluginApp ${OSGEXCLUDE_TESTS} simplePluginApp.cpp ${OSG_ADD_GLOBAL_EXE_SRC}) + IF(OSG_GLOBAL_LIB) + TARGET_LINK_LIBRARIES(simplePluginApp ${OSG_GLOBAL_LIB}) + ENDIF() + IF(UNIX) TARGET_LINK_LIBRARIES(simplePluginApp ${OSG_DL_LIB} ${OPENGL_gl_LIBRARY}) ENDIF()
------------------------------------------------------------------------------
_______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users