Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-03-12 Thread Mas Oug
I think when you COMPILE the application, you tell VC to statically link the libraries... I believe VC creates the DLL because of the makfile configuration, but that shouldn't change anything much... -Masoug -- Read this topic online here:

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-16 Thread Agos Silva
I already did the new rebuild (v2.8.2 - debug), used the #define of that variable too (in my code), but the only thing that changed was the size of the exe, which increased from 92Kb to 111Kb (in the debug version). That's something, but it didn't work... I have two computers where I can test

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-16 Thread Luigi Calori
Hi Agos. Using static linking is one option, another one is just put your app and the osg dll in the same folder. I think the default for win app is to search dll in the same folder of the main app. If you do not want to mess with MS redistributable package, You should also put the

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-15 Thread Agos Silva
Chris 'Xenon' Hanson wrote: On 1/14/2010 6:03 PM, Agos Silva wrote: Static linking. It's an option in CMake now, if I recall. Hi Chris, and thank you for your help. Yes, it makes sense, and you pointed me on the right direction. I'm using Visual Studio 2008, not CMake, and I have already

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-15 Thread Chris 'Xenon' Hanson
On 1/15/2010 9:45 AM, Agos Silva wrote: I'm using Visual Studio 2008, not CMake Yes, but the current OSG uses CMake as a makefile-builder that creates the VC++ 2008 solution files. What version of OSG are you compiling with? But meanwhile, I searched the OSG Forum, as you suggested and I

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-15 Thread Agos Silva
Yes, but the current OSG uses CMake as a makefile-builder that creates the VC++ 2008 solution files. What version of OSG are you compiling with? Well, I thought I had to do it particularly for my own app, in my own VS project, that's why I said that. But after checking that other thread, I

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-15 Thread Chris 'Xenon' Hanson
On 1/15/2010 10:42 AM, Agos Silva wrote: But after checking that other thread, I realized that I had to set that flag (OSG_LIBRARY_STATIC) to true in CMake, and recompile the whole *library* again, not just my app. Sad You are correct. The whole OSG library system needs to be built to

[osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-14 Thread Agos Silva
Hi there. How do I compile an OSG app, so that it can be run, on another computer, without the OSG installed (dlls and libs)? I just want to be able to send my app, for instance, via email, so that someone may run or test it on another pc, even without having OSG installed on it. I remember

Re: [osg-users] [build] How do I compile an OSG app, so that it can be run without the OSG installed?

2010-01-14 Thread Chris 'Xenon' Hanson
On 1/14/2010 6:03 PM, Agos Silva wrote: How do I compile an OSG app, so that it can be run, on another computer, without the OSG installed (dlls and libs)? Static linking. It's an option in CMake now, if I recall. I think there are some instructions on the OSG web site too, because plugins