Re: [osg-users] [build] building OSG as static library

2009-07-21 Thread stefan nortd
Cool just wanted to report that the windows issue got resolved with the 2.8.2 
release.
*yay*

Cheers,
stefan


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-22 Thread Robert Osfield
HI Stefan,

On Mon, Jun 22, 2009 at 3:18 AM, stefan nortd wrote:
> For some reason I had to remove the semicolons after the USE_OSGPLUGIN calls.
> The -pedantic gcc flag turns them into errors.

osgstaticviewer doesn't have semi colons after USE_OSGPLGUINS in the
svn/trunk at least.

FYI, in OSG-svn/trunk I've also added support for compiling Present3D
as a static application.

> Haven't figured out the windows runtime crash when i exit the app yet. I 
> wonder if it is
> something threads releated or some interference with GLUT. Will do some more 
> testing
>  and see.

Have a look through the recent archives, a crash was reported a couple
of weeks back and has been fixed  in the svn/trunk and OSG-2.8 branch.
  The crash was an issue a static variable destruction order.

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


Re: [osg-users] [build] building OSG as static library

2009-06-21 Thread stefan nortd
I finally got it working on Linux. Took me a while to understand the Makefiles 
generated
 by cmake for osgstaticviewer. Backtracking from there basically made me 
realize that 
the order in which the libs are listed in the gcc call matters. Is this for 
realz?!!

Anyways, here is a simple Makefile for building the osgstaticviewer in case 
somebody
 might find this useful later.  


Code:

DEFINES = -DOSG_DEBUG_POSTFIX=d -DOSG_LIBRARY_STATIC

FLAGS = -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type 
-Wmissing-braces -Wunknown-pragmas -Wunused

INCLUDE = -I../../../addons/SceneExpression/libs/osg/include

LIBS = -lpthread -lm -lGLU -lGL -lSM -lICE -lX11 -lXext -lXrandr -lz -lfreetype

OSG_LIBS = ../../../addons/SceneExpression/libs/osg/lib/linux/libOpenThreads.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgDB.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgUtil.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgGA.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgViewer.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgText.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgdb_ive.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgdb_freetype.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgdb_openflight.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgdb_osg.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgdb_rgb.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgGA.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgFX.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgTerrain.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgSim
 .a ../../../addons/SceneExpression/libs/osg/lib/linux/libosgText.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgDB.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosgUtil.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libosg.a 
../../../addons/SceneExpression/libs/osg/lib/linux/libOpenThreads.a


all: osgstaticviewer.o
gcc ${FLAGS} ${DEFINES} ${INCLUDE} osgstaticviewer.o -o osgstaticviewer 
${LIBS} ${OSG_LIBS}


osgstaticviewer.o: osgstaticviewer.cpp
gcc -c ${FLAGS} ${DEFINES} ${INCLUDE} osgstaticviewer.cpp




For some reason I had to remove the semicolons after the USE_OSGPLUGIN calls. 
The -pedantic gcc flag turns them into errors.

Haven't figured out the windows runtime crash when i exit the app yet. I wonder 
if it is 
something threads releated or some interference with GLUT. Will do some more 
testing
 and see.


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-21 Thread Robert Osfield
Hi Stefan,

Are you setting DYNAMIC_OPENTHREADS and DYNAMIC_OPENSCENEGRAPH to OFF?

FYI, for 2.10 I'm tempted to add a new variable to control the build
type rather than the above variables to make it a bit more obvious and
easier to get right.

Robert.

On Sat, Jun 20, 2009 at 9:54 PM, stefan nortd wrote:
> I am running 2.8.1. On linux osgstaticviewer runs fine and on windows it
> tries to load ot11-OpenTreads.dll for some reason (I get this popup window,
>  not sure what that is about) but still runs fine without it. Not sure is 
> there a
> fallback? The aforementioned problems I really only get with my own VS9
> project and linux Makefile. Both of which work flawlessly when linking
> against the dynamic libs.
>
> I feel like I am pretty close but might still miss some build parameters which
>  I did not setup properly in my project files.
>
> What do you think?
>
> 
> stefan hechenberger
>
> http://linear.nortd.com
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=14290#14290
>
>
>
>
>
> ___
> 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] building OSG as static library

2009-06-20 Thread stefan nortd
I am running 2.8.1. On linux osgstaticviewer runs fine and on windows it 
tries to load ot11-OpenTreads.dll for some reason (I get this popup window,
 not sure what that is about) but still runs fine without it. Not sure is there 
a 
fallback? The aforementioned problems I really only get with my own VS9 
project and linux Makefile. Both of which work flawlessly when linking 
against the dynamic libs.

I feel like I am pretty close but might still miss some build parameters which
 I did not setup properly in my project files.

What do you think?


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-20 Thread Robert Osfield
Hi Stefan,

Which version of the OSG are you using?  Do you see these problems
when you run osgstaticviewer?

Robert.

On Sat, Jun 20, 2009 at 2:27 PM, stefan nortd wrote:
> @J-S
> Thanks. Adding the OSG_LIBRARY_STATIC define on windows solved the
>  linker problem. My app builds and runs. I still have a few problems when
>  closing the add which I don't get with the dynamic libs.
> [code]
> Warning: detected OpenGL error 'invalid operation' after applying attribute 
> BlendFunc 08DD55D8
> Warning: detected OpenGL error 'invalid operation' at end of 
> State::apply(StateSet*)
> Warning: detected OpenGL error 'invalid operation' at start of 
> State::apply(StateSet*)
> Warning: detected OpenGL error 'invalid operation' after applying attribute 
> BlendFunc 08DD47A8
> Warning: detected OpenGL error 'invalid operation' at end of 
> State::apply(StateSet*)
> Warning: detected OpenGL error 'invalid operation' at start of 
> State::apply(StateSet*)
> Warning: detected OpenGL error 'invalid operation' after applying GLMode 0xbc0
> Warning: detected OpenGL error 'invalid operation' after applying attribute 
> AlphaFunc 08DB4218
>
> 
> stefan hechenberger
>
> http://linear.nortd.com
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=14280#14280
>
>
>
>
>
> ___
> 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] building OSG as static library

2009-06-20 Thread stefan nortd
@J-S
Thanks. Adding the OSG_LIBRARY_STATIC define on windows solved the
 linker problem. My app builds and runs. I still have a few problems when
 closing the add which I don't get with the dynamic libs.
[code]
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD55D8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD47A8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying GLMode 0xbc0
Warning: detected OpenGL error 'invalid operation' after applying attribute 
AlphaFunc 08DB4218


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-20 Thread stefan nortd
@J-S
Thanks. Adding the OSG_LIBRARY_STATIC define on windows solved the
 linker problem. My app builds and runs. I still have a few problems when
 closing the add which I don't get with the dynamic libs.
[code]
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD55D8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD47A8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying GLMode 0xbc0
Warning: detected OpenGL error 'invalid operation' after applying attribute 
AlphaFunc 08DB4218


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-20 Thread stefan nortd
@J-S
Thanks. Adding the OSG_LIBRARY_STATIC define on windows solved the
 linker problem. My app builds and runs. I still have a few problems when
 closing the add which I don't get with the dynamic libs.
[code]
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD55D8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying attribute 
BlendFunc 08DD47A8
Warning: detected OpenGL error 'invalid operation' at end of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' at start of 
State::apply(StateSet*)
Warning: detected OpenGL error 'invalid operation' after applying GLMode 0xbc0
Warning: detected OpenGL error 'invalid operation' after applying attribute 
AlphaFunc 08DB4218


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-20 Thread Robert Osfield
Hi Stefan,

Build under Linux should be pretty well identical to the OSX/Makefile
build.  Does the osgstaticviewer example build OK?

FYI, I use Kubuntu 9.04.

Robert.

On Fri, Jun 19, 2009 at 11:23 PM, stefan nortd wrote:
> Hi,
>
> Now I am stuck on linux (ubuntu 9.04). I was able to build OSG as static libs 
> without a hick. When I try to run the my app I get linker problems. If I 
> switch in the dynamic precompiled binaries from the wiki the built goes fine. 
> I am afraid I might miss something obvious that xcode does on its own. Is 
> there anything I need to do differently when linking to static libs as 
> opposed dynamic libs? I guess I need to figure out somehow if my static libs 
> are punk or if I am linking them in wrong.
>
> Here is the error I get:
>
> ==
> ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(BufferObject.o)||In 
> function `__static_initialization_and_destruction_0(int, int)':|
> BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::Mutex()'|
> BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
> ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function 
> `osg::Camera::~Camera()':|
> Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
> Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
> ../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function 
> `osg::Camera::~Camera()':|
> Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
> Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
> 
> (keeps on going)
>
> ==
>
> Any ideas?
>
> 
> stefan hechenberger
>
> http://linear.nortd.com
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=14263#14263
>
>
>
>
>
> ___
> 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] building OSG as static library

2009-06-19 Thread Jean-Sébastien Guay

Just a further note:

Also check out the osgstaticviewer example as Robert mentioned, you'll 
see that you need some special declarations in order to be able to use 
the plugins and other things in a static context.


In other words, I don't think you can just swap out the dynamic libs for 
the static ones and rebuild the project and hope it will work. There are 
things you need to do in addition to that so it will work in a static 
context.


Hope that clears things up a bit.

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] building OSG as static library

2009-06-19 Thread Jean-Sébastien Guay

Hi Stefan,


My OSG static libs built fine under windows but when I try to use them in my 
app (swapping them out for the synamic ones) I get linker problems:


This:


__declspec(dllimport)


means that your app still thinks it needs to link to a DLL. Look at the 
include/osg/Export header, and you'll see that your app needs to define 
OSG_LIBRARY_STATIC in order not to get those __declspec(dllimport) 
symbols. You should add those to your app's configuration - in Visual 
Studio it's Project properties - C/C++ - Preprocessor Definitions. On 
Linux you could add -DOSG_LIBRARY_STATIC to your CXXFLAGS in your 
makefile, if that's what you're using to build.


Also check out the osgstaticviewer example as Robert mentioned, you'll 
see that you need some special declarations in order to be able to use 
the plugins and other things in a static context.


Note that I've never built OSG statically myself and as a result, have 
never used it as you're trying to, but those are things I think must be 
done for it to work. If you have further problems others might be able 
to help more than me.


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] building OSG as static library

2009-06-19 Thread stefan nortd
Hi again,

Since I got stuck on linux I continued my little adventure on windows VC9sp1. 
Unfortunately I got stuck at pretty much the same spot. I wonder if my problems 
on these two platforms have something in common. My OSG static libs built fine 
under windows but when I try to use them in my app (swapping them out for the 
synamic ones) I get linker problems:


Code:

Linking...
testApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) 
public: __thiscall osg::Box::Box(class osg::Vec3f const &,float)" 
(__imp_??0...@osg@@q...@abvvec3f@1...@m@Z)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual class 
osg::Object * __thiscall osg::Box::cloneType(void)const " 
(?clonet...@box@osg@@ubepavobj...@2@XZ)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual class 
osg::Object * __thiscall osg::Box::clone(class osg::CopyOp const &)const " 
(?cl...@box@osg@@ubepavobj...@2@abvcop...@2@@Z)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual bool 
__thiscall osg::Box::isSameKindAs(class osg::Object const *)const " 
(?issamekin...@box@osg@@ube_npbvobj...@2@@Z)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual char 
const * __thiscall osg::Box::libraryName(void)const " 
(?libraryn...@box@osg@@UBEPBDXZ)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual char 
const * __thiscall osg::Box::className(void)const " 
(?classn...@box@osg@@UBEPBDXZ)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual void 
__thiscall osg::Box::accept(class osg::ConstShapeVisitor &)const " 
(?acc...@box@osg@@ubexaavconstshapevisi...@2@@Z)
testApp.obj : error LNK2001: unresolved external symbol "public: virtual void 
__thiscall osg::Box::accept(class osg::ShapeVisitor &)" 
(?acc...@box@osg@@uaexaavshapevisi...@2@@Z)
testApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) 
public: void __thiscall osgGA::EventQueue::windowResize(int,int,int,int)" 
(__imp_?windowres...@eventqueue@osgGA@@qaexh...@z)
testApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) 
public: void __thiscall osg::GraphicsContext::resized(int,int,int,int)" 
(__imp_?resi...@graphicscontext@osg@@qaexh...@z)
ofxOsgNode.obj : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: void __thiscall 
osg::BlendFunc::setFunction(unsigned int,unsigned int)" 
(__imp_?setfunct...@blendfunc@osg@@qae...@z)
ofxOsgNode.obj : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class osg::Vec3d const & __thiscall 
osg::PositionAttitudeTransform::getPosition(void)const " 
(__imp_?getposit...@positionattitudetransform@osg@@qbeabvve...@2@XZ)
ofxOsgNode.obj : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class osg::Quat const & __thiscall 
osg::PositionAttitudeTransform::getAttitude(void)const " 
(__imp_?getattit...@positionattitudetransform@osg@@qbeabvq...@2@XZ)
ofxOsgNode.obj : error LNK2001: unresolved external symbol 
"__declspec(dllimport) public: class osg::Vec3d const & __thiscall 
osg::PositionAttitudeTransform::getPivotPoint(void)const " 
(__imp_?getpivotpo...@positionattitudetransform@osg@@qbeabvve...@2@XZ)
bin\graphicsExample.exe : fatal error LNK1120: 14 unresolved externals





Any immediate thoughts?


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-19 Thread stefan nortd
Hi,

Now I am stuck on linux (ubuntu 9.04). I was able to build OSG as static libs 
without a hick. When I try to run the my app I get linker problems. If I switch 
in the dynamic precompiled binaries from the wiki the built goes fine. I am 
afraid I might miss something obvious that xcode does on its own. Is there 
anything I need to do differently when linking to static libs as opposed 
dynamic libs? I guess I need to figure out somehow if my static libs are punk 
or if I am linking them in wrong.

Here is the error I get:

==
../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(BufferObject.o)||In function 
`__static_initialization_and_destruction_0(int, int)':|
BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::Mutex()'|
BufferObject.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function 
`osg::Camera::~Camera()':|
Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
../../../addons/ofxOsg/libs/osg/lib/linux/libosg.a(Camera.o)||In function 
`osg::Camera::~Camera()':|
Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|
Camera.cpp|| undefined reference to `OpenThreads::Mutex::~Mutex()'|

(keeps on going)

==

Any ideas?


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-19 Thread stefan nortd
Thanks Robert. Just made myself some static libs on osx. I didnt try xcode
 but plain Unix Makefiles work like a charm. With these libs my deployable
 executable is only 6mb now. Very nice!

@Chris
I am working cross-platform. So next I am trying to build statics on ubuntu
 and windows. Also mingw would be nice. Seems like windows will be the 
hardest because I need to recompile all the dependencies. Is this correct?

Thanks guys so far,


stefan hechenberger

http://linear.nortd.com

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





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


Re: [osg-users] [build] building OSG as static library

2009-06-19 Thread Robert Osfield
Hi Stefan,

On Fri, Jun 19, 2009 at 3:15 AM, stefan nortd wrote:
> I am interested in building OSG as a static library. Is this at all possible? 
> How does this pan out with the plugin mechanism.

I would recommend using the latest version of the OSG to do this as it
has best support for building as static library. (OSG svn/trunk or the
OSG-2.8 branch in svn would be best).

> I would be very happy to get some hints on doing this. Generally I would 
> assume I can configure the build files with cmake to compile static. Any tip 
> and tricks I should know?

CMake has the DYNAMIC_OPENSCENEGRAPH and DYNAMIC_OPENTHREADS variables
that you can set to OFF via ccmake/CMakeSetup.  Then build the OSG and
review the examples/osgstaticviewer source code for tips on how to
force the linking against the appropriate plugins.

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


Re: [osg-users] [build] building OSG as static library

2009-06-18 Thread Chris 'Xenon' Hanson
stefan nortd wrote:
> Hi,
> I am interested in building OSG as a static library. Is this at all possible? 
> How does this pan out with the plugin mechanism.
> I would be very happy to get some hints on doing this. Generally I would 
> assume I can configure the build files with cmake to compile static. Any tip 
> and tricks I should know? 

  Which platform/OS?

> Thank a lot!
> Cheers,
> stefan

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [build] building OSG as static library

2009-06-18 Thread stefan nortd
Hi,

I am interested in building OSG as a static library. Is this at all possible? 
How does this pan out with the plugin mechanism.

I would be very happy to get some hints on doing this. Generally I would assume 
I can configure the build files with cmake to compile static. Any tip and 
tricks I should know? 


Thank a lot!

Cheers,
stefan


stefan hechenberger

http://linear.nortd.com

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





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