Changes between Version 7 and Version 8 of OsgVbpBuildEnvWindows


Ignore:
Timestamp:
Aug 4, 2010, 9:23:58 PM (14 years ago)
Author:
Torben Dannhauer
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OsgVbpBuildEnvWindows

    v7 v8  
    3030The followin enviroment variables are required:
    3131|| Env Variable || Content || Explanation
    32 || OSG || %OSG_ROOT%\bin;D:\OpenSceneGraph\3rdParty_x86_x64\x86\bin\; || Binary files of OSG and the 3rdparty ||
    33 || OSG_X64 || %OSG_ROOT_X64%\bin;D:\OpenSceneGraph\3rdParty_x86_x64\x64\bin\; || Binary files of OSG and the 3rdparty in 64 bit||
    34 || OSG_FILE_PATH || D:\OpenSceneGraph\Data;D:\OpenSceneGraph\Data\Images || Path to the example data files ||
     32|| OSG || %OSG_ROOT%\bin;D:\!OpenSceneGraph\3rdParty_x86_x64\x86\bin\; || Binary files of OSG and the 3rdparty ||
     33|| OSG_X64 || %OSG_ROOT_X64%\bin;D:\!OpenSceneGraph\3rdParty_x86_x64\x64\bin\; || Binary files of OSG and the 3rdparty in 64 bit||
     34|| OSG_FILE_PATH || D:\!OpenSceneGraph\Data;D:\!OpenSceneGraph\Data\Images || Path to the example data files ||
    3535|| OSG_NOTIFY_LEVEL || WARN || Notify level for the console output ||
    36 || OSG_ROOT || D:\OpenSceneGraph\OpenSceneGraph-2.9.9_x86 || Root folder of the 32 bit OSG build ||
    37 || OSG_ROOT_X64 || D:\OpenSceneGraph\OpenSceneGraph-2.9.9_x64 || Root folder of the 64 bit OSG build ||
    38 || PATH || %PATH%;%OSG%;OSG_X64 || extend the PATH with the OSG binary pathes to start osg from konsole. add both architectures, but at first the one you want to use for in-source debugging. ||
     36|| OSG_ROOT || D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x86 || Root folder of the 32 bit OSG build ||
     37|| OSG_ROOT_X64 || D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x64 || Root folder of the 64 bit OSG build ||
     38|| PATH || %PATH%;%OSG%;OSG_X64 || extend the PATH with the OSG binary pathes to start osg from konsole. Add both architectures, but at first the one you want to use for in-source debugging. ||
    3939
    4040
     
    6262
    6363The steps to build OSG are:
    64  * CMAKE starten und Sourcecode wählen
    65   * Sourcecode Verzeichnis:  D:/OpenSceneGraph/OpenSceneGraph-2.9.9
    66   * Build Binaries Verzeichnis: D:/OpenSceneGraph/OpenSceneGraph-2.9.9
    67  * Optionen für gewähltes Sourcecodeverzeichnis einstellen
    68   * ACTUAL_3RDPARTY_DIR   D:/OpenSceneGraph/3rdparty
    69   * CMAKE_INSTALL_PREFIX  D:/OpenSceneGraph/OpenSceneGraph-2.9.9
    70   * BUILD_MFC_EXAMPLES    true    (Diese Option erscheint erst, wenn BUILD_OSG_EXAMPLE auf true gesetzt wurde und einmal ein "Configure" ausgeführt wurde)
    71   * BUILD_WRAPPER         true   
    72  * configure ausführen, bei Fehlern diese beseitigen
    73  * Generate ausführen -> MS Visual Studio Solution wird erzeugt
    74  * D:/OpenSceneGraph/OpenSceneGraph-2.9.8 betreten und !OpenSceneGraph.sln öffnen
    75  * BUILD_ALL einmal als Debug und einmal als Release kompilieren ( Bei Fehlern immer wieder OHNE Aufräumen kompilieren bis alle Fehler weg sind und der Compile gelingt)
     64 * Start CMAKE and select source code
     65  * Sourcecode Folder: e.g. D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x86
     66  * Build Binaries Folder: e.g. D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x86
     67 * Select the following options:
     68  * ACTUAL_3RDPARTY_DIR   D:\!OpenSceneGraph\3rdParty\x86
     69  * CMAKE_INSTALL_PREFIX  D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x86
     70  * BUILD_MFC_EXAMPLES    On the architecture you want to use for in source debugging, use false, for the other true. (This option only appeares after setting BUILD_OSG_EXAMPLE true and configure at least one time)
     71 * Press Configure. On errors, correct them
     72 * Press Generate -> MS Visual Studio Solution will be created
     73 * Enter D:\!OpenSceneGraph\!OpenSceneGraph-2.9.9_x86 and open !OpenSceneGraph.sln
     74 * Run BUILD_ALL as Debug Build as well as Release Build (On error retry building several times without cleaning up. Sometimes only the wrong order of the dependencies is the reason)
     75
     76In my setup, I use the 32 bit build to debug my application in the OSG source. Therefore I have to add my MSVC project to the !OpenSceneGraph VS Solution. To reduce the complexity in the MSVC solution, I do not build the OSG examples in teh x86 build. To make all examples (x64) available in the console, I add %OSG_X64% '''after''' %OSG% to the PATH variable.
    7677
    7778Finished! :)