Log in | Register new account
Home » Projects » Hippo OpenSim Viewer » Tracker » Support Requests » Edit Tracker Item
* Build initially fails for want of CXX being set. * Once I export CXX=g++, build warns of potential conflicting paths for libGLU.o, proceeds, then fails on a few stdlib-type things. * Tried export CXX=gcc, build warns of potential conflicting paths for libGLU.o, proceeds, then fails on a few DIFFERENT stdlib-type things. Build output attached for above three points. Thanks in advance, -SM P.S. My system builds OpenSim cleanly.
Submitted By: Mana Janus Adddate: 2009-01-11 18:08:45 Scott, The conflicting paths for libGLU can be safely ignored. The stdlib errors I have seen during linking with g++ 4.2 too. It seems the precompiled libraries provided by Linden are compiled with g++ 4.1 and won't work with 4.2. You should be able to compile the sources fine with g++ 4.1. If you are not sure, which version you are using, please try "g++ --version". I am closing this item, please reopen or add a new item, if you have still issues using g++ 4.1. Hope this helps! Mana
Submitted By: Scott Maines Adddate: 2009-01-12 16:47:26 Stumped for the moment: * built gcc 4.1.2 * added /opt/gcc412 to path * exported CXX="g++412" CC="gcc412" * checked with cmake --system-information ...and getting this error [ 0%] make[2]: Entering directory `...source/linden/indra/viewer-linux-i686' Building CXX object llaudio/CMakeFiles/llaudio.dir/audioengine_fmod.o cc1plus: error: unrecognized command line option "-Wno-error=write-strings" make[2]: *** [llaudio/CMakeFiles/llaudio.dir/audioengine_fmod.o] Error 1 As I am new to cmake, I can be only so certain that g++412 is rejecting an option it should accept, so I checked it by hand: the option may be passed to g++430, but not g++412. You said g++42 would have problems, so...I'm stumped. Thanks in advance, -SM
Submitted By: Scott Maines Adddate: 2009-01-12 16:52:53 Actually (typo), "added /opt/gcc412/bin to path". -SM P.S. I don't seem to have perms to reopen this.
Submitted By: Mana Janus Adddate: 2009-01-14 21:10:59 Hmm, did you try to delete viewer-linux-i686 and recreate it? The directory contains only files generated by cmake and by building, you can safely delete it. Then rerun develp.py to recreate it based on your g++ 4.1. Hope it helps! I am building using g++ 4.1 without any issues.
Submitted By: Scott Maines Adddate: 2009-01-14 23:44:07 Each of the attempts made "for the record" (each with a different compiler) started from a blank directory and a new shell, i.e. from $ bash $ cd /tmp $ svn co http://forge.opensimulator.org/svn/opensim-viewer/tags/v0.4.0_LL1.21.06 opensim-hippo $ export CXX=/opt/gcc412/bin/g++412 CC=/opt/gcc412/bin/gcc412 $ export PATH="/opt/gcc412/bin:$PATH" $ cd opensim-hippo $ ./scripts/build.sh I have attached the output. The problem manifests consistently as [ 0%] Building CXX object llaudio/CMakeFiles/llaudio.dir/audioengine_fmod.o cc1plus: error: unrecognized command line option "-Wno-error=write-strings" make[2]: *** [llaudio/CMakeFiles/llaudio.dir/audioengine_fmod.o] Error 1 make[2]: Leaving directory `/tmp/opensim-hippo/linden/indra/viewer-linux-i686' make[1]: *** [llaudio/CMakeFiles/llaudio.dir/all] Error 2 ...begging the question: why does a cmake build requiring gcc 4.1 generate a command line option "-Wno-error=write-strings", which gcc 4.1 does not support? I've even gone as far as to link (only in a separate trial) gcc -> gcc412, g++ -> g++412, just in case some part of the build was (wrongly) ignoring $CXX and getting an unauthorized opinion as to the version of the compiler in use. I'd rather not try uninstalling gcc 4.3.0 from my machine just yet. Am I correct in thinking that I should not have to do so in order to build this? Thanks again in advance, -SM
Submitted By: Mana Janus Adddate: 2009-03-15 13:35:27 I had another look into this, it looks really strange. Did you manage to resolve it meanwhile? What version of cmake are you using? I am using cmake 2.6.2 without any issues so far. Mana
Submitted By: Scott Maines Adddate: 2009-03-16 06:15:11 $ cmake --version cmake version 2.6-patch 2 Good to see you back on this. My last tests are against your latest tag, so it is yet unresolved. Tomorrow, I will rerun the tests I ran above and pull the full output from cmake --system-info for each. Thanks again in advance, -SM
Items Dependent On This Item
Items that are duplicates