Hello Gerrit,
I'm just compiling the head of trunc from scratch. All is working fine so
far...
"Gerrit Voß" <[email protected]> schrieb im
Newsbeitrag news:[email protected]...
>
> Could you let me know in which case it came out wrong.
>
The current version of trunc works just fine out of the box.
>
> I finished switching the support libs to imported targets so the windows
> variants should work correctly for the debug and release version for the
> cases where the supportlibs from OpenSG are not used.
>
I appreciate that...
One other small configuration problem I have to solve. As I stated several
times, I have to compile a special source file and link a special library
for memory management purpose to each dynamic link library I use. Currently
I perform this step by changing the BuildFunctions.cmake and
SetupCompiler.cmake scripts in the following way.
BuildFunctions.cmake: Function OSG_SETUP_LIBRARY_BUILD
------------------------------------------------------
I added my source file explicitly by adding the following line to the
ADD_LIBRARY call:
${CMAKE_INSTALL_PREFIX}/include/MemManager/NewDeleteImpl.cpp
SetupCompiler.cmake: Shared Linker Flags section
------------------------------------------------
I added the library explicitly for each build type:
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASENOOPT
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} msvcprt.lib msvcrt.lib
${CMAKE_INSTALL_PREFIX}/lib/MemManager.lib"
CACHE STRING "OpenSG defaults" FORCE )
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} msvcprtd.lib msvcrtd.lib
${CMAKE_INSTALL_PREFIX}/lib/MemManagerD.lib"
CACHE STRING "OpenSG defaults" FORCE )
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUGOPT
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /debug msvcprtd.lib
msvcrtd.lib ${CMAKE_INSTALL_PREFIX}/lib/MemManagerD.lib"
CACHE STRING "OpenSG defaults" FORCE )
SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /debug msvcprt.lib msvcrt.lib
${CMAKE_INSTALL_PREFIX}/lib/MemManager.lib"
CACHE STRING "OpenSG defaults" FORCE )
SET(CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
"${CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL} msvcprt.lib msvcrt.lib
${CMAKE_INSTALL_PREFIX}/lib/MemManager.lib"
CACHE INTERNAL "OpenSG defaults" FORCE )
SET(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
"${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO} msvcprt.lib msvcrt.lib
${CMAKE_INSTALL_PREFIX}/lib/MemManager.lib"
CACHE INTERNAL "OpenSG defaults" FORCE )
Now this works but is cumbersome. Is there an existing better way to do
that, i.e. a configuration point from the outside. If not might it be
possible to add such an infrastructure.
Anyway, thank you for the great work on the build system. Actually, I have
learned alot.
Best,
Johannes
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users