OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

some basic build questions


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
christian_sam
User


Joined: 10 Feb 2009
Posts: 50

PostPosted: Sun Feb 15, 2009 1:22 pm    Post subject:
some basic build questions
Reply with quote

hi

i have some basic questions about building OSG (2.8.0) under a windows os with vs 8.0. (actually i tried it out before and build/install worked, but i now have some questions about suggested paths, how to add some libs later, and so on)

i have my sources at:

* osg
c:\programme\osg\
* osg-dependencies
c:\programme\osg-dep
(i will move them to c:\programme\osg\3rdParty for my next build)
* osg dataset
c:\programme\osg-data


i ran cmake 2.4.8 and changed the following settings:

* where is the source
C:\Programme\osg
* where to build the binaries
C:\Programme\osg\build
* advcaned values
- i correct the setting for my non-default 3rdparty dir.
- buidl_osg_examples: on
- fixed the freetype include paths


i entered some enviroment-variables:

* %OSG_ROOT%
C:\Programme\osg
* %OSG_LIB_PATH%
C:\Programme\osg\build\lib
* %OSG_INCLUDE_PATH%
C:\Programme\osg\include
* %OSG_FILE_PATH%
c:\programme\osg-data
* %OSG_BIN_PATH%
C:\Programme\osg\build\bin;c:\programme\osg-dep


then i ran vs 8.0 and started the "ALL_BUILD" project to compile DEBUG. after it had finished i had my output (like configured in cmake) in:

c:\programme\osg\build\


finally i started the "INSTALL" project which moved the generated files to:

c:\programme\OpenSceneGraph (CMAKE_INSTALL_PREFIX - i left this to default)


---
my questions:
---

* are the enviroment variables needed for the building process, or are they only needed when running osg because only cmake settings are relevant?


* i forgot to configure cmake to include GDAL, how can i include it afterways ?

set the following in cmake:
GDAL_INCLUDE_DIR
GDAL_LIBRARAY

(do i have to put "C:\Programme\FWTools2.0.4\lib" or "C:\Programme\FWTools2.0.4" in my %PATH& enviroment variable for building, or is this necessary only later when running osg with gdal?)

then configure cmake, load the new .sln file in vs, start build and install. vs will check whats new to build -> gdal only. it will generate an osg-gdal plugin and moved it to is place. is that all correct?


* i want to move my osg sources out of "c:\programme\." (german pendant of c:\program files\) to c:\devel\. will it suffice if i update the cmake settings, or will it take more?
Back to top
View user's profile Send private message
Mattias Helsing
Guest





PostPosted: Sun Feb 15, 2009 4:38 pm    Post subject:
some basic build questions
Reply with quote

Hi Christian,

On Sun, Feb 15, 2009 at 2:22 PM, Christian <> wrote:
Quote:
---
my questions:
---

* are the enviroment variables needed for the building process, or are they only needed when running osg because only cmake settings are relevant?

The environment vars are not needed for osg to build but might be
handy if your osg based project uses the FindOSG.cmake to locate osg.
The OSG_FILE_PATH var is a must if you want to run all examples

Quote:


* i forgot to configure cmake to include GDAL, how can i include it afterways ?

yes

Quote:

set the following in cmake:
GDAL_INCLUDE_DIR
GDAL_LIBRARAY

Setting the above will enable building osgdb_gdal plugin

Quote:

(do i have to put "C:\Programme\FWTools2.0.4\lib" or "C:\Programme\FWTools2.0.4" in my %PATH& enviroment variable for building, or is this necessary only later when running osg with gdal?)

The gdal library in FWTools is static (gdal_i.lib) so you won't need
to modify PATH for the gdal plugin to load.

Quote:

then configure cmake, load the new .sln file in vs, start build and install. vs will check whats new to build -> gdal only. it will generate an osg-gdal plugin and moved it to is place. is that all correct?

yes

Quote:


* i want to move my osg sources out of "c:\programme\." (german pendant of c:\program files\) to c:\devel\. will it suffice if i update the cmake settings, or will it take more?

Just change CMAKE_INSTALL_PREFIX, configure, generate and INSTALL
again. This is one of cmake many strengths.

Mattias

Quote:

------------------
Read this topic online here:
http://osgforum.tevs.eu/viewtopic.php?p=6821#6821









------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Really basic question light/material ... dhhabyc General 0 Tue Apr 09, 2019 4:53 pm View latest post
No new posts Particular Build Problems with OSG. Zachary1234 Build system [build] 5 Wed Mar 27, 2019 7:12 am View latest post
No new posts OSGPL - Legal questions on version an... schuetze General 2 Mon Mar 04, 2019 3:07 pm View latest post
No new posts Help about obtaining a particular OSG... Zachary1234 General 4 Sat Mar 02, 2019 11:33 am View latest post
No new posts Setup and Start OSG library questions. Zachary1234 General 2 Sun Feb 10, 2019 11:23 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP