Thanks for the info. Next time I have a chance to play with Cygwin I'll give it a shot. (However, when I last tinkered with this, I created a test application and test DLL, compiled them with the same options as OSG examples and DLLs, and found that I could return a ref to a std::string. So, the next thing to do was to figure out why my test case worked and OSG did not, but that's as far as I got with it. If your compiler option fixes the problem for OSG, I'll still be stumped as to why my test case was able to work without it.) -Paul
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bertrand greslier Sent: Friday, December 01, 2006 4:11 PM To: osg users Subject: Re: [osg-users] Problem compiling OSG in Cygwin [ESRI Plugin] Hi, For the std::string problem : it because passing static reference of std::string between dll , because mingw always make static link your exe or dll with the std lib by default. Thus, you must recompile libstdc++ with --enable-fully-dynamic-string option or you can also use an alternative implementation link stlport (5.0.2) dynamically as you prefer. For your plugin ESRI problem I can't help you. Regards, Bertrand. On 12/1/06, Paul Martz <[EMAIL PROTECTED]> wrote: Hi Brian -- You might want to check the osg-users archives for the Cygwin discussion of about a month or two back. The ESRI plugin doesn't compile under Cygwin; you'll need to remove it from the Makefile. Once you finally get everything compiled, you'll find an odd runtime crash in many of the OSG examples. It was related to returning a reference to a std::string, if I remember correctly (again check the Cygwin discussion in the archives). I was unable to find the source of this problem, and encountered it regardless of the gcc compiler version. As a result, I'm still unable to use OSG built with Cygwin, and I don't know of anyone who is currently using OSG built with Cygwin. If you make any progress with this, please post back to the group. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com> 303 859 9466 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] On Behalf Of > Brian Keener > Sent: Friday, December 01, 2006 2:00 PM > To: [email protected] > Subject: [osg-users] Problem compiling OSG in Cygwin [ESRI Plugin] > > I have been compiling FlightGear in Cygwin and had been > working with the pre OSG version and I decided to give the > OSG version a try. I have gotten OpenThreads and Producer to > compile but when I try OpenSceneGraph I am getting an error > in the ESRI plugin. > > I see form the CYgwin instructions for OSG that I should be > using gcc3.3.3 but I am using gcc3.4.4 and I have been seeing > some of the expected warnings about inline functions and > __curr and the like but those I know are expected. Before I > roll back my gcc to 3.3.3 I wanted to confirm there really > wasn't something wrong with the code: > > Thanks for any assistance > > bk > > The error I am getting is: > > make[3]: Leaving directory > `/usr/src/OpenSceneGraph/src/osgPlugins/dxf' > Entering directory ESRIShape > make[3]: Entering directory > `/usr/src/OpenSceneGraph/src/osgPlugins/ESRIShape' > make[4]: Entering directory > `/usr/src/OpenSceneGraph/src/osgPlugins/ESRIShape/CY > GWIN32.Opt' > c++ -O2 -DWIN32 -DNOMINMAX -W -Wall -mnop-fun-dllimport > c++ -I../../../../include > - > I/usr/local/include/OpenThreads -I/usr/local/include/Producer > -c ./ESRIShape.c pp > ./ESRIShape.cpp: In function `bool readVal(int, T&, > ESRIShape::ByteOrder)': > ./ESRIShape.cpp:38: error: `::read' has not been declared > ./ESRIShape.cpp: In member function `bool > ESRIShape::ShapeHeader::read(int)': > ./ESRIShape.cpp:97: error: `::read' has not been declared > make[4]: *** [ESRIShape.o] Error 1 > make[4]: Leaving directory > `/usr/src/OpenSceneGraph/src/osgPlugins/ESRIShape/CYG > WIN32.Opt' > make[3]: *** [cygosgdb_shp.dll.opt] Error 2 > make[3]: Leaving directory > `/usr/src/OpenSceneGraph/src/osgPlugins/ESRIShape' > make[2]: *** [default] Error 1 > make[2]: Leaving directory `/usr/src/OpenSceneGraph/src/osgPlugins' > make[1]: *** [default] Error 1 > make[1]: Leaving directory `/usr/src/OpenSceneGraph/src' > make: *** [default] Error 1 > > [EMAIL PROTECTED] /usr/src/OpenSceneGraph $ > > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] <mailto:[email protected]> http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ -- Bertrand Greslier http://www.cooki3d.org
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
