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. || |
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 | |
| 76 | In 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. |