Hi Laurens, Apologies but it has taken me some time to get back to your response to my "VS8 Express" build dilemma.
I just downloaded the OSG 1.2 tarball for 2 Dec (OSG only) and tried to build the OSGViewer application from scratch from the IDE. The build fails with an output log window that starts with: osgviewer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall osgUtil::Optimizer::~Optimizer(void)" and finishes with : .\../../../bin/Win32/osgviewerd.exe : fatal error LNK1120: 36 unresolved externals The OSG core builds just fine, but I think your expectation about building OSG 1.2 cleanly with VS8 Express "out of the box" is doomed. I have VS8 Express plus PSDK installed plus the Microsoft defined build modifications - thanks for the link. However, this combination fails to beat the basic error that part of the debug build is "debug (dynamic)" whilst the remainder is "debug static". The former creates a filename ending in "d.lib" whilst the later creates an "d_s.lib" ending. This results in a debug dynamic build looking for some target filenames that do not exist because those target filenames use the alternate ending. One possible clue I have yet to follow is the appearance of the message: 7>Project : warning PRJ0018 : The following environment variables were not found: 7>$(MSSDK) I have yet to attempt a release build. regards PhilT -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of L.Voerman Sent: 25 November 2006 22:38 To: osg users Subject: Re: [osg-users] Help: errors building osgCore and examples(VC++Express, WinXP) Philip, To build the dynamic link versions with VC 8 Express you may need the psdk too, and some modifications to the default build settings. See http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx for instructions. I'm using this combo (VC 8 Express + PSDK for Windows Server 2003 R2) to build the release dll version, which builds and runs fine on WinXP sp2. Last debug build I've done was osg1.1, but I do expect 1.2 to build fine too. I did rebuild all external dependency's with VC8, this might be necessary for link or to keep things from crashing of the fly. To use the executables on other machines you'll need vcredist_x86.exe (download from microsoft), which is NOT installed with the VC Express version (the binary's are installed, the installer is not). Laurens. On Sat, 25 Nov 2006 08:40:25 -0000 "Philip Taylor" <[EMAIL PROTECTED]> wrote: > There seems to be an issue building OSG with VC 8 Express. > > VC8 Express appears to lack the ability to build dynamic (multi-threaded)libraries because Microsoft have not included the relevant 32 bit libraries. > > A mixture of multi-thread and static builds with regard to dynamic memory allocation because two different schemes are used which conflict causing memory contention. > > See the previous threads such as "RE: [osg-users] Windows OSG build philosophy" for suggestions. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf >Of Paul Martz > Sent: 24 November 2006 23:16 > To: 'osg users' > Subject: RE: [osg-users] Help: errors building osgCore >and > examples(VC++Express, WinXP) > > > From your point 4) below, it looks like you only built the static libraries, not the dynamic libraries; is this what you intended? Not sure > about VS Express, but in VS7/8 you can do a "batch build" and select any or all of dynamic/static and Release/Debug. > > The problem you reported in A) is missing third party dependencies. In order for OSG to support TIFF image files, for example, the TIFF plugin will need to link with the 3rd party libTIFF, and if you don't have the libTIFF headers and libraries installed, then the TIFF plugin will have build errors and not build. This is OK as long as you don't need TIFF support. > > I'm not sure about your problem B) below, but I suspect the portion of OSG you're trying to build requires the dynamic library version of OpenThreads and you have only built the static versions. > > I hope this helps a little. > -Paul > > > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
