Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Robert Osfield wrote: > set/export/setenv OSG_NOTIFY_LEVEL=DEBUG > osglauncher Your right - I forgot about that setting. Even saw some in the code and forgot what it was that would activate them - Brain blurp I guess. > Also it would be worth just trying the rest of the more conventional examples. That is the weird thing - osganimate, osgeometry and the others I tried all seem to work from the command line just not from osglauncher if not in debug. I'll dig around and see what I can find. bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Hi Brian, Strange behaviour indeed. I don't really have any clues what might be up. The best I can suggest to add some extra diagnositics in to what the OSG is doing - by enable verbose debug info, perhaps this will shed some light. set/export/setenv OSG_NOTIFY_LEVEL=DEBUG osglauncher Also it would be worth just trying the rest of the more conventional examples. Robert. On Tue, Nov 18, 2008 at 9:25 PM, Brian Keener <[EMAIL PROTECTED]> wrote: > Brian Keener wrote: >> Since the Debug version seemed to work, I plan to do a full cleanup and >> then a new cmake configure and build a release again and see what >> happens. > > Robert, > > now I am confused. I did a make uninstall, make clean, deleted my build > directory and reran ccmake and reconfigured for a Release version. After > the build I did a make install, corrected my osg.conf for release names > and when I tested osglauncher I select osganimate and osggeometry and even > though when I hit escape I could see the apps had started to run but the > windows never materialized. > > Then I did a make uninstall, make clean, deleted my build directory and > reran ccmake and reconfigured for a Debug version. After the build I > corrected my osg.conf for the debug version and when I tried osglauncher > again for osganimate and osggeometry this time they both ran and their > windows materialized as expected. > > Any thoughts. > > bk > > > > ___ > 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] Compile error - ConvertUTF on osgDB in Cygwin
Brian Keener wrote: > Since the Debug version seemed to work, I plan to do a full cleanup and > then a new cmake configure and build a release again and see what > happens. Robert, now I am confused. I did a make uninstall, make clean, deleted my build directory and reran ccmake and reconfigured for a Release version. After the build I did a make install, corrected my osg.conf for release names and when I tested osglauncher I select osganimate and osggeometry and even though when I hit escape I could see the apps had started to run but the windows never materialized. Then I did a make uninstall, make clean, deleted my build directory and reran ccmake and reconfigured for a Debug version. After the build I corrected my osg.conf for the debug version and when I tried osglauncher again for osganimate and osggeometry this time they both ran and their windows materialized as expected. Any thoughts. bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Robert Osfield wrote: > You shouldn't need to apply Alberto's patch, my changed avoided the > need for Alberto's patch. svn/trunk should compile fine. Sorry - my run on sentences were confusing again. :-). I didn't use both your patches at the same time. I had used his and as I reported previously that got OSG to compile and then osglauncher worked fine (with a couple exceptions - documented here and private email to you). When I got your patch I rolled his back and applied yours. At this time I developed the symptoms where it seemed as if none of the examples from osglauncher were running or at least no screens were being displayed since after I escaped to terminate I would see the output (like th geometry calculations and such on the window where I started the task. I did this several times first rolling back your patch and trying his and then roll his back and try yours even tried a power off and a reboot. Same symptoms. Then I built a debug version and as I mentioned I had not had a chance to debug but osglauncher would not run the examples now as it was looking for osganimate and not osganimated. My initial attempt seemed to show they were still showing up behind the osglauncher screen but I modified osg.conf so it referenced the debug versions instead of the release version and then when I tried osglauncher did EVERYTHING perfectly. No idea :-( > I'm kinda surprised by the observed relationship with osglauncher > behaviour. Did osglauncher work OK prior to these changes? So was I and now I do not believe it is related - the timing was coincidental but I have no idea what caused it or if it will happen again. Since the Debug version seemed to work, I plan to do a full cleanup and then a new cmake configure and build a release again and see what happens. 2 thoughts cross my mind from all this: 1) I am wondering if I was confused on click vs double-click since based on my test today I realized the apps would run with a click and I may have been doing a double-click thus starting the app but then bringing osglauncher back to the foreground. 2) the only other thing I can thing of is the parameter for the USE_3RD _PARTY_BIN (references Mike in the help) as I know I tried with it ON and with it OFF thinking I did not need it. Not sure if that had anything to do with it but the current Debug is built with it ON and in some of the previous it was OFF. bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Hi Brian, You shouldn't need to apply Alberto's patch, my changed avoided the need for Alberto's patch. svn/trunk should compile fine. I'm kinda surprised by the observed relationship with osglauncher behaviour. Did osglauncher work OK prior to these changes? Robert. On Mon, Nov 17, 2008 at 5:47 PM, Brian Keener <[EMAIL PROTECTED]> wrote: > Brian Keener wrote: >> I did notice and >> seems I have noticed this before - from osgLauncher some of the processes >> (burning cessna, particles) end up hidden behind the osgLauncher screen. >> Some work fine but a few of these end up hidden and you think you have >> problem until you find them and sometimes they are hard to get to come to the >> front. Might be just Cygwin but thought I would mention it in case others >> have noticed. > > Not sure what is going on with the above but when I first compiled right after > applying Alberto's patch I was able to use osgLauncher and it would run > several > of the examples and as documented above several ended up hidden and were > difficult to get to come to the top so they could be closed. Then when I > compiled with Roberts revised patch then it seemed that none of the examples > were running from osgLauncher but in fact they were running but they are > either > not coming to the front or they are not the window is not being built. When I > finally break out of them - like osggeometry I can see the calculation on the > window but I never saw the actual osggeometry screen. This is only from > osglauncher - osggeometry by itself from the command line - works fine. > > I have since compiled (full make uninstall, make clean, delete all obj files, > ccmake and then make) again with Alberto's patch and with Roberts patch and > still cannot get back to the first run of many of the osglauncher run apps > working (visible). > > I have not had a chance to try to debug but I did compile a debug version and > we > need a patch there because osglauncher doesn't recognize the debug version of > the files so I can the message osganimate could not be found instead of > osganimated could not be found. > > At any rate - any thoughts on the above - why this change in results might be > happening. > > thanks > > bk > > > > > > ___ > 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] Compile error - ConvertUTF on osgDB in Cygwin
Brian Keener wrote: > I did notice and > seems I have noticed this before - from osgLauncher some of the processes > (burning cessna, particles) end up hidden behind the osgLauncher screen. > Some work fine but a few of these end up hidden and you think you have > problem until you find them and sometimes they are hard to get to come to the > front. Might be just Cygwin but thought I would mention it in case others > have noticed. Not sure what is going on with the above but when I first compiled right after applying Alberto's patch I was able to use osgLauncher and it would run several of the examples and as documented above several ended up hidden and were difficult to get to come to the top so they could be closed. Then when I compiled with Roberts revised patch then it seemed that none of the examples were running from osgLauncher but in fact they were running but they are either not coming to the front or they are not the window is not being built. When I finally break out of them - like osggeometry I can see the calculation on the window but I never saw the actual osggeometry screen. This is only from osglauncher - osggeometry by itself from the command line - works fine. I have since compiled (full make uninstall, make clean, delete all obj files, ccmake and then make) again with Alberto's patch and with Roberts patch and still cannot get back to the first run of many of the osglauncher run apps working (visible). I have not had a chance to try to debug but I did compile a debug version and we need a patch there because osglauncher doesn't recognize the debug version of the files so I can the message osganimate could not be found instead of osganimated could not be found. At any rate - any thoughts on the above - why this change in results might be happening. thanks bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Hi Brian, On Sat, Nov 15, 2008 at 12:15 AM, Brian Keener <[EMAIL PROTECTED]> wrote: > I placed your attachment in place of the include file and then moved > Alberto's ConvertUTF.cpp out of the way and retrieved the current > version from SVN. Compiles just fine. > > Anything I can run/test to verify it functions properly? This code is for handling filenames which are defined as wide character strings. It turns out that Cygwin lacks both the wstring and any of the wide character string functions for accessing the filesystem so it can't do wide character filenames anyway so it's pointless trying to test this out. By just leaving things as they are the OSG will just compile in with previous defaults of char* filename and everything that worked previously should work just the same now. It's only if you need wide character filenames will you need to enable this functionality, but then you'll drop off what is supported with Cygwin anyway... Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Robert Osfield wrote: > I have just reviewed Alberto's fix and I'm not happy with it as it > stands, I don't cygwin to test against so I can't test this myself, > but I do wonder if defining wstring ourselves for Cygwin would be a > workable solution i.e. add the following to ConvertUTF: > > #ifdef __CYGWIN__ > namespace std > { > typedef basic_string wstring; > } > #endif > > I've attached a modified ConvertUTF. Could you try this out in place > of Alberto's changes. In theory you'll be able to revert to the svn > version of ConvertUTF.cpp as well is this works fine. > > If this work I'll check this in. I placed your attachment in place of the include file and then moved Alberto's ConvertUTF.cpp out of the way and retrieved the current version from SVN. Compiles just fine. Anything I can run/test to verify it functions properly? bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Hi Brian, I have just reviewed Alberto's fix and I'm not happy with it as it stands, I don't cygwin to test against so I can't test this myself, but I do wonder if defining wstring ourselves for Cygwin would be a workable solution i.e. add the following to ConvertUTF: #ifdef __CYGWIN__ namespace std { typedef basic_string wstring; } #endif I've attached a modified ConvertUTF. Could you try this out in place of Alberto's changes. In theory you'll be able to revert to the svn version of ConvertUTF.cpp as well is this works fine. If this work I'll check this in. Robert. ConvertUTF Description: Binary data ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Alberto Luaces wrote: > A patch sent this week is pending on the submissions queue to be applied. See > the osg-submissions list if you want to have OSG compiling now: > > //www.mail-archive.com/[EMAIL PROTECTED]/msg02349.html ">http://www.mail-archive.com/[EMAIL PROTECTED]/msg023 49.html Thanks Alberto, The patch fixed it - compiled fine and the hangs still seem to be absent from the cygwin compile running the examples - this is good. I did notice and seems I have noticed this before - from osgLauncher some of the processes (burning cessna, particles) end up hidden behind the osgLauncher screen. Some work fine but a few of these end up hidden and you think you have problem until you find them and sometimes they are hard to get to come to the front. Might be just Cygwin but thought I would mention it in case others have noticed. Thanks again bk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
El Viernes 14 Noviembre 2008ES 04:29:48 Brian Keener escribió: > Just updated from SVN and tried to compile in Cygwin for a periodic > compile test and received the following errors. I cleaned out the > build directory and reconfigured and still got the same error. > > Am I missing some library or ??? Hi Brian, A patch sent this week is pending on the submissions queue to be applied. See the osg-submissions list if you want to have OSG compiling now: http://www.mail-archive.com/[EMAIL PROTECTED]/msg02349.html Regards, Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Compile error - ConvertUTF on osgDB in Cygwin
Hi Brian, I believe this is fix in osg-submssions that awaits me review. I'll be doing a submission purge later today so will pick it up then, but in the meantime just go check the osg-submissions archives for the last week for the fix. Robert. On Fri, Nov 14, 2008 at 3:29 AM, Brian Keener <[EMAIL PROTECTED]> wrote: > Just updated from SVN and tried to compile in Cygwin for a periodic > compile test and received the following errors. I cleaned out the > build directory and reconfigured and still got the same error. > > Am I missing some library or ??? > > Thanks > > bk > > Linking CXX shared library ../../bin/cygosg-2.7.6.dll > Creating library file: ../../lib/libosg.dll.a > [ 14%] Built target osg > Scanning dependencies of target osgDB > [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/Archive.o > [ 14%] Building CXX object > src/osgDB/CMakeFiles/osgDB.dir/AuthenticationMap.o > [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/ConvertUTF.o > In file included from > /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:14: > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:27: error: expected > constructor > , destructor, or type conversion before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:27: error: expected > `,' or `;' > before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: expected > unqualified > -id before '&' token > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: expected > `,' or `... > ' before '&' token > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: ISO C++ > forbids decl > aration of `parameter' with no type > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF: In function > `std::string osgDB > ::convertUTF16toUTF8(int)': > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: `s' > undeclared (firs > t use this function) > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: (Each > undeclared ide > ntifier is reported only once for each function it appears in.) > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF: At global scope: > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:32: error: expected > init-declar > ator before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:32: error: expected > `,' or `;' > before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:33: error: expected > init-declar > ator before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:33: error: expected > `,' or `;' > before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:57: error: expected > constructor > , destructor, or type conversion before "convertUTF8toUTF16" > /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:57: error: expected > `,' or `;' > before "convertUTF8toUTF16" > make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/ConvertUTF.o] Error 1 > make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 > make: *** [all] Error 2 > > [EMAIL PROTECTED] /usr/develop/obj/osg > $ > > > > > ___ > 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] Compile error - ConvertUTF on osgDB in Cygwin
Just updated from SVN and tried to compile in Cygwin for a periodic compile test and received the following errors. I cleaned out the build directory and reconfigured and still got the same error. Am I missing some library or ??? Thanks bk Linking CXX shared library ../../bin/cygosg-2.7.6.dll Creating library file: ../../lib/libosg.dll.a [ 14%] Built target osg Scanning dependencies of target osgDB [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/Archive.o [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/AuthenticationMap.o [ 14%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/ConvertUTF.o In file included from /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:14: /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:27: error: expected constructor , destructor, or type conversion before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:27: error: expected `,' or `;' before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: expected unqualified -id before '&' token /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: expected `,' or `... ' before '&' token /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: ISO C++ forbids decl aration of `parameter' with no type /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF: In function `std::string osgDB ::convertUTF16toUTF8(int)': /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: `s' undeclared (firs t use this function) /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:29: error: (Each undeclared ide ntifier is reported only once for each function it appears in.) /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF: At global scope: /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:32: error: expected init-declar ator before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:32: error: expected `,' or `;' before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:33: error: expected init-declar ator before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/include/osgDB/ConvertUTF:33: error: expected `,' or `;' before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:57: error: expected constructor , destructor, or type conversion before "convertUTF8toUTF16" /usr/src/OpenSceneGraph/src/osgDB/ConvertUTF.cpp:57: error: expected `,' or `;' before "convertUTF8toUTF16" make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/ConvertUTF.o] Error 1 make[1]: *** [src/osgDB/CMakeFiles/osgDB.dir/all] Error 2 make: *** [all] Error 2 [EMAIL PROTECTED] /usr/develop/obj/osg $ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org