osgbullet successfully built with osg 3.3, but wrong dlls searching on runtime

58 views
Skip to first unread message

Ramón Talavera

unread,
Nov 11, 2013, 1:05:05 PM11/11/13
to osgbull...@googlegroups.com
Hello,

I managed to build osgbullet successfully  with osg 3.3 under windows VC 2010, but when tests are run some 080-osg dlls are not found as my osg version generates those dlls with a 110 prefix. How may I indicate to search for the correct dlls? Visual Studio settings?

Thanks in advance,
 Ramon Talavera 

Paul Martz

unread,
Nov 11, 2013, 3:51:13 PM11/11/13
to osgbull...@googlegroups.com
It sounds like you have multiple OSG builds on your system, and you've configured osgBullet's CMake to look at your 080 SO version of OSG instead of your 110 SO version.

The way to fix this would be to open cmake-gui and change the variables that locate OSG.


--
You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.
To post to this group, send email to osgbull...@googlegroups.com.
Visit this group at http://groups.google.com/group/osgbullet-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Paul Martz
Skew Matrix Software LLC

Ramón Talavera

unread,
Nov 12, 2013, 2:29:57 AM11/12/13
to osgbull...@googlegroups.com
Hello Paul, thanks for your quick and nice answer.

That is not the case, osgbullet is pointing at the 110-dll-version build, in fact I have no 080 versions in my system at all. I first built osg and installed it in the directory I told and then proceeded to build osgbullet... examples ask for osg080-osgGA.dll instead of osg110-osgGA.dll. I have searched for that dll (80) in the system and it is not present at all. Any other ideas? 


--
You received this message because you are subscribed to a topic in the Google Groups "osgbullet-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osgbullet-users/JBc6qhRGDZ0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osgbullet-use...@googlegroups.com.

Paul Martz

unread,
Nov 12, 2013, 10:52:13 AM11/12/13
to osgbull...@googlegroups.com
osgBullet depends on osgWorks. Is it possible that your osgWorks binaries were built with the 080 SO version of OSG? Clearly something is linked with the wrong version of OSG.

Ramón Talavera

unread,
Nov 12, 2013, 12:38:50 PM11/12/13
to osgbull...@googlegroups.com
yes, it may be. I thought I had compiled osgworks but now I am trying to build it and strange errors are given (setVertexAttribData' : is not a member of 'osg::Geometry). So most probably I was trying to use an old precompiled version. Is it possible to download a newer version of osgworks to make it work with osg 3.0.1? latest osgworks source I find is from year 2011 and it seems not to compile against osg 3.0.1

Paul Martz

unread,
Nov 12, 2013, 1:23:00 PM11/12/13
to osgbull...@googlegroups.com
Immediately prior to the OSG v3.2 relase, several changes were made to OSG that broke backwards compatibility with many external projects, including osgWorks. At this time, no one has submitted a code change to osgWorks that allows it to build with current OSG. According to the osgWorks web page, main trunk should be compatible with OSG v3.1.8.

You said you're using OSG v3.0.1? I don't know of any compatibility issues between current osgWorks and OSG v3.0.1, so that should work. Nonetheless, if you could upgrade to OSG v3.1.8, that has been tested with current osgWorks and should present no problems.

Ramón Talavera

unread,
Nov 13, 2013, 7:31:20 AM11/13/13
to osgbull...@googlegroups.com
Hello Paul,
 I obtained OSG v3.1.8 from the trunk today, compiled it. But OSGWorks 2.0.0 does not compile against it:

2>  TangentSpaceOp.cpp
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(74): error C2039: 'setVertexAttribData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(75): error C2039: 'ArrayData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(75): error C3861: 'ArrayData': identifier not found
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(78): error C2039: 'setVertexAttribData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(79): error C2039: 'ArrayData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(79): error C3861: 'ArrayData': identifier not found
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(82): error C2039: 'setVertexAttribData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(83): error C2039: 'ArrayData' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\TangentSpaceOp.cpp(83): error C3861: 'ArrayData': identifier not found
2>..\..\..\osgWorks_02_00_00\src\osgwTools\CountsVisitor.cpp(229): error C2039: 'areFastPathsUsed' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\ShortEdgeOp.cpp(1710): error C2039: 'suitableForOptimization' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\ShortEdgeOp.cpp(1714): error C2039: 'copyToAndOptimize' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\DecimatorOp.cpp(1474): error C2039: 'suitableForOptimization' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>..\..\..\osgWorks_02_00_00\src\osgwTools\DecimatorOp.cpp(1478): error C2039: 'copyToAndOptimize' : is not a member of 'osg::Geometry'
2>          C:/Program Files (x86)/OpenSceneGraph/include\osg/Geometry(26) : see declaration of 'osg::Geometry'
2>
2>Build FAILED.

(Same errors that happened with 3.0.1) I was using 3.0.1 as it was the reference built by alpha pixel and then compiled it myself too. But the errors I am getting when using 3.1.8 are the same. I am using Windows, and I have to admit that building OSG and everything related to it is quite complex. Any chance of getting precompiled builds of osg/osgworks/bullet for windows systems? 

Paul Martz

unread,
Nov 13, 2013, 11:24:47 AM11/13/13
to osgbull...@googlegroups.com
This should not be this difficult.

Both osgWorks and osgBullet have compatibility matrices on their wiki that show what versions are compatible. The osgWorks compatibility matrix is here:

 - osgWorks v2.0 is compatible with OSG v3.0.1.
 - For OSG v3.1.8, you need to use the pending osgWorks release (current svn trunk).

I'd be glad to add a link to precompiled binaries, to the osgWorks and osgBullet wiki web pages, if anyone is willing to build them and contribute them (and preferably host them, as Google Code is removing the "download" feature in the near future).

(For the future of osgWorks, the intent is for a forthcoming v2.1 release, which would be compatible with current OSG. Just need to have the necessary changes submitted.)

Ramón Talavera

unread,
Nov 13, 2013, 12:16:40 PM11/13/13
to osgbull...@googlegroups.com
Well, in Windows I am finding it quite difficult. One of the main difficulties is finding the correct libraries all over the internet as there is no apt-get in Windows systems. So sometimes it does completely build but the generated library does not work in debug mode. In fact I have compiled 3.1.8 and it does not work in debug mode for me, then I build 3.0.1 and osgworks2.0.0 is not linking... It is taking me a lot of effort to make this work, I really think a building guide where "where to get the right libraries under Windows and build OSG" would be really helpful. 

The alternative is using alphapixel's prebuild binaries, but then... no osgworks nor osgbullet can be used. If I switch to Linux everything becomes easier, but I just would like to make it work under Windows and Visual Studio 2010.  


Paul Martz

unread,
Nov 13, 2013, 12:36:44 PM11/13/13
to osgbull...@googlegroups.com, Chris Hanson
Chris -- Does AlphaPixel have prebuilt binaries of osgWorks and osgBullet that are compatible with your build of OSG? If so, can you point Ramon at them? And let's get links to them on the osgWorks/osgBullet wikis. Thanks for any help.

Ramon -- I do believe the OSG web page has build instructions for building OSG. I use AlphaPixel's prebuilt 3rd party binaries, and then OSG, osgWorks, and osgBullet all build trivially for me. So i'm not sure how to advise you other than to be very certain of what you have built and installed on your Windows dev system -- just as you would with any other Windows development project.


--
You received this message because you are subscribed to the Google Groups "osgbullet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osgbullet-use...@googlegroups.com.

To post to this group, send email to osgbull...@googlegroups.com.
Visit this group at http://groups.google.com/group/osgbullet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Paul Martz

unread,
Nov 13, 2013, 2:09:16 PM11/13/13
to osgbull...@googlegroups.com, Chris Hanson
Forwarding Chris's reply.

(Chris, maybe you can join osgBullet to save me from forwarding. It's very low traffic.)

---------- Forwarded message ----------
From: Chris Hanson <xe...@alphapixel.com>
Date: Wed, Nov 13, 2013 at 11:56 AM
Subject: Re: [osgbullet-users] osgbullet successfully built with osg 3.3, but wrong dlls searching on runtime
To: Paul Martz <skewm...@gmail.com>
Cc: osgbull...@googlegroups.com



  I don't know if I can cross-post to osgbullet-users, so you may need to repost my reply to the list.

On Wed, Nov 13, 2013 at 10:36 AM, Paul Martz <skewm...@gmail.com> wrote:
Chris -- Does AlphaPixel have prebuilt binaries of osgWorks and osgBullet that are compatible with your build of OSG? If so, can you point Ramon at them? And let's get links to them on the osgWorks/osgBullet wikis. Thanks for any help.

  We do not (yet) have osgWorks and osgBullet builds, period, though it's part of our goals. Much of the build system broke during the transition to OSG 3.2 and to new hardware, and we haven't gotten it operational to where we get new working binaries out of it.
 
Ramon -- I do believe the OSG web page has build instructions for building OSG. I use AlphaPixel's prebuilt 3rd party binaries, and then OSG, osgWorks, and osgBullet all build trivially for me. So i'm not sure how to advise you other than to be very certain of what you have built and installed on your Windows dev system -- just as you would with any other Windows development project.

  I have built osgBullet and osgWorks on top of the AP prebuilt binaries on my own personal dev system without any problems.

 The alternative is using alphapixel's prebuild binaries, but then... no osgworks nor osgbullet can be used. If I switch to Linux everything becomes easier, but I just would like to make it work under Windows and Visual Studio 2010.  

  You say they cannot be used -- why do you say this?


--
Chris 'Xenon' Hanson, omo sanza lettere. Xe...@AlphaPixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

Ramón Talavera

unread,
Nov 14, 2013, 3:34:42 AM11/14/13
to osgbull...@googlegroups.com
I am finding it possible to get compiled versions with various versions of libraries, for example zlib (taken from gtk prebuilt binaries and from google repository). I know I could build all those libraries from scratch but that would take me ages to have a complete OSG build. Once compiled I face problems during runtime. A list of where to get each library and its recommended version would be really helpful. Or directly prebuilt versions of everything. Have in mind that under Windows there is no central repository as with linux's apt-get. I just could not link osgworks to alphapixel's prebuild libraries and when I did, most osgbullet examples crashed after launch.   

Best solution for me is to switch to Linux, everything looks stable in there. OSG's build instructions under windows is incomplete or I was unable to find it. 

Alpha pixel's current build has 110 versions of the dlls, that was the source of my first post. OsgWorks and OsgBullet expect 080 versions to run. 

Thanks for your kind answers.


--

Ramón Talavera

unread,
Nov 25, 2013, 3:00:04 AM11/25/13
to osgbull...@googlegroups.com
Hello,
 I have seen that OSGWorks 3.0 has been released. Does OSGBullet 3.0 make use of it? Are they compatible with OSG 3.0.1? I would be glad if they are :).

Thank you,
 Ramon Talavera

Paul Martz

unread,
Nov 25, 2013, 12:28:33 PM11/25/13
to osgbull...@googlegroups.com
Yes, the current v3.0 releases of osgWorks and osgBullet are compatible with OSG v2.8.5 through v3.3.0, including OSG v3.0.1.

Both the osgWorks and osgBullet project pages contain compatibility matrices that show which versions are compatible with which:

https://code.google.com/p/osgworks/wiki/CompatibilityMatrix

Ramón Talavera

unread,
Nov 25, 2013, 1:12:58 PM11/25/13
to osgbull...@googlegroups.com
Hurray! :)

Thank you very much indeed.



Reply all
Reply to author
Forward
0 new messages