Hi Francois, I've just cleaned up the present3D optional build with SDL so it's similar to that of osgviewerSDL, as well as some other clean ups. You may need to remove you OpenSceneGraph/CMakeCache.txt and then re-run ./configure. By default the SDL support should be off but you'll be able to enable it via ccmake ., and then enabling the BUILD_PRESENT3D_WITH_SDL option.
BTW, I live and work in Callander down in the Trossachs, and am working on a project with Aberdeen University on medical visualization and teaching. So once every few months I get to stick my head up around your neck of the woods. Robert. On Thu, May 7, 2009 at 9:16 PM, Francois Genolini <[email protected]> wrote: > I compared examples/osgviewerSDL (which does compile) with > applications/present3D > > osgviewerSDL/CMakeFiles/CMakeDirectoryInformation.cmake does contain > /usr/include/SDL in its "CMAKE_C_INCLUDE_PATH" > but > present3D/CMakeFiles/CMakeDirectoryInformation.cmake does NOT contain > /usr/include/SDL in its "CMAKE_C_INCLUDE_PATH" > > The difference seems to be that osgViewerDSL has a simple and clean > CMakeLists.txt which just says > > INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR}) > > whereas present3D's CMakeLists.txt has the rather more complicated (and > broken): > > IF (SDL_FOUND) > > OPTION(BUILD_WITH_SDL "Set to ON to build with SDL for joystick support." > OFF) > > IF (BUILD_WITH_SDL) > > SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} ${SDL_LIBRARY}) > SET(EXTERNAL_INCLUDE_DIRS ${EXTERNAL_INCLUDE_DIRS} ${SDL_INCLUDE_DIR}) > > > Looks like a bad case of non-orthogonality > what is good for osgviewerSDL should be OK for present3D > I will copy and paste the working CMakeLists.txt into the broken one and see > what happens > > > Regards, > Francois Genolini > Aberdeen, Pictland > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=11649#11649 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

