This page under construction
Building OpenFrames
NOTE: These instructions were tested under CentOS ver. 7.
Requirements
CentOS 7 Requirements:
- CMake to generate build systems on a variety of operating systems. Used version 3.7.1 as tested.
- Download and unpack cmake-3.7.1.tar.gz
- cd cmake-3.7.1
- ./bootstrap && make && sudo make install (installs in /usr/local)
- GCC (version 4.8.5 as tested). sudo yum install gcc-c++ and dependencies.
- Choice of Git Client
- OpenSceneGraph: See the [Building OpenSceneGraph in Centos 7] wiki.
- (Optional if you want to build the Winteracter demo) Winteracter Open Motif. Download the latest static library for your architecture (32 or 64-bit) and place it in a convenient location. It is recommended to place it in the Winteracter lib directory (e.g.
lib.ifi64) next to the existing Winteracter libraries.
Download OpenFrames
- Get the OpenFrames Git repository. See here for the link. When checking out, ensure you have selected the "develop" branch instead of the "Master" branch.
- The root OpenFrames folder will be referred to as [OF_FOLDER] in this page
Setup OpenFrames Build System
In Terminal:
- cd [OF_FOLDER]
- mkdir build
- mkdir install
- cd build
- cmake ..
- ccmake -D OSG_DIR:PATH=
\[OSG_FOLDER\]\install -D CMAKE_CXX_STANDARD=11 . (terminal based cmake that displays information in a textual based interface)
CMAKE_INSTALL_PREFIX = \[OF_FOLDER\]/install
- press [c] to configure
- press [q] to quit
- (OPTIONAL) ccmake -D WINTER_ROOT:PATH=
Path to your Winteracter . (terminal based cmake that displays information in a textual based interface)
- press [c] to configure
- press [q] to quit
- cmake ..
If you get a CMake warning "Could NOT find wxWidgets...)", will not build wxWidgets demo it is ok!
The configure process sets up build variables that can be modified before generating the actual build system. The variable list can be organized by clicking the "Grouped" button. Set the following variables:
Build OpenFrames
In Terminal:
- cd
\[OF_FOLDER\]\build
- make
- make install
- Confirm that the
test1 executable is in \[OF_FOLDER\]\install\bin
Test OpenFrames
In Terminal:
- make sure that LD_LIBRARY_PATH locates the libraries for OSG and OF
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:[OF_FOLDER]\install\lib:[OSG_FOLDER]\install\lib64
- cd [OF_FOLDER]\install\bin
- ./test1
OpenFrames is now built and installed.