I've been encountering some problems, building FlightGear using Brisas script, after I upgraded my Ubuntu to 12.04.
To everyone's information, here's the errors, I've encountered so far: (I hope it'll help someone...)
1. OSG
- Code: Select all
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/x86_64-linux-gnu/libtiff.so«,
benötigt von »lib/osgPlugins-3.0.1/osgdb_tiff.so«, zu erstellen. Schluss.
make[1]: *** [src/osgPlugins/tiff/CMakeFiles/osgdb_tiff.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
It was solved by running "sudo apt-get install libtiff4 libtiff-opengl libtiff4-dev libtiff-tools"
This installed some unneeded packages as well, which were removed by the script the next time I ran it, but it worked nontheless... OSG installed fine.
2. SIMGEAR
- Code: Select all
[ 97%] Built target test_http
Linking CXX executable test_sock
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/libopenal.so«,
benötigt von »simgear/sound/openal_test1«, zu erstellen. Schluss.
make[1]: *** [simgear/sound/CMakeFiles/openal_test1.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
[ 98%] Built target test_sock
make: *** [all] Fehler 2
The solution was to download openal from their website, extract the .tar.gz and cd into it. "ccmake ." [c], later again [c] then [g]. Back in the console: "make" and "sudo make install"
After installation of openAL: "ln -s /usr/local/lib/libopenal.so /usr/lib/libopenal.so"
And SIMGEAR built fine...
3. FGFS
- Code: Select all
Scanning dependencies of target fgjs
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/libsvn_client-1.so«,
benötigt von »src/Input/js_demo«, zu erstellen. Schluss.
make[2]: *** Warte auf noch nicht beendete Prozesse...
[ 0%] [ 0%] Building CXX object src/Input/CMakeFiles/js_demo.dir/js_demo.cxx.o
Building CXX object src/Input/CMakeFiles/fgjs.dir/fgjs.cxx.o
make[1]: *** [src/Input/CMakeFiles/js_demo.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
[ 1%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jsinput.cxx.o
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/libsvn_client-1.so«,
benötigt von »src/Input/fgjs«, zu erstellen. Schluss.
make[2]: *** Warte auf noch nicht beendete Prozesse...
[ 1%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jssuper.cxx.o
make[1]: *** [src/Input/CMakeFiles/fgjs.dir/all] Fehler 2
make: *** [all] Fehler 2
make[2]: *** Keine Regel vorhanden, um das Target »/usr/lib/libsvn_client-1.so«,
benötigt von »src/Input/fgjs«, zu erstellen. Schluss.
make[1]: *** [src/Input/CMakeFiles/fgjs.dir/all] Fehler 2
make: *** [all] Fehler 2
This was a little harder to find out!
"sudo ln -s /usr/lib/x86_64-linux-gnu/libsvn_client-1.so.1.0.0 /usr/lib/libsvn_client-1.so"
"sudo ln -s /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so.1.0.0 /usr/lib/libsvn_subr-1.so"
"sudo ln -s /usr/lib/x86_64-linux-gnu/libsvn_ra-1.so.1.0.0 /usr/lib/libsvn_ra-1.so"
Compilation went on from this point until it outputs the following error.
- Code: Select all
Scanning dependencies of target fgviewer
Linking CXX executable fgviewer
Linking CXX static library libJSBSim.a
`.text._ZN3osg13TemplateArrayINS_5Vec3fELNS_5Array4TypeE10ELi3ELi5126EED2Ev' referenced in section `.text._ZN3osg13TemplateArrayINS_5Vec3fELNS_5Array4TypeE10ELi3ELi5126EED1Ev[osg::TemplateArray<osg::Vec3f, (osg::Array::Type)10, 3, 5126>::~TemplateArray()]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o): defined in discarded section `.text._ZN3osg13TemplateArrayINS_5Vec3fELNS_5Array4TypeE10ELi3ELi5126EED2Ev[_ZN3osg13TemplateArrayINS_5Vec3fELNS_5Array4TypeE10ELi3ELi5126EED5Ev]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o)
`.text._ZN3osg13TemplateArrayINS_5Vec2fELNS_5Array4TypeE9ELi2ELi5126EED2Ev' referenced in section `.text._ZN3osg13TemplateArrayINS_5Vec2fELNS_5Array4TypeE9ELi2ELi5126EED1Ev[osg::TemplateArray<osg::Vec2f, (osg::Array::Type)9, 2, 5126>::~TemplateArray()]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o): defined in discarded section `.text._ZN3osg13TemplateArrayINS_5Vec2fELNS_5Array4TypeE9ELi2ELi5126EED2Ev[_ZN3osg13TemplateArrayINS_5Vec2fELNS_5Array4TypeE9ELi2ELi5126EED5Ev]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o)
`.text._ZN3osg13TemplateArrayINS_5Vec4fELNS_5Array4TypeE11ELi4ELi5126EED2Ev' referenced in section `.text._ZN3osg13TemplateArrayINS_5Vec4fELNS_5Array4TypeE11ELi4ELi5126EED1Ev[osg::TemplateArray<osg::Vec4f, (osg::Array::Type)11, 4, 5126>::~TemplateArray()]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o): defined in discarded section `.text._ZN3osg13TemplateArrayINS_5Vec4fELNS_5Array4TypeE11ELi4ELi5126EED2Ev[_ZN3osg13TemplateArrayINS_5Vec4fELNS_5Array4TypeE11ELi4ELi5126EED5Ev]' of /media/myfiles/software/games/FlightGear/git/install/simgear/lib/libsgtgdb.a(SGOceanTile.cxx.o)
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [utils/fgviewer/fgviewer] Fehler 1
make[1]: *** [utils/fgviewer/CMakeFiles/fgviewer.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
Now I have simply no idea, what it is trying to tell me... fgviewer won't build, alright. But why???
After all, fgviewer is the main component of FG isn't it? It's my viewport so to say... So I shouldn't try to remove it from the build files, I could eventually run fgfs, but wouldn't see anything, right?
Any help is very welcome and aprreciated!
Cheers!
chris