Board index FlightGear Support Compiling

Troublesshouting using download_and_compile.sh

Building FlightGear from source, and in the need for help?

Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Mon Mar 11, 2013 7:00 pm

Hi everybody,
I have got an issue using the new scriptingg "./download_and_compile.sh"
I sure the problem doesn't come from the scritp , but more than my libs...
But I don't know how to fix it
(Btw, this script is a really good idea, make me economize 1 hour...)

The problem comes when it com to simgear or flightgear compilation, so here I copy-pasted only the last lines...

Can someone help ?

Thanks in advance

5H1N0B1

Code: Select all
****************************************
**************** FGFS ******************
****************************************
flightgear exists already.
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (5/5), done.
From git://gitorious.org/fg/flightgear
   07f01bd..4786923  next       -> origin/next
Already on 'next'
Your branch is behind 'origin/next' by 1 commit, and can be fast-forwarded.
Updating 07f01bd..4786923
Fast-forward
 src/Input/FGMouseInput.cxx |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-- System is: Linux
-- Linux distro is: Ubuntu
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /media/Data/FGFS-Git/install/fgfs/lib/FlightGear
-- additional library directories: /usr/local/lib/i386-linux-gnu;/usr/lib/i386-linux-gnu;/lib/i386-linux-gnu
-- UDev not found.
-- UDev: You can specify includes: -DUDEV_PATH_INCLUDES=/opt/udev/include
--       currently found includes: UDEV_INCLUDE_DIR-NOTFOUND
-- UDev: You can specify libs: -DUDEV_PATH_LIB=/opt/udev/lib
--       currently found libs: UDEV_LIBRARIES-NOTFOUND
-- Git revision is 478692383856edb321c80db82b4a9805d3de41ae
-- Found X11_Xinerama...
-- Found X11_Xft...
-- Using FLTK_LIBRARIES for fgadmin: fltk_images;fltk_forms;fltk_gl;/usr/lib/i386-linux-gnu/libGL.so;fltk;/usr/lib/i386-linux-gnu/libSM.so;/usr/lib/i386-linux-gnu/libICE.so;/usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libm.so;/usr/lib/i386-linux-gnu/libXinerama.so;/usr/lib/i386-linux-gnu/libXft.so
-- libsvn found, enabling in terrasync
-- /media/Data/FGFS-Git/install/plib/include
-- adding runtime JS dependencies
-- SimGear include directory: /media/Data/FGFS-Git/install/simgear/include
-- found SimGear version: 2.11.0 (needed 2.11.0)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- RTI: DISABLED
-- Configuring done
-- Generating done
-- Build files have been written to: /media/Data/FGFS-Git/build/fgfs
Scanning dependencies of target fgjs
[  0%] Building CXX object src/Input/CMakeFiles/fgjs.dir/fgjs.cxx.o
[  0%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jsinput.cxx.o
[  0%] Building CXX object src/Input/CMakeFiles/fgjs.dir/jssuper.cxx.o
Linking CXX executable fgjs
[  0%] Built target fgjs
Scanning dependencies of target js_demo
[  0%] Building CXX object src/Input/CMakeFiles/js_demo.dir/js_demo.cxx.o
Linking CXX executable js_demo
[  0%] Built target js_demo
Linking CXX executable yasim
[  5%] Built target yasim
Linking CXX executable yasim-proptest
[ 11%] Built target yasim-proptest
[ 28%] Built target JSBSim
Scanning dependencies of target fgfs
[ 28%] Building CXX object src/Main/CMakeFiles/fgfs.dir/fg_commands.cxx.o
[ 28%] Building CXX object src/Main/CMakeFiles/fgfs.dir/fg_init.cxx.o
[ 29%] Building CXX object src/Main/CMakeFiles/fgfs.dir/fg_os_common.cxx.o
[ 29%] Building CXX object src/Main/CMakeFiles/fgfs.dir/fg_props.cxx.o
[ 29%] Building CXX object src/Main/CMakeFiles/fgfs.dir/globals.cxx.o
[ 30%] Building CXX object src/Main/CMakeFiles/fgfs.dir/main.cxx.o
[ 30%] Building CXX object src/Main/CMakeFiles/fgfs.dir/options.cxx.o
[ 31%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/ATC/atcdialog.cxx.o
[ 32%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Canvas/FGCanvasSystemAdapter.cxx.o
[ 32%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Canvas/gui_mgr.cxx.o
[ 33%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/analogcomponent.cxx.o
[ 33%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/autopilot.cxx.o
[ 33%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/component.cxx.o
[ 33%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/digitalcomponent.cxx.o
[ 34%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/digitalfilter.cxx.o
[ 34%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/flipflop.cxx.o
[ 34%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/inputvalue.cxx.o
[ 34%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/logic.cxx.o
[ 34%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/pidcontroller.cxx.o
[ 35%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/pisimplecontroller.cxx.o
[ 35%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Autopilot/predictor.cxx.o
[ 35%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/panel.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/panel_io.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/built_in/FGMagRibbon.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/groundradar.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/wxradar.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Cockpit/NavDisplay.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Environment/environment_mgr.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Environment/fgclouds.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Environment/precipitation_mgr.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/AirportList.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/CanvasWidget.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/MapWidget.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/WaypointList.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/FGPUIDialog.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/fonts.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/gui.cxx.o
[ 36%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/gui_funcs.cxx.o
[ 37%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/layout-props.cxx.o
[ 37%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/FGPUIMenuBar.cxx.o
[ 37%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/new_gui.cxx.o
[ 38%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/property_list.cxx.o
[ 38%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/FGFontCache.cxx.o
[ 38%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/GUI/MouseCursor.cxx.o
[ 38%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGButton.cxx.o
[ 38%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGCommonInput.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGEventInput.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGJoystickInput.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGKeyboardInput.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/FGMouseInput.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Input/input.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/mk_viii.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/tcas.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_dial.cxx.o
[ 39%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_gauge.cxx.o
[ 40%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_instrument.cxx.o
[ 40%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_label.cxx.o
[ 40%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_ladder.cxx.o
[ 40%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_misc.cxx.o
[ 40%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_runway.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_scale.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_tape.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Instrumentation/HUD/HUD_tbi.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Model/acmodel.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Model/panelnode.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Scenery/scenery.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Scenery/tilemgr.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Scripting/NasalCondition.cxx.o
[ 41%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Time/light.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/CameraGroup.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/FGEventHandler.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/WindowSystemAdapter.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/fg_os_osgviewer.cxx.o
/media/Data/FGFS-Git/fgfs/flightgear/src/Viewer/fg_os_osgviewer.cxx: In member function ‘sgDebugPriority NotifyLogger::translateSeverity(osg::NotifySeverity)’:
/media/Data/FGFS-Git/fgfs/flightgear/src/Viewer/fg_os_osgviewer.cxx:207:3: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/renderer.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/renderingpipeline.cxx.o
[ 42%] Building CXX object src/Main/CMakeFiles/fgfs.dir/__/Viewer/splash.cxx.o
Linking CXX executable fgfs
[ 95%] Built target fgfs
Linking CXX executable metar
[ 96%] Built target metar
[ 96%] Built target FGAdminUI
Linking CXX executable fgadmin
/usr/lib/i386-linux-gnu/libfltk.a(Fl_Preferences.o):function Fl_Plugin_Manager::load(char const*): error: undefined reference to 'dlopen'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [utils/fgadmin/src/fgadmin] Erreur 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Erreur 2
make: *** [all] Erreur 2
[  0%] Built target fgjs
[  0%] Built target js_demo
[  5%] Built target yasim
[ 11%] Built target yasim-proptest
[ 28%] Built target JSBSim
[ 95%] Built target fgfs
[ 96%] Built target metar
[ 96%] Built target FGAdminUI
Linking CXX executable fgadmin
/usr/lib/i386-linux-gnu/libfltk.a(Fl_Preferences.o):function Fl_Plugin_Manager::load(char const*): error: undefined reference to 'dlopen'
collect2: ld a retourné 1 code d'état d'exécution
make[2]: *** [utils/fgadmin/src/fgadmin] Erreur 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Erreur 2
make: *** [all] Erreur 2
./download_and_compile.sh: ligne 866 : cd: /media/Data/FGFS-Git/install/fgfs: Aucun fichier ou dossier de ce type
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Wed Mar 13, 2013 9:49 am

Any idea somebody ?
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby F-JJTH » Wed Mar 13, 2013 10:49 am

Hi,

What is your libfltk version ? Here I've no problem with libfltk1.3

Cheers
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 11:02 am

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Wed Mar 13, 2013 11:08 am

Seems to be libfltk1.3
I tried to unistall all libfltk, and as the sricpt is well done, it reinstall the good version...
But perhaps my uninstall was not enough clean...
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby F-JJTH » Wed Mar 13, 2013 11:58 am

If you don't use fgadmin you can disable it with -DENABLE_FGADMIN=OFF but I admit that's a hack solution...
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 11:02 am

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Wed Mar 13, 2013 1:08 pm

Thanks I'll try this evening
(I'm not at home)
I never used fgadmin...
I'll disable it this time...
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Wed Mar 13, 2013 10:04 pm

Err try hard but it desnt work...
I don't know what to do...
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Fri Mar 15, 2013 10:09 am

5H1N0B1 wrote in Wed Mar 13, 2013 10:04 pm:Err try hard but it desnt work...
I don't know what to do...

In fact, I tried harder, and the solution to skip fgadmin worked actually.
I have the same problem with fgrun... so I did the same.

But I don't know what is going wrong on my OS (ubuntu)
Are FLTK libs bad installed ? Do I have to compile them to ? Or do I have to use a special command to reconfigure fltk ?
(Even if there is no answer, I 'll continue to search and post what I found here)
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu

Re: Troublesshouting using download_and_compile.sh

Postby F-JJTH » Fri Mar 15, 2013 11:50 am

what give you
Code: Select all
fltk-config --version
?
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 11:02 am

Re: Troublesshouting using download_and_compile.sh

Postby 5H1N0B1 » Sat Mar 16, 2013 10:38 am

Code: Select all
fltk-config --version
1.3.0
5H1N0B1
"Each day, with every person you meet, there is something to learn"
5H1N0B1
 
Posts: 220
Joined: Thu Aug 30, 2012 9:36 am
Location: France
Callsign: 5H1N0B1
IRC name: _5H1N0B1
Version: GIT
OS: Ubuntu


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest