Re: [osg-users] [build] How do I successfully deploy a OSG app?

2010-03-14 Thread Luigi Calori

Gordon Tomlinson wrote:

You don't need static builds to use OSG on another machine

You say it does not work ...HOW does NOT work ?, 


how are you installing on another machine ?


Yes you do need the correctly MSVC re-distributable to be installed as part
of your applications installation process
  
you can also deploy all in the same folder: your exec + all the bin 
folder resulted from OSG install step + the neede MSVC stuff:


you can obtain it by adding this patch to the main OSG CMakeLists.txt:

@@ -243,14 +238,6 @@
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG /debug /INCREMENTAL:NO)
ENDIF(NOT OSG_MSVC_DEBUG_INCREMENTAL_LINK)
ENDIF()
-IF(EXISTS 
${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake)
-OPTION(OSG_MSVC_INSTALL_MFC_LIBRARIES Set to ON to include 
system libraries in install dir  OFF)

-MARK_AS_ADVANCED(OSG_MSVC_INSTALL_MFC_LIBRARIES)
-IF(OSG_MSVC_INSTALL_MFC_LIBRARIES)
-SET(CMAKE_INSTALL_MFC_LIBRARIES 1)
-INCLUDE(InstallRequiredSystemLibraries)
-ENDIF(OSG_MSVC_INSTALL_MFC_LIBRARIES)
-  ENDIF(EXISTS 
${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake)

ENDIF(MSVC)
ENDIF(WIN32)


then build osg with
cd osg_build
cmake -DCMAKE_INSTALL_PREFIX:PATH=your OSG install folder 
-DOSG_MSVC_INSTALL_MFC_LIBRARIES:BOOL=ON osg source folder

cmake --build . --config Release

then you should have in your OSG install folder/bin  all you need to 
add to your exe to make it deployable


HTH
   Luigi


You need to ensure that the MSVC re-distributable's and the OSG bin\dlls are
in your path and that your install all the OSG dlls including the plugin-in
directory etc





__
Gordon Tomlinson 


gor...@gordontomlinson.com
www.photographybyGordon.com
www.vis-sim.com 
www.gordontomlinson.com 
IM: gordon3db...@3dscenegraph.com


__


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mas Oug
Sent: Friday, March 12, 2010 3:48 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] [build] How do I successfully deploy a OSG app?

How do we deploy an OSG app that we compiled in VC++ 2008?

Because simply the .exe will not work on other computers (naturally).

I've tried using VC redist. and friends, but with no avail...

I have heard of static linking, but how would that work?

I would greatly appreciate any helpful response!

Thanks!

-Masoug

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





___
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


  


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


Re: [osg-users] [build] How do I successfully deploy a OSG app?

2010-03-14 Thread Mas Oug
Thanks a lot for all the helpful responses!  :D 

Currently, I am a little busy, and I can't get to try it out yet, but I'll keep 
you guys posted!

THANKS!

-masoug

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





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


Re: [osg-users] [build] How do I successfully deploy a OSG app?

2010-03-12 Thread Gordon Tomlinson
You don't need static builds to use OSG on another machine

You say it does not work ...HOW does NOT work ?, 

how are you installing on another machine ?


Yes you do need the correctly MSVC re-distributable to be installed as part
of your applications installation process

You need to ensure that the MSVC re-distributable's and the OSG bin\dlls are
in your path and that your install all the OSG dlls including the plugin-in
directory etc





__
Gordon Tomlinson 

gor...@gordontomlinson.com
www.photographybyGordon.com
www.vis-sim.com 
www.gordontomlinson.com 
IM: gordon3db...@3dscenegraph.com

__


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mas Oug
Sent: Friday, March 12, 2010 3:48 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] [build] How do I successfully deploy a OSG app?

How do we deploy an OSG app that we compiled in VC++ 2008?

Because simply the .exe will not work on other computers (naturally).

I've tried using VC redist. and friends, but with no avail...

I have heard of static linking, but how would that work?

I would greatly appreciate any helpful response!

Thanks!

-Masoug

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





___
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