Difference between revisions of "BuildWindowsCore"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(Building the CalVR-Core for Windows)
(Building the CalVR-Core for Windows (!!!under construction!!!))
Line 28: Line 28:
 
After setting everything to your needs press again "configure" and all red lines should disappear. In case there are still some unknown variables left, correct them or leave it as it is and press "configure" again.  
 
After setting everything to your needs press again "configure" and all red lines should disappear. In case there are still some unknown variables left, correct them or leave it as it is and press "configure" again.  
 
Now you can generate the solution file by pressing "generate".  
 
Now you can generate the solution file by pressing "generate".  
If everything goes right, you should now see a OpenScenegraph.sln file in the folder you entered in "Where to build binaries". Open it in Visual Studio and select your build type (Debug, Release, RelWithDebugInfo, MinSizeRel). Click on '''build''' --> '''build solution'''. This starts the build process which can take several minutes. In general everything should build correct, so that you are able to right click on the "INSTALL" project and select "build". After the build is finished you can check your installation by entering the following command in a comammd prompt:
+
If everything goes right, you should now see a OpenScenegraph.sln file in the folder you entered in "Where to build binaries". Open it in Visual Studio and select your build type (Debug, Release, RelWithDebugInfo, MinSizeRel). Click on '''build''' --> '''build solution'''. This starts the build process which can take several minutes. In general everything should build correct, so that you are able to right click on the "INSTALL" project and select "build". After the build is finished you can check your installation by entering the following command in a command prompt:
  
 
<pre>
 
<pre>
Line 35: Line 35:
  
 
It is possible that there will be an error while building the "INSTALL" project where the compiler couldn't create a file under C:\Program files(x86)\... . This happens because you need administrative rights to create a file there.
 
It is possible that there will be an error while building the "INSTALL" project where the compiler couldn't create a file under C:\Program files(x86)\... . This happens because you need administrative rights to create a file there.
It can be solved by adding the directory manuelly
+
It can be solved by adding the directory manually.
it could not create a folder in C:\Program files(x86). If this happens, create the specified directory manually which should solve the error.
+
 
  
  
Line 52: Line 52:
 
Now you can build the solution so that you get an executable called "CalVR".
 
Now you can build the solution so that you get an executable called "CalVR".
 
If the error occur that a header-file could not be found , go to properties under the project menue. There gor to VC++ - Directories and control the Include-directory path.
 
If the error occur that a header-file could not be found , go to properties under the project menue. There gor to VC++ - Directories and control the Include-directory path.
 +
 +
 +
 +
 +
 +
 +
  
 
* aufzaehlung 1
 
* aufzaehlung 1

Revision as of 15:10, 30 October 2014

Contents

Building the CalVR-Core for Windows (!!!under construction!!!)

Prerequisits

There are some requirement that has to be fullfilled for successfully builing the CalVR core. The following software is needed for the installation:


  • Cmake GUI (version 2.8.12.2 is used in the test-environment)
  • OpenSceneGraph (version 3.2.0 is used in the test-environment)
  • Visual Studio (version 2012 is used in the test-environment)


OSG - Installation

After downloading the OSG source code, extract the files in a folder under your main directory (in general your C:\ drive). Now start Cmake GUI and enter the directories "Where is the source code" and "Where to build the binaries". You can also drag and drop the Cmakelists.txt file that is located in the OSG-root directory. Click on "configure". Now you can costomize your build. Red lines indicate new variables that can be set or modified. Most of them are optional and some are already set. Pay attention to the following variables that they are set correctly:

- OSG_ROOT            C:\osg\OpenSceneGraph-3.2.0
- OSG_INCLUDE_PATH    C:\osg\OpenSceneGraph-3.2.0\include
- OSG_BIN_PATH        C:\osg\OpenSceneGraph-3.2.0\bin
- OSG_LIB_PATH        C:\osg\OpenSceneGraph-3.2.0\lib

After setting everything to your needs press again "configure" and all red lines should disappear. In case there are still some unknown variables left, correct them or leave it as it is and press "configure" again. Now you can generate the solution file by pressing "generate". If everything goes right, you should now see a OpenScenegraph.sln file in the folder you entered in "Where to build binaries". Open it in Visual Studio and select your build type (Debug, Release, RelWithDebugInfo, MinSizeRel). Click on build --> build solution. This starts the build process which can take several minutes. In general everything should build correct, so that you are able to right click on the "INSTALL" project and select "build". After the build is finished you can check your installation by entering the following command in a command prompt:

osgversion

It is possible that there will be an error while building the "INSTALL" project where the compiler couldn't create a file under C:\Program files(x86)\... . This happens because you need administrative rights to create a file there. It can be solved by adding the directory manually.


building CalVR Core

Building CalVR under Windows needs much attention on environment variables and the right set up of Visual Studio, otherwise you probably get many errors. The first thing is to copy the source files in a folder directly under your c:\ - drive. Similar to the OSG-Build open the Cmake-GUI and enter the directories where to find the code and where to build the binaries. Press Configure and set the variables to your needs. Most important are the OSG-variables, so be sure that they are correct. Also set the following environment variables if not already set:

- CALVR_HOME           C:\CalVR
- CALVR_CONFIG_DIR     C:\CalVR\config
- CALVR_CONFIG_FILE    config.xml

Press generate to build the solution file for visual studio and open it afterwards. Now you can build the solution so that you get an executable called "CalVR". If the error occur that a header-file could not be found , go to properties under the project menue. There gor to VC++ - Directories and control the Include-directory path.





  • aufzaehlung 1
    • unterpunkt
  • aufzaehlung 2
  • aufzaehlung 3
1         aligned text 1
2 nochmal aligned

1 aligned text 1 2 nochmal aligned


ausprobieren: fettgedruckt

Dies ist ein Link zu einer Webseite.

Unterabschnitt