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 runtime dlls in the same folder as well.
(I 'm compiling with VS9 so the names are mfc90.dll,msvcr90.dll .... )
If you are using CMake for your project, just add
INCLUDE(InstallRequiredSystemLibraries) and then run the install target,
all the needed ms libraries should get copied in your install bin dir
I found some problems on VS9 with current layout of plugins that stay in
a separate folder, they were not finding the runtime, so I resorted to
just put all the plugins in the same application folder
I am using this way to distribute osg based Firefox extension.
Hope it helps
P.S.
If you or someone else can point me to better solution for non-static
windows distribution, it will be rally welcome.
Thanks
Luigi
Agos Silva wrote:
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 doing it, under unix, some 15 years ago, with C, with my
own libraries, but I've never tried it under Windows.
Thank you in advance.
------------------------------------------------------------------------
Agos
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22660#22660
------------------------------------------------------------------------
_______________________________________________
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