Hi Antonio,
you can create static libs via cygwin/configure.
On windows you have to reference unreferenced stuff manually.
something like this:
static void initializeStatics(void)
{
// for static linking
#ifndef OSG_BUILD_DLL
printf("VRML: %p\n", OSG::VRMLSceneFileType::the());
printf("OSG: %p\n", OSG::OSGSceneFileType::the());
printf("OSB: %p\n", OSG::NFIOSceneFileType::the());
new OSG::NFIOGeneric;
new OSG::NFIOGeometry;
new OSG::NFIOImage;
printf("Class id %d\n", OSG::DVRVolume::getClassTypeId());
printf("Class id %d\n", OSG::DVRVolumeTexture::getClassTypeId());
printf("Class id %d\n", OSG::DVRIsoSurface::getClassTypeId());
printf("Class id %d\n", OSG::DVRLookupTable::getClassTypeId());
printf("Class id %d\n", OSG::DVRSimpleLUTShader::getClassTypeId());
printf("Class id %d\n", OSG::PhongMaterial::getClassTypeId());
printf("Class id %d\n", OSG::SHLChunk::getClassTypeId());
printf("Class id %d\n", OSG::GeoColors3f::getClassTypeId());
printf("Class id %d\n", OSG::Surface::getClassTypeId());
#ifdef OSG_WITH_JPG
printf("JPG: %p\n", OSG::JPGImageFileType::the());
#endif
#ifdef OSG_WITH_TIF
printf("TIF: %p\n", OSG::TIFImageFileType::the());
#endif
#ifdef OSG_WITH_PNG
printf("PNG: %p\n", OSG::PNGImageFileType::the());
#endif
#ifdef OSG_WITH_GIF
printf("GIF: %p\n", OSG::GIFImageFileType::the());
#endif
printf("SGI: %p\n", OSG::SGIImageFileType::the());
printf("DAT: %p\n", OSG::DATImageFileType::the());
printf("MNG: %p\n", OSG::MNGImageFileType::the());
printf("MTD: %p\n", OSG::MTDImageFileType::the());
printf("PNM: %p\n", OSG::PNMImageFileType::the());
printf("TGA: %p\n", OSG::TGAImageFileType::the());
printf("Image %p\n", OSG::ImageFileHandler::the());
#endif
}
Andreas
> Hi,
>
> is there a way do statically link OpenSG under
> Windows? I remember there was a disussion on this
> issue a few month ago... So what's the status
> right now?
>
> Regards,
>
> Toni
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users