Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, sorry for that, I also missed your reply for a strange reason.. Now osg builds, but I cannot test it, see below nyiotis wrote: Hi again, 'osgversion' correctly outputs OpenSceneGraph Library 2.8.3 and the osglogo fails with 'osglogo: command not found' My edited .profile: PATH=$PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin export OSG_FILE_PATH=/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph-Data-2.8.0 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug #export DYLD_BIND_AT_LAUNCH export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug I cannot check in the site (it seems down all day) if I am missing something. Cheers, Nikos Thank you! Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35396#35396 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1 [SOLVED]
Hi Nikos, My edited .profile: PATH=$PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin export OSG_FILE_PATH=/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph-Data-2.8.0 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug #export DYLD_BIND_AT_LAUNCH export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug First of all, you set PATH but don't export it. Add export to the start of the PATH= line and then do source ~/.profile or log out and back in, or start a new shell, to apply the values. After that, can you do echo $PATH to see if the value has applied? It should end with /Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin since that's what you added in your .profile. Finally, can you do ls /Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin to make sure osglogo is there? If it is, then running it should work after doing the above. And before all that, you could do which osgversion My guess is that you have an osgversion executable left over from some other OSG installation in your normal system binary paths (/usr/local/bin probably) and this is what it's picking up since you didn't have the export in your PATH= line in your .profile. You could probably also do a find / -iname osgversion to see if you have osgversion somewhere it shouldn't be on your system. Perhaps you did a make install before, without having changed CMAKE_INSTALL_PREFIX, which will generally install to a central location (/usr/local/{bin|lib|share|include} on Linux and MacOS X, C:\Program Files{ (x86)} on Windows). Also, you set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH to find what seems to be the Debug versions of OSG libs/.so, is that what you want in all cases? On Linux what I sometimes do is have two build directories for the same OSG source, one which builds release and one debug, and I have a symlink somewhere that points to one or the other, and I use the paths through that symlink in the makefiles/build system of projects that use OSG. That way I can use release most of the time, and switch easily to debug when I need to. Ah, the pleasures of a compiler that lets you mix debug and release executables/libs/.so ! :-) But that may lead to another problem, if you added Debug to your library paths, maybe you have only built Debug? In that case, trying to run osglogo won't work even with the right paths, since the executables have a 'd' appended to the name in Debug builds. Try osglogod in that case. But remember that to get the best performance you should use a release build. 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] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1 [SOLVED]
Hi, amazed by your super-detailed answer, thanks! You are right w/ all these continuous builts I forgot the Release build. So, I will fix this soon Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35399#35399 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, consider this solved Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35400#35400 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1 [SOLVED]
Hi, all set-up properly! Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35420#35420 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
On 5/01/11 23:16 , Nikos Yiotis wrote: Hi Ulrich, strange.. I tweaked the CmakeLists.txt a bit: among others I add BUILD_OSG_EXAMPLES=ON and I go with COCOA_LIBRARY /System/Library/Frameworks/Cocoa.framework I assume you mean CMakeCache.txt rather than CMakeLists.txt? Did you set OSG_WINDOWING_SYSTEM:STRING=Cocoa? example_osgviewerQT does not built I get error: 'osgViewer::GraphicsWindowCarbon' has not been declared from typedef osgViewer::GraphicsWindowCarbon::WindowData WindowData; and similar ones. Should I kill example_osgviewerQT (I hope there is an example_osgviewerQT for Cocoa) and uncomment FIND_LIBRARY(CARBON_LIBRARY Carbon) in l.146 of CmakeLists? No, you shouldn't need to make any changes in any CMakeLists.txt, only in the cmake UI or CMakeCache.txt directly. The error sounds like OSG_WINDOWING_SYSTEM is not set properly and it's trying to use the wrong windowing system implementation. On 6/01/11 18:54 , Nikos Yiotis wrote: OK, now the only catch is to disable example_osgviewerQT.. How? It does not appear in the CMakeLists I don't build the Qt osgviewer so I can't comment on that, sorry. If you absolutely have to disable it, it's added in examples/CMakeLists.txt but again, I'd assume it's okay and it certainly doesn't have a direct dependecy on Cocoa, so it should build fine presuming that the Cocoa support is properly built. More importantly, it cannot detect wxWidget, hence I get undefined symbols from linker. For detecting wxWidgets my config in cmake gui is wxWidgets_CONFIG_EXECUTABLE /usr/lib/wx/config/mac-unicode-debug-2.8 wxWidgets_wxrc_EXECUTABLE /usr/bin/wxrc-2.8 Yes, as far as I can tell OS X does not ship a 64-bit version of wxWidgets. I had to disable it by clearing those two entries. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
I assume you mean CMakeCache.txt rather than CMakeLists.txt? CMakeCache.txt sounds like a better way, yes Did you set OSG_WINDOWING_SYSTEM:STRING=Cocoa? yes No, you shouldn't need to make any changes in any CMakeLists.txt, only in the cmake UI or CMakeCache.txt directly. The error sounds like OSG_WINDOWING_SYSTEM is not set properly and it's trying to use the wrong windowing system implementation. could you send me the link for the trunk? Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum[/quote] -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35358#35358 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi Nikos, example_osgviewerQT does not built [...] More importantly, it cannot detect wxWidget, hence I get undefined symbols from linker. For detecting wxWidgets my config in cmake gui is Is there any reason you need these two examples? If not, just blank out QT_QMAKE_EXECUTABLE and the two wxWidgets settings, click Configure again, and Generate. They won't be built. You don't need to modify the CMakeLists.txt (which is a heavy-handed approach anyways and will lead to problems down the line if there are ever other external changes to those files). I was able to get a working MacOS X build without editing CMakeLists.txt at all. 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] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Thank J-S, it builds (no matter the duplicate dylib warnings) Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35381#35381 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1 [SOLVED]
Hi again, 'osgversion' correctly outputs OpenSceneGraph Library 2.8.3 and the osglogo fails with 'osglogo: command not found' My edited .profile: PATH=$PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin export OSG_FILE_PATH=/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph-Data-2.8.0 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug #export DYLD_BIND_AT_LAUNCH export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug I cannot check in the site (it seems down all day) if I am missing something. Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35386#35386 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi Nikos, could you please quote properly next time? It's rather hard to make out which bits are new and which are quoted. On 6/01/11 22:32 , Nikos Yiotis wrote: No, you shouldn't need to make any changes in any CMakeLists.txt, only in the cmake UI or CMakeCache.txt directly. The error sounds like OSG_WINDOWING_SYSTEM is not set properly and it's trying to use the wrong windowing system implementation. could you send me the link for the trunk? I don't understand what you mean by this, what trunk? SVN trunk? That is in the wiki. Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi Ulrich, strange.. I tweaked the CmakeLists.txt a bit: among others I add BUILD_OSG_EXAMPLES=ON and I go with COCOA_LIBRARY /System/Library/Frameworks/Cocoa.framework but now I have compiling issues: example_osgviewerQT does not built I get error: 'osgViewer::GraphicsWindowCarbon' has not been declared from typedef osgViewer::GraphicsWindowCarbon::WindowData WindowData; and similar ones. Should I kill example_osgviewerQT (I hope there is an example_osgviewerQT for Cocoa) and uncomment FIND_LIBRARY(CARBON_LIBRARY Carbon) in l.146 of CmakeLists? More importantly, it cannot detect wxWidget, hence I get undefined symbols from linker. For detecting wxWidgets my config in cmake gui is wxWidgets_CONFIG_EXECUTABLE /usr/lib/wx/config/mac-unicode-debug-2.8 wxWidgets_wxrc_EXECUTABLE /usr/bin/wxrc-2.8 Also, not of equal importance, I cannot get rid of the linker warnings w.r.t. duplicate dylibs, e.g. /Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph/Bin/lib/Debug/libOpenThreadsd.dylib Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35325#35325 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, re-read your first post and commented out the wx 32-bit stuff #SET(wxWidgets_USE_LIBS base core gl net) #FIND_PACKAGE(wxWidgets) let's find out.. Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35329#35329 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, re-read your first post and commented out the wx 32-bit stuff #SET(wxWidgets_USE_LIBS base core gl net) #FIND_PACKAGE(wxWidgets) let's find out.. Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35330#35330 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
OK, now the only catch is to disable example_osgviewerQT.. How? It does not appear in the CMakeLists Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35340#35340 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, Am 04.01.11 01:06, schrieb Nikos Yiotis: [i]Warning: Could not find plugin to read objects from file Images/land_shallow_topo_2048.jpg. View::setUpViewAcrossAllScreens() : Error, no WindowSystemInterface available, cannot create windows. Viewer::realize() - failed to set up any windows Can you set OSG_NOTIFY_LEVEL to a more verbose mode (DEBUG_INFO), to get some more information why image-loading fails? What's the value of OSG_WINDOWING_SYSTEM and OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX in CMake? cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, I thought OSG_NOTIFY_LEVEL was a cmake flag not an env. flag. So I built source from scratch, generating xcode.proj and not makefile this time. I set OSG_WINDOWING_SYSTEM to Cocoa (from Carbon) OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX to imageio (from quicktime) and it builds, although I get many warnings -literally for each .dylib used-, e.g. ld: warning: duplicate dylib /Users/nikos/NetBeansProjects/OpenSceneGraph/OpenSceneGraph-2.8.3/Bin/lib/Debug/libosgTextd.dylib How can I suppress this? Now osgversion outputs OpenSceneGraph Library 2.8.3 and the osglogo fails again now with osglogo: command not found I set the OSG_NOTIFY_LEVEL to DEBUG_INFO although $ENV_PATH gives me a blank line...the path is correctly highlighted though. I've seen this blank line before, but a quick search does not give me any hints on how to fix that. Thank you! Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35291#35291 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
I ran OSG_NOTIFY_LEVEL=debug through a script, but my echo $ENV_PATH still appears blank. How can I verify that it is set? Again, all set with PATH, DYLB_PATH, etc. Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35313#35313 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi Nikos, regarding osglogo not being found, it is built as part of the examples, so BUILD_OSG_EXAMPLES must be on in cmake. I'm building on 10.6.5 with Makefiles (using gcc 4.2.1) and set the following in cmake: BUILD_OSG_APPLICATIONS=ON BUILD_OSG_EXAMPLES=ON CMAKE_OS_ARCHITECTURES=x86_64 OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio OSG_WINDOWING_SYSTEM=Cocoa Hope this helps, Cheers, /ulrich ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, while my earlier built was successful ([i]osgversion[/i] outputs [i]OpenSceneGraph Library 2.8.3 [/i]) the [i]osglogo[/i] fails. I get: [i]Warning: Could not find plugin to read objects from file Images/land_shallow_topo_2048.jpg. View::setUpViewAcrossAllScreens() : Error, no WindowSystemInterface available, cannot create windows. Viewer::realize() - failed to set up any windows [/i] Any ideas how to fix that? Thank you! Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35285#35285 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi Ulrike, Thanks! a 64-bit flag was enough (it also removes benign warnings from the cmake 32-bit built). I don't really get the mess with 64/32 versions from macports once snow leopard showed up, but that's a long (and another) story.. Cheers, Nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34224#34224 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [build] cannot build osg on mac os x 10.6.5 with gcc version 4.2.1
Hi, I get the attached warnings and linking errors ending up to Code: ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [lib/libosgViewer.2.9.10.dylib] Error 1 make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2 make: *** [all] Error 2 when I try to build the latest svn of osg with Cmake 2.8-2 (at first, I delete the ppc arch flag). Any ideas on what's wrong? Cheers! nikos -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34171#34171 Attachments: http://forum.openscenegraph.org//files/osg_385.zip ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org