Board index FlightGear Support Compiling

Link error while compiling

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

Link error while compiling

Postby sakthi » Wed Jan 09, 2013 5:47 am

Hi
AM getting the following linker while am debugging Flight gear main program..Am getting error when run the code in DEBUG mode in Microsoft Visual Studio 8.
If run in release mode its working fine.Experts please help.This is the linker error that i am getting
warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>TrafficMgr.obj : error LNK2001: unresolved external symbol "private: static bool logbuf::logging_enabled" (?logging_enabled@logbuf@@0_NA)
sakthi
 
Posts: 5
Joined: Thu Jan 03, 2013 4:06 am

Re: Link error while compiling

Postby Soitanen » Fri Jan 11, 2013 8:55 am

I have error compiling in Ubuntu. earlier version were compiled normally.
Code: Select all
michael@simulator:~/fgfs$ sh download_and_compile.sh -j 2 -p n FGFS
**************************************
*                                    *
* Warning, the compilation process   *
* is going to use 12 or more Gbytes  *
* of space and at least a couple of  *
* hours to download and build FG.    *
*                                    *
* Please, be patient ......          *
*                                    *
**************************************
****************************************
**************** FGFS ******************
****************************************
flightgear exists already.
Already on 'next'
Already up-to-date.
-- System is: Linux
-- Linux distro is: Ubuntu
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /home/michael/fgfs/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 ea81903f6707bb50a362bca64e005bf47f443a8c
-- Boost version: 1.49.0
-- 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
-- /home/michael/fgfs/install/plib/include
-- adding runtime JS dependencies
-- SimGear include directory: /home/michael/fgfs/install/simgear/include
-- found SimGear version: 2.10.0 (needed 2.10.0)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Built-in profiler using gperftools available
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michael/fgfs/build/fgfs
[  0%] Built target js_demo
[  1%] Built target fgjs
[  7%] Built target yasim
[ 13%] Built target yasim-proptest
[ 13%] Built target metar
[ 13%] Built target terrasync
[ 14%] Built target fgviewer
[ 29%] Built target JSBSim
[ 29%] Built target fgelev
[ 30%] Built target GPSsmooth
[ 31%] Built target MIDGsmooth
[ 32%] [ 32%] Built target UGsmooth
Built target FGAdminUI
Linking CXX executable fgadmin
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::remove_selected()':
fgadmin_funcs.cxx:(.text+0x114d): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
fgadmin_funcs.cxx:(.text+0x150e): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::install_selected()':
fgadmin_funcs.cxx:(.text+0x1f2b): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
fgadmin_funcs.cxx:(.text+0x1f86): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgadmin/src/fgadmin] Error 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target fgfs
make: *** [all] Error 2
[  1%] Built target fgjs
[  1%] Built target js_demo
[  7%] Built target yasim
[ 13%] Built target yasim-proptest
[ 28%] Built target JSBSim
[ 96%] Built target fgfs
[ 96%] Built target metar
[ 96%] Built target terrasync
[ 97%] Built target fgviewer
[ 97%] Built target fgelev
[ 98%] Built target GPSsmooth
[ 99%] Built target MIDGsmooth
[100%] Built target UGsmooth
[100%] Built target FGAdminUI
Linking CXX executable fgadmin
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::remove_selected()':
fgadmin_funcs.cxx:(.text+0x114d): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
fgadmin_funcs.cxx:(.text+0x150e): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::install_selected()':
fgadmin_funcs.cxx:(.text+0x1f2b): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
fgadmin_funcs.cxx:(.text+0x1f86): undefined reference to `Fl_Window::cursor(Fl_Cursor, Fl_Color, Fl_Color)'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgadmin/src/fgadmin] Error 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Error 2
make: *** [all] Error 2
Boeing 737-300. Reworked cockpit, FDM, autopilot and much more. WIP.
Boeing 737-800. WIP. Canvas PFD and ND.
Antonov An-24B. Made from scratch. Very good FDM. 3D model by Adrian. WIP.
Project Russia (some cities, based on OSM with custom objects).
Soitanen
 
Posts: 489
Joined: Sat Jun 16, 2012 6:50 am
Location: Saint-Petersburg, Russia
Version: git
OS: Linux Mint 17

Re: Link error while compiling

Postby sakthi » Thu Jan 17, 2013 4:07 am

IS there any settings that i have to modify for the above purpose..
sakthi
 
Posts: 5
Joined: Thu Jan 03, 2013 4:06 am


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest