Tip : changing the build type

Post Reply
vdelanno
Posts: 14
Joined: Mon Feb 09, 2009 5:10 pm

Tip : changing the build type

Post by vdelanno »

By default, OpenviBE compiles in Release mode.

Users wishing to debug the software may want to switch to Debug mode. This can be done by changing the build type in the win32-build.cmd script file (linux-build.cmd for Linux developers):

Code: Select all

(...)
cmake -DCMAKE_BUILD_TYPE=Debug
(...)
Also, when changing the build type, it is a good rule of thumb to first clean your project, THEN edit the cleaning script ( [win32/linux]-clean.cmd) so that build types used in both scripts are identical.

Finally, Windows developers wishing to use 3D features should edit their configuration file (by default, openvibe-kernel-omk\trunc\share\openvibe.conf) and enable the right token, depending on the build type :

Code: Select all

(...)
#comment out this token when build type is Debug
#Kernel_3DVisualisationOgrePluginsWindows = $Environment{OGRE_HOME}/bin/release/Plugins.cfg
Kernel_3DVisualisationOgrePluginsWindows = $Environment{OGRE_HOME}/bin/debug/Plugins.cfg
(...)

Post Reply