Re: [osg-users] Building a slimmed down static version of OSG

2012-06-22 Thread Preet
Hi, I got a basic scene graph running (manually created a simple mesh and was able to view it). I ran into problems trying to run the osg file loader plugins and didn't troubleshoot that part any further. Also, I was building from git. Do you run into the same crash with 32 and 64 bit builds? Wha

Re: [osg-users] Building a slimmed down static version of OSG

2012-06-21 Thread David Smith
Hi Preet, Did you make any progress on this? I'm getting a similar error and I am stumped. I have a fedora 16 32bit machine with osg 3.0.1 where my code compiles fine and then I have a fedora 17 64bit machine also with osg 3.0.1 where I get this undefined reference. I added a "virtual void req

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-31 Thread Preet
Quick follow up: The error seems to occur when linking using GCC 4.4.2, which is part of the tool chain I use. When I use my distro's GCC 4.7 to do a static build with the same CMake settings, I don't get the error. To get around it in 4.4.2, I explicitly defined requestRedraw() in GraphicsWindowE

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-31 Thread Thomas Hogarth
Hi Preet Not too sure what exactly your issue is but the error (.rodata._ZTVN9osgViewer22GraphicsWindowEmbeddedE[_ZTVN9osgViewer22GraphicsWindowEmbeddedE]+0xcc):-1: error: undefined reference to `non-virtual thunk to osgViewer::GraphicsWindow::requestRedraw()' Suggests that your osgViewer li

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-30 Thread Preet
After a bit more playing around I'm able to get the linking down to one error (the previous errors were because of linking in the wrong order): (.rodata._ZTVN9osgViewer22GraphicsWindowEmbeddedE[_ZTVN9osgViewer22GraphicsWindowEmbeddedE]+0xcc):-1: error: undefined reference to `non-virtual thunk to

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-29 Thread Preet
Thanks for the reply. After messing with the CMakeLists in OpenThreads (forced pthreads), I got it to compile and build me a static lib archive... unfortutely I have pretty much the same problem, about a bajillion of these errors originating from various osg sources. Program.cpp:(.text+0x5158): u

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-29 Thread Thomas Hogarth
Hi Preet Good to hear you're working on a Blackberry port. In regard to the libs you need your main aim is to get osgViewer compiling. If that compiles then you can setup a viewer a render your scenegraph. You'll have two options for this, you can either create your own implementation of osgVie

Re: [osg-users] Building a slimmed down static version of OSG

2012-05-29 Thread Preet
Quick follow up, After playing around with the CMake gui for awhile, I managed to get it to compile a set of static libs. Unfortunately it seems that OpenThreads is missing from the built libs, and trying to compile a project that links with osg results in a bunch of errors regarding missing OpenT

[osg-users] Building a slimmed down static version of OSG

2012-05-28 Thread Preet
Hi, I'm trying to build OSG for another platform (the BlackBerry Playbook). The NDK for the Playbook includes the tool chains required to compile libs/apps for the device. It also has OpenGL ES 1.1/2.0 libs, EGL, freetype, etc. I feel like it should be possible to compile OSG for the Playbook but