Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8012879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:28:13+00:00 2026-06-04T19:28:13+00:00

How can I build OpenSceneGraph from source? What should I do to get the

  • 0

How can I build OpenSceneGraph from source? What should I do to get the third party dependencies for OSG built?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:28:15+00:00Added an answer on June 4, 2026 at 7:28 pm

    This is just an initial guide which will get basic OSG installed on your system. There are many other configuration changes and compilation with dependencies that you can do later (building third party libraries is specified after the first long dotted line).

    • Extract the OSG source code zip file to a folder
    • Download and install CMake from the CMake website
    • Run CMake
    • In CMake, set the source code folder as the equivalent of F:/ProgramFiles/OSG/OpenSceneGraph–3.1.1 and not as F:/ProgramFiles/OSG/OpenSceneGraph–3.1.1/src
    • Specify another folder for the OSG Binaries, like this: F:/ProgramFiles/OSG/OSG_3–1–1_Build
    • Click on ‘Configure’, select your compiler (VS2010 native compiler in my case)
    • Click on ‘Generate’
    • If any problems happened during Configure or Generate, you can use the CMake menu options to delete the cache and try the whole process again.
    • Once generation is done, navigate to the Binaries folder (lets call it “build folder”) and you’ll see OpenSceneGraph.sln
    • Open the .sln file in Visual Studio, use solution explorer to find and build the ALL_BUILD project. It takes about 35–40 min for the build process on a dual core system with 2GB RAM. If you face any errors due to the compiler not finding any dependencies, just build the ALL_BUILD project again. Build; not re–build. Then, search for the INSTALL project in the same .sln file and build it.
    • That’s it! you’re ready to use OSG.

    For the sake of uniformity, you can use these environment variables:
    OSG_ROOT for specifying the location of the build folder
    OSG_FILE_PATH for specifying the location of the sample models and images (The folder which you extract from OpenSceneGraph–Data–3.0.0.zip)
    OSG_SOURCE for specifying the location of the source files which you just extracted from the zip file.
    (Except for OSG_SOURCE, the rest were taken from the OSG tutorial/guide pdf’s)

    ……………………………………………………………

    Building third party libraries:
    –––––––––––––––––––––––––––––––
    Whether you’ve already done the above build process or not, you can reconfigure CMake to be able to build the third party libraries.
    If you followed the above procedure, you might remember in the configuration process, it showed “Could not find libcurl” etc.
    Now you’re gonna show CMake where to find it.

    • Download the prebuilt third party libraries from http://openscenegraph.alphapixel.com/osg/downloads/openscenegraph–third–party–library–downloads
    • Select the version appropriate to you – VS2010, x86, debug or whatever and create a folder next to your OSG build folder, named ThirdPartyLibraries. Make a subfolder inside it, like debug_vs10_x86 or whatever you like.
    • Create an environment variable OSG_3RDPARTY_DIR and point it to this subfolder you created.

    Lets say you’re configuring for the curl library.
    * Click ‘configure’ in CMake and in the CMake gui, you’ll find that the CMake gui has a search field. Search for ‘curl’ and it’ll show you two parameters to be set for curl. Replace the right side parameters (which will be something like CURL–INCLUDE–NOT–FOUND), to the include path of your third party library where curl’s header is located.
    * Same way, for what would be something like CURL–LIB–NOT–FOUND, replace it with the path to the lib file and at the end of the path, type the name of the lib file too. Eg: F:\ProgramFiles\OSG\ThirdPartyLibraries\debug_vc10_x86\lib\curllib.lib
    * Do a similar thing for other libraries like TIFF, ZLIB, PNG etc.
    * Once you’re done with all of them, click ‘Configure’ and then ‘Generate’.
    * Go to your OSG build folder, find OpenSceneGraph.sln and build it as I’ve mentioned above.
    * That’s it!

    More info on building third party libraries is in: http://binglongx.wordpress.com/2011/07/27/building–openscenegraph–3–0–0–from–source–for–both–x86–and–x64/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way I can build a bitmap strictly from RGB values for
How can I build a Column Chart with its chart item's color retrieved from
I can build a simple dll consisting of a source file, a header file
This is really frustrating - I can build my native code from command line,
I need some data structure that I can build from standard collections or using
I'm trying to use Qt Quick Components for Desktop from http://labs.qt.nokia.com/2011/03/10/qml-components-for-desktop/ I can build
I'm porting some open source code so that it can build on another c++
Huh, you can build a sphere from squares, triangles, hexagons and so on and
I have an object that can build itself from an XML string, and write
I've been struggling with how I can build mxml from the displaylist created within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.