It seems that I've had more difficulty with building OSG
than most other developers out there. Now that I've picked
up the 2.7.7 release, revisted some old problems and encountered
new ones, I may have found much of the cause.
I think I have found a bunch of problems due to building OSG
exclusively for out-of-source. Specific problems may
be limited to Mac OS X, but I think there is just a basic
failure of out-of-source builds where cmake does not work as
expected.
I downloaded Friday's release and did the following...
$ unzip OpenSceneGraph-2.7.7.zip
-- tweaked CMakeLists.txt to turn on examples & remove Mac ppc --
$ mkdir OpenSceneGraph-2.7.7.Build
$ cd OpenSceneGraph-2.7.7.Build
$ cmake ../OpenSceneGraph-2.7.7 -DCMAKE_BUILD_TYPE=Debug
$ make
This ran smoothly until the build of the osgviewerQT executable where the
file GL/glx.h could not be found. Previously I had to alter src/CMakeLists.txt
in order to resolve this problem. I discovered that the path for
GL/glx.h was correctly set in src/osgViewer/CMakeLists.txt, but this file
was appearently not seen by the out-of-source build. (For similar reasons
the setting of OSG_WINDOWING_SYSTEM seemed to be ineffective.)
There are several files that are generated by cmake --
include/OpenThreads/Config and include/osg/Config among them. When building
OSG with the out-of-source methodology they are written in the out-of-source
directory. This did not pose a problem with building OSG itself, but a
re-build of my application failed when these files were not found. They are
expected to be found under the src/osg/include directories. It's possible
that this problem hasn't showed up until now since I had always done at
least an aborted in-source build - enough to write the Config files for
an arbitrary architecture.
Does anyone have some insight into these problems? Are there some extra
steps necessary to build out-of-source correctly, or does it just not work?
-Don Leich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org