Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi Robert

I did a search in this forum and also a Google search for osg71-

There were several and the earliest I looked at was Feb 2011, this month.
In the thread I started on this I asked:
http://forum.openscenegraph.org/viewtopic.php?t=7837


 Is this my error or has the format changed?


I hit the SVN for OSG and osgEarth and the examples seem to run OK.

Apparently the format has changed and instead of ~45 dlls what is necessary is 
included in the osg71-... dlls.

Is this correct?

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37027#37027





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Robert Osfield
Hi Neil,

I can't help you with Windows specifics as I haven't touched a Windows
box for programming in the last decade...

My general comments about libs and osgPlugins-version are valid across
all platforms though.  Your own builds of the OSG may well be
different from other users builds if your dependencies are different.

Robert.

On Wed, Feb 23, 2011 at 3:50 PM, Neil Neilson n...@nlneilson.com wrote:
 Hi Robert

 I did a search in this forum and also a Google search for osg71-

 There were several and the earliest I looked at was Feb 2011, this month.
 In the thread I started on this I asked:
 http://forum.openscenegraph.org/viewtopic.php?t=7837


 Is this my error or has the format changed?


 I hit the SVN for OSG and osgEarth and the examples seem to run OK.

 Apparently the format has changed and instead of ~45 dlls what is necessary 
 is included in the osg71-... dlls.

 Is this correct?

 Neil

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=37027#37027





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Jean-Sébastien Guay

Neil,


I did a search in this forum and also a Google search for osg71-


The SO version has been there for a very long time. If it is not there 
for the old version you downloaded, then it's either a very old version 
or the versioning was disabled by the person who did the build. However 
it is there for a reason (to avoid an OSG app picking up the wrong 
version of a DLL that you may have on your PATH).


I don't know why you're focusing on this so much, it works so what's the 
problem?


Plus, no one can know exactly what you're talking about when you say ~45 
DLLs, you would need to give us a list, or look at exactly what DLLs are 
there. If some downloaded version of OSG had all the plugins in the main 
bin folder instead of the osgPlugins folder that may well account for a 
lot more DLLs. Plus 3rdparty dependencies' DLLs might be there too. No 
one can know unless you list the DLLs, or just look at the names 
yourself you should be able to figure it out.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Thanks Robert

The include, lib and plugins seem to be ~same.
As long as things work OK I won't be concerned.

I should get into Ubuntu more and try it there.
For other apps the mingw builds are the largest then MSC10 which is 
considerably smaller and then MSC9. 

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37035#37035





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi Jean

I had previously tried to figure out the difference.

All the plugin .dlls start with osgdb_

My mingw build has libosg.dll instead of the my earlier build with VS10 
osgdb_osg.dll
and similar for many of the other .dlls

It is just the recent builds that have the osg71-xxx.dll and no xxx.dll 
except jpeg62.dll which I pasted in.
http://forum.openscenegraph.org/viewtopic.php?t=7840

I don't know why there are 3 threads when there should be just 1.

The reason I was concerned is I have spent a considerable amount of 
time trying different things and trying to figure out what went wrong.
The difference in the bin contents was obvious but was not the cause 
of the problems when they were found.

So I asked if the format was changed or if it was an error on my end.

I still have much to learn, thanks for the patience.

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37045#37045





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread tim paige
Hi Niel,

I have just experienced the same thing (I believe) as I was trying to play with 
osgOcean and could not get the libraries to play nicely so I downloaded the 
source to build the libraries myself.
After building... I tried osgOcean again and found that it couldn't even find 
the libraries I had supposedly built. I searched for and found my dll's but to 
my amazement they had these funny prefixes in front of them. I changed 
(stupidly) my ocean project to point to these instead...
Long story short... after reading a bunch more... I found these osg71- things 
were just an intermediate on their way to their final resting place (as almost 
described in Robert's note). One MUST run the INSTALL build after building to 
ensure the intermediates are moved and renamed to their proper destinations.

Have fun... I'm still dealing with more third party fun :-* !

Cheers,
tim

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37046#37046





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi Tim

At least I am not the only one to run into this.

From the SVN today and CMake Configure/Generate and VS10 ALL BUILD
the recent changes were built and no errors.

I renamed C:\OpenSceneGraph to C:\OpenSceneGraph-xx

Build INSTALL:  Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped 

This made a new C:\OpenSceneGraph
the bin still has the osg71- and without the xxx.dlls

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37049#37049





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Mourad Boufarguine
Hi Neil,

I can't see what is your problem ? OSG contains the core libraries and
nodekits ( Openthreads, osg, osgDB, osgGA, osgFX, osgViewer, etc...) wich
will give the versioned dlls in bin folder (osg71-osg.dll -- osg library ;
osg71-osgGA.dll -- osgGA library ; etc ...) and plugins for loading/writing
files. These plugins are in a osgPlugins-2.9.11 folder, and are like this
osgdb_xx.dll. osgdb_osg.dll is the plugin for loading osg files and is
different from the osg71-osg.dll.
 which is the osg library.

Mourad


On Wed, Feb 23, 2011 at 11:20 PM, Neil Neilson n...@nlneilson.com wrote:

 Hi Tim

 At least I am not the only one to run into this.

 From the SVN today and CMake Configure/Generate and VS10 ALL BUILD
 the recent changes were built and no errors.

 I renamed C:\OpenSceneGraph to C:\OpenSceneGraph-xx

 Build INSTALL:  Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped

 This made a new C:\OpenSceneGraph
 the bin still has the osg71- and without the xxx.dlls

 Neil

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=37049#37049





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi bouffa

It's a bit confusing having 3 threads when there should be one.

I edited the post you answered and added this


 edit: Looking in C:\OSG-dev\OSG\build\bin they have the osg71-
 C:\OSG-dev\OSG\build\Release is empty.
 
 Looking at my mingw build:
 C:\mingwOsg\OpenSceneGraph-mingw\bin
 This does have the xxx.dlls without the osg71-


Apparently I have something wrong in CMake or in VS10.
I am getting the osg71- rather than the xxx.dlls

Or is it possible something in the SVN is not compatible with VS10.
Tim did not mention what he used to build/compile with.

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37054#37054





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Jean-Sébastien Guay

Hello Neil,


Apparently I have something wrong in CMake or in VS10.
I am getting the osg71- rather than the xxx.dlls


Please stop focusing on this. IT IS NOT A PROBLEM. The VS builds will 
always have an osgXX- prefix to the DLL names, that's how it should be, 
the prefix is a version number that makes sure the right DLL is picked 
up at runtime.


MinGW builds will not have this as they use GCC as their compiler, and 
GCC embeds the SO version inside the library. So it doesn't need to have 
any version number in the filename.


So once again, I repeat, everything is CORRECT and you can go on with 
your life... Just have your project link to osg(d).lib, osgDB(d).lib 
etc. and it will pick up the right osg71-osg.dll, osg71-osgDB.dll etc. 
at runtime.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi Jean


 and it will pick up the right osg71-osg.dll, osg71-osgDB.dll etc.
 at runtime.


Trying the examples in ..\share\OpenSceneGraph\bin

None of them work now but did with the pre-built 2.9.9 that does not have the 
osg71-.

osg.dll was not found
OpenThreads.dll was not found

The ..\data examples work with osgviewer.exe, that does not have the osg71-.  
That is what I tried before and they still do with the VS10 build. 

For some reason it is not picking up osg.dll from the osg71-osg.dll.

Tim had the same problem.
http://forum.openscenegraph.org/viewtopic.php?t=7840

 I found these osg71- things were just an intermediate on their way to their 
 final resting place (as almost described in Robert's note). One MUST run the 
 INSTALL build after building to ensure the intermediates are moved and 
 renamed to their proper destinations. 


When I do the Build INSTALL the osg71- is still there and as mentioned the 
osg.dll is not picked out.

I do have a problem with the examples I had not tried before except with the 
pre-built
that does not have the osg71-.

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37056#37056





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Jason Daly

On 02/23/2011 07:29 PM, Neil Neilson wrote:

Trying the examples in ..\share\OpenSceneGraph\bin

None of them work now but did with the pre-built 2.9.9 that does not have the 
osg71-.

osg.dll was not found
OpenThreads.dll was not found


The fact that the examples don't work, but osgviewer.exe does makes it 
sound like you're mixing pre-built examples with the OSG libraries you 
built.  By default, the examples are not built when you create a new 
project from CMake.


I'm not sure where you got these pre-built binaries from, but the so 
version (the osg71- thing) has been used in OSG for a long time now, 
and as many others have said, it's not something you should be trying to 
get rid of.




I found these osg71- things were just an intermediate on their way to their 
final resting place (as almost described in Robert's note). One MUST run the 
INSTALL build after building to ensure the intermediates are moved and renamed 
to their proper destinations.


The osg71- things are NOT intermediate files.  The final .dll's in 
bin/ should have the so version prepended.  The plugins (the ones that 
start with osgdb_) will not have the so version prepended, but they 
should be in a subdirectory osgPlugins-2.9.11.


I personally would advise you to completely eliminate the pre-built OSG 
that you were using and start from scratch with a fresh OSG source tree.


--J
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Jean-Sébastien Guay

Hi Neil,


For some reason it is not picking up osg.dll from the osg71-osg.dll.


No. There is no osg.dll. There is only osg71-osg.dll. The example, when 
recompiled against the proper osg.lib, will load osg71-osg.dll at runtime.


Did you recompile the examples after rebuilding OSG itself? Are you sure 
you're linking the examples to the osg.lib that you just built (the one 
for your new version of OSG)? Check your linker paths.



Tim had the same problem.
http://forum.openscenegraph.org/viewtopic.php?t=7840


I found these osg71- things were just an intermediate on their way to their 
final resting place (as almost described in Robert's note). One MUST run the 
INSTALL build after building to ensure the intermediates are moved and renamed 
to their proper destinations.


I think both of you are just trying to do too many things at once, not 
thinking each step through.



When I do the Build INSTALL the osg71- is still there and as mentioned the 
osg.dll is not picked out.


The osg71- should stay there.

Again, please stop focusing on the prefix. That is not the cause of the 
problem. The fact that it's there is normal. It should not go away. If 
your executables have problems starting, saying that they're missing a 
DLL, it can be one of 2 things:


1. You didn't relink the executables to the osg.lib that goes with the 
osg71-osg.dll. So it's still linked to the old version of OSG, and so 
still looking for the old DLLs.


2. You didn't set up your search paths to find your new DLLs. Did you 
add you OpenSceneGraph\bin directory to your PATH? At runtime, an 
executable looks for the DLLs it needs either in the current directory 
(the same directory where the executable is), or the Windows 
system/system32 directories (but I don't recommend you copy any of your 
own DLLs there), or on your system's PATH.


Everyone else (including those of us using VS10) have OSG DLLs prefixed 
with osgXX- and it works fine for everyone, so this is not the problem. 
The problem is how your executable is linked, or where it searches for 
DLLs at runtime.


To recap:

When you start an executable, what does it say?

If it says it can't find osg.dll, then it's linked to your old version 
of OSG. Check your linker paths, and recompile and relink your 
executable. If this happens with the examples that you just compiled for 
your new version of OSG, then that probably means that you have some 
library paths set up in Visual Studio that are causing your old version 
of OSG's libs to be found before the new version's libs. The name of the 
DLL is encoded inside the lib, and since the new version of OSG is 
building osg.lib and osg71-osg.dll, that means that if your executable 
links to THAT osg.lib, it will be looking for osg71-osg.dll. If it's not 
then that's your problem, linking to the wrong lib.


If it says it can't find osg71-osg.dll, then that means that at runtime, 
the program can't find the DLL. Add your OpenSceneGraph\bin to your 
system PATH, and it will find it.


Other than the above general advice based on what could possibly be 
going wrong, I don't have access to your setup, so I can't help that 
much more. There are so many things that could be wrong that you'll have 
to try and find out what's going on. Take it one step at a time, but 
please remember that the osg71- prefix is not the problem. The OSG build 
system names the DLLs that way, and the lib file contains the correct 
name to be able to find the DLL, so it all works. The problem lies 
elsewhere.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Hi Jean

That did help and answered what the problem was.

[quote]Did you recompile the examples after rebuilding OSG itself?[/code]

No I did not.

Now I know what the problem is I can deal with it.

From my first post:

 Is this my error or has the format changed?

The format has changed to include osg71-.
The error was not re-compiling the examples.

Thanks Jean!

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37062#37062





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Jean-Sébastien Guay

Hi Neil,


That did help and answered what the problem was.

[quote]Did you recompile the examples after rebuilding OSG itself?[/code]

No I did not.
Now I know what the problem is I can deal with it.


Great, good to know we finally found it.


From my first post:



Is this my error or has the format changed?


The format has changed to include osg71-.


Again, no the format did not change between 2.9.9 and the current SVN 
trunk. The osgXX- prefix has been there since at least 2.6. However this 
applies only to VC++ builds. When compiling for other compilers like GCC 
(which MinGW uses) it is not needed, so if your previous prebuilt 
packages were built with MinGW that's why you didn't have the prefixes.


You did not initially give us enough information to help you. You just 
said did the format change?. Well, if both your builds had been made 
with the same compiler, what we said would have been correct, the format 
did not change. However, you didn't state that your prebuilts were built 
with MinGW, and now you were building with VC++. So from your point of 
view, the format had changed.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-23 Thread Neil Neilson
Thanks again Jean.

I had no idea what was used to compile the pre-built.

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37064#37064





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OSGbin 2.9.9 v. 2.9.11

2011-02-22 Thread Neil Neilson
Hi Robert,

Here is what is in my C:\OpenSceneGraph\bin
I did add the jpeg62.dll
The include, lib and plugins look OK.

jpeg62.dll
osg71-osg.dll
osg71-osgAnimation.dll
osg71-osgDB.dll
osg71-osgFX.dll
osg71-osgGA.dll
osg71-osgManipulator.dll
osg71-osgParticle.dll
osg71-osgPresentation.dll
osg71-osgShadow.dll
osg71-osgSim.dll
osg71-osgTerrain.dll
osg71-osgText.dll
osg71-osgUtil.dll
osg71-osgViewer.dll
osg71-osgVolume.dll
osg71-osgWidget.dll
osgarchive.exe
osgconv.exe
osgfilecache.exe
osgPlugins-2.9.11
osgversion.exe
osgviewer.exe
ot12-OpenThreads.dll
present3D.exe 

I may not have had the CMake correct.  This was built with VS10.

Neil

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36941#36941





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org