Board index FlightGear Support Compiling

Compiling fails at linking fgadmin

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

Compiling fails at linking fgadmin

Postby sgofferj » Thu Apr 10, 2014 12:25 pm

Well, if I want to integrate gauges, I need Flight Gear, right? So I thought I git pull and cmake and make and *puff* didn't work...

Code: Select all
enterprise:/usr/src/fgbuild # cmake ../flightgear/
-- System is: Linux
-- Linux distro is: openSUSE project
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /usr/local/lib/FlightGear
-- libudev stable: 1
-- Found UDev: /usr/lib64/libudev.so
--    include: /usr/include
-- Git revision is 740b3f35e98b8c0506bc887326ef831704520f89
-- event-based input enabled. Using /usr/lib64/libudev.so
-- Boost version: 1.49.0
-- Found X11_Xinerama...
-- Found X11_Xft...
-- Using FLTK_LIBRARIES for fgadmin: /usr/lib64/libfltk_images.so;/usr/lib64/libfltk_forms.so;/usr/lib64/libfltk_gl.so;/usr/lib64/libGL.so;/usr/lib64/libfltk.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libm.so;/usr/lib64/libXinerama.so;/usr/lib64/libXft.so;dl
-- Using DBus
-- /usr/include
-- adding runtime JS dependencies
-- SimGear include directory: /usr/local/include
-- found SimGear version: 3.1.0 (needed 3.1.0)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- RTI: DISABLED
-- found glut
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/fgbuild
enterprise:/usr/src/fgbuild # make install
[  0%] Building C object 3rdparty/sqlite3/CMakeFiles/fgsqlite3.dir/sqlite3.c.o
Linking C static library libfgsqlite3.a
[  0%] Built target fgsqlite3
[  0%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_encode.c.o
[  0%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_file.c.o
[  0%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_openal.c.o
[  0%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_alaw.c.o
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_gsm.c.o
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_ulaw.c.o
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/iaxclient_lib.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c: In function ‘iaxc_initialize’:
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:642:3: warning: call to function ‘openal_initialize’ without a real prototype [-Wunprototyped-calls]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:246:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:35:
/usr/src/flightgear/3rdparty/iaxclient/lib/audio_openal.h:4:5: note: ‘openal_initialize’ was declared here
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/unixfuncs.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:24:0: warning: "HAVE_SYS_TIME_H" redefined [enabled by default]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:28:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:21:
/usr/src/fgbuild/src/Include/config.h:20:0: note: this is the location of the previous definition
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_speex.c.o
[  1%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/spandsp/plc.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/add.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/code.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/debug.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/decode.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_create.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_decode.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_destroy.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_encode.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_explode.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_implode.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_option.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_print.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/long_term.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/lpc.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/preprocess.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c: In function ‘Gsm_Preprocess’:
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c:89:14: warning: unused variable ‘lsp’ [-Wunused-variable]
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/rpe.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/short_term.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/table.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/bits.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/cb_search.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_16_table.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_32_table.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_20_32_table.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_256_table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_64_table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_8_128_table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/filters.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table_lbr.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_10_32_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/high_lsp_tables.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/jitter.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lbr_48k_tables.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lpc.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp_tables_nb.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/ltp.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/math_approx.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/mdf.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/medfilter.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/misc.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/modes.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/nb_celp.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/preprocess.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/quant_lsp.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/sb_celp.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/smallft.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_callbacks.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_header.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/stereo.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vbr.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vq.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c: In function ‘iax_transfer’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c:1354:13: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax2-parser.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/jitterbuf.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/md5.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c: In function ‘MD5Final’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:174:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:175:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Linking C static library libiaxclient_lib.a
[ 11%] Built target iaxclient_lib
[ 11%] Generating fgadmin.h
Scanning dependencies of target FGAdminUI
[ 11%] Building CXX object utils/fgadmin/src/CMakeFiles/FGAdminUI.dir/fgadmin.cxx.o
Linking CXX static library libFGAdminUI.a
[ 11%] Built target FGAdminUI
[ 12%] Building CXX object utils/fgadmin/src/CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o
[ 12%] Building CXX object utils/fgadmin/src/CMakeFiles/fgadmin.dir/main.cxx.o
[ 12%] Building C object utils/fgadmin/src/CMakeFiles/fgadmin.dir/untarka.c.o
Linking CXX executable fgadmin
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `remove_dir(char const*, void (*)(void*, int), void*, bool) [clone .constprop.26]':
fgadmin_funcs.cxx:(.text+0x30f): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `count_dir(char const*, bool) [clone .constprop.28]':
fgadmin_funcs.cxx:(.text+0x5e8): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::update_install_box()':
fgadmin_funcs.cxx:(.text+0x876): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o: In function `FGAdminUI::remove_selected()':
fgadmin_funcs.cxx:(.text+0xfb8): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgadmin_funcs.cxx:(.text+0x11fe): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o:fgadmin_funcs.cxx:(.text+0x1312): more undefined references to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))' follow
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
enterprise:/usr/src/fgbuild #

Hints, anyone?
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: Compiling fails at linking fgadmin

Postby ludomotico » Thu Apr 10, 2014 12:59 pm

Just do not compile fgadmin. I believe it is not maintained any more and it uses old libraries. IMHO, the maintainers of flightgear should consider removing fgadmin from the main source code.

cmake -DENABLE_FGADMIN=OFF ../flightgear/
make -j 3
make install
User avatar
ludomotico
 
Posts: 1009
Joined: Tue Apr 24, 2012 1:01 pm
Version: git
OS: Debian GNU/Linux

Re: Compiling fails at linking fgadmin

Postby sgofferj » Thu Apr 10, 2014 8:03 pm

Nope, no joy...

Code: Select all
enterprise:/usr/src/fgbuild # make clean
enterprise:/usr/src/fgbuild # cmake -DENABLE_FGADMIN=OFF ../flightgear/
-- System is: Linux
-- Linux distro is: openSUSE project
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /usr/local/lib/FlightGear
-- libudev stable: 1
-- Found UDev: /usr/lib64/libudev.so
--    include: /usr/include
-- Git revision is 740b3f35e98b8c0506bc887326ef831704520f89
-- event-based input enabled. Using /usr/lib64/libudev.so
-- Boost version: 1.49.0
-- Using DBus
-- /usr/include
-- adding runtime JS dependencies
-- SimGear include directory: /usr/local/include
-- found SimGear version: 3.1.0 (needed 3.1.0)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- RTI: DISABLED
-- found glut
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/fgbuild
enterprise:/usr/src/fgbuild # make -j 3
[  1%] Building C object 3rdparty/sqlite3/CMakeFiles/fgsqlite3.dir/sqlite3.c.o
[  1%] Building CXX object utils/fgelev/CMakeFiles/fgelev.dir/fgelev.cxx.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_encode.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_file.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_openal.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_alaw.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_gsm.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_ulaw.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/iaxclient_lib.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c: In function ‘iaxc_initialize’:
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:642:3: warning: call to function ‘openal_initialize’ without a real prototype [-Wunprototyped-calls]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:246:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:35:
/usr/src/flightgear/3rdparty/iaxclient/lib/audio_openal.h:4:5: note: ‘openal_initialize’ was declared here
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/unixfuncs.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:24:0: warning: "HAVE_SYS_TIME_H" redefined [enabled by default]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:28:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:21:
/usr/src/fgbuild/src/Include/config.h:20:0: note: this is the location of the previous definition
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_speex.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/spandsp/plc.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/add.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/code.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/debug.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/decode.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_create.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_decode.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_destroy.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_encode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_explode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_implode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_option.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_print.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/long_term.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/lpc.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/preprocess.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c: In function ‘Gsm_Preprocess’:
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c:89:14: warning: unused variable ‘lsp’ [-Wunused-variable]
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/rpe.c.o
Linking CXX executable fgelev
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/short_term.c.o
CMakeFiles/fgelev.dir/fgelev.cxx.o: In function `main':
fgelev.cxx:(.text.startup+0x166): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x1ed): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x25d): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0xf78): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
/usr/local/lib64/libSimGearScene.a(EffectGeode.cxx.o): In function `simgear::EffectGeode::runGenerators(osg::Geometry*)':
EffectGeode.cxx:(.text+0x3d5): undefined reference to `osg::Geometry::setVertexAttribData(unsigned int, osg::Geometry::ArrayData const&)'
EffectGeode.cxx:(.text+0x415): undefined reference to `osg::Geometry::setVertexAttribData(unsigned int, osg::Geometry::ArrayData const&)'
EffectGeode.cxx:(.text+0x454): undefined reference to `osg::Geometry::setVertexAttribData(unsigned int, osg::Geometry::ArrayData const&)'
/usr/local/lib64/libSimGearScene.a(ReaderWriterSPT.cxx.o): In function `simgear::ReaderWriterSPT::createSeaLevelTile(simgear::BucketBox const&, simgear::ReaderWriterSPT::LocalOptions const&) const':
ReaderWriterSPT.cxx:(.text+0x2402): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
ReaderWriterSPT.cxx:(.text+0x241a): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
ReaderWriterSPT.cxx:(.text+0x2434): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
/usr/local/lib64/libSimGearScene.a(SGOceanTile.cxx.o): In function `SGOceanTile(SGBucket const&, SGMaterialLib*, int, int)':
SGOceanTile.cxx:(.text+0x1f4b): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
SGOceanTile.cxx:(.text+0x1f6d): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
SGOceanTile.cxx:(.text+0x1f96): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
/usr/local/lib64/libSimGearScene.a(apt_signs.cxx.o): In function `makeGeometry(simgear::Effect*, osg::Group*)':
apt_signs.cxx:(.text+0x40f): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
apt_signs.cxx:(.text+0x427): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
apt_signs.cxx:(.text+0x442): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
/usr/local/lib64/libSimGearScene.a(obj.cxx.o): In function `SGTexturedTriangleBin::buildGeometry(std::vector<SGVec3<unsigned long>, std::allocator<SGVec3<unsigned long> > > const&) const':
obj.cxx:(.text._ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE[_ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE]+0x2f4): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
obj.cxx:(.text._ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE[_ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE]+0x310): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
obj.cxx:(.text._ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE[_ZNK21SGTexturedTriangleBin13buildGeometryERKSt6vectorI6SGVec3ImESaIS2_EE]+0x32e): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
/usr/local/lib64/libSimGearScene.a(pt_lights.cxx.o): In function `SGLightFactory::getLightDrawable(SGLightBin::Light const&)':
pt_lights.cxx:(.text+0x8a2): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(pt_lights.cxx.o): In function `SGLightFactory::getLights(SGDirectionalLightBin const&)':
pt_lights.cxx:(.text+0x1109): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(pt_lights.cxx.o): In function `SGLightFactory::getLightDrawable(SGDirectionalLightBin::Light const&)':
pt_lights.cxx:(.text+0x1ca4): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(pt_lights.cxx.o): In function `SGLightFactory::getLights(SGLightBin const&, unsigned int, float)':
pt_lights.cxx:(.text+0x22fa): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(SGBuildingBin.cxx.o): In function `simgear::SGBuildingBin::SGBuildingBin(SGMaterial const*)':
SGBuildingBin.cxx:(.text+0x613d): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
SGBuildingBin.cxx:(.text+0x6152): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(SGBuildingBin.cxx.o): In function `simgear::SGBuildingBin::AddBuildingLeafObject::createNewBuildingGeometryInstance(simgear::SGBuildingBin::BuildingInstance const&) const':
SGBuildingBin.cxx:(.text._ZNK7simgear13SGBuildingBin21AddBuildingLeafObject33createNewBuildingGeometryInstanceERKNS0_16BuildingInstanceE[_ZNK7simgear13SGBuildingBin21AddBuildingLeafObject33createNewBuildingGeometryInstanceERKNS0_16BuildingInstanceE]+0x42): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
/usr/local/lib64/libSimGearScene.a(TreeBin.cxx.o): In function `simgear::makeSharedTreeGeometry(int)':
TreeBin.cxx:(.text+0x979): undefined reference to `osg::Geometry::setTexCoordArray(unsigned int, osg::Array*)'
/usr/local/lib64/libSimGearScene.a(TreeBin.cxx.o): In function `simgear::createTreeGeometry(float, float, int)':
TreeBin.cxx:(.text+0xcb0): undefined reference to `osg::Geometry::setNormalArray(osg::Array*)'
TreeBin.cxx:(.text+0xd53): undefined reference to `osg::Geometry::setColorArray(osg::Array*)'
TreeBin.cxx:(.text+0xd96): undefined reference to `osg::Geometry::setFogCoordArray(osg::Array*)'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgelev/fgelev] Error 1
make[1]: *** [utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/bits.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/cb_search.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_16_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_32_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_20_32_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_256_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_64_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_8_128_table.c.o
[  8%] [  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/filters.c.o
Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table_lbr.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_10_32_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_table.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/high_lsp_tables.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/jitter.c.o
[  9%] [  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lbr_48k_tables.c.o
Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lpc.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp_tables_nb.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/ltp.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/math_approx.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/mdf.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/medfilter.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/misc.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/modes.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/nb_celp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/preprocess.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/quant_lsp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/sb_celp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/smallft.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_callbacks.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_header.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/stereo.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vbr.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vq.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax2-parser.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c: In function ‘iax_transfer’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c:1354:13: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/jitterbuf.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/md5.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c: In function ‘MD5Final’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:174:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:175:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Linking C static library libiaxclient_lib.a
[ 13%] Built target iaxclient_lib
Linking C static library libfgsqlite3.a
[ 13%] Built target fgsqlite3
make: *** [all] Error 2
enterprise:/usr/src/fgbuild #
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: Compiling fails at linking fgadmin

Postby TheTom » Fri Apr 11, 2014 10:53 am

Seems like you have older versions of SimGear and OpenSceneGraph installed/visible to FlightGear.
TheTom
 
Posts: 321
Joined: Sun Oct 09, 2011 10:20 am

Re: Compiling fails at linking fgadmin

Postby ludomotico » Fri Apr 11, 2014 11:43 am

If you are compiling the git version of flightgear, remember you need OpenSceneGraph 3.2. I believe someone reported in the development list this dependency is not correctly configured in the CMakeFile. I don't know if this was fixed, but you seem to be building against OSG 3.1.
User avatar
ludomotico
 
Posts: 1009
Joined: Tue Apr 24, 2012 1:01 pm
Version: git
OS: Debian GNU/Linux

Re: Compiling fails at linking fgadmin

Postby sgofferj » Fri Apr 11, 2014 7:38 pm

My OSG version is 3.2.0-2.3. Simgear is 3.1 but that's what I get when I pull from mapserver.flightgear.org...
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: Compiling fails at linking fgadmin

Postby sgofferj » Fri Apr 11, 2014 7:51 pm

Nope, doesn't like me. I cleaned, uninstalled and re-pulled SG and FG and still...
Code: Select all
enterprise:/usr/src/fgbuild # cmake ../flightgear/
-- System is: Linux
-- Linux distro is: openSUSE project
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /usr/local/lib/FlightGear
-- libudev stable: 1
-- Found UDev: /usr/lib64/libudev.so
--    include: /usr/include
-- Git revision is 740b3f35e98b8c0506bc887326ef831704520f89
-- event-based input enabled. Using /usr/lib64/libudev.so
-- Boost version: 1.49.0
-- Using DBus
-- /usr/include
-- adding runtime JS dependencies
-- SimGear include directory: /usr/local/include
-- found SimGear version: 3.1.0 (needed 3.1.0)
-- looking for static SimGear libraries
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found SimGear: optimized;/usr/lib64/libSimGearScene.so;debug;/usr/local/lib64/libSimGearScened.a;optimized;/usr/lib64/libSimGearCore.so;debug;/usr/local/lib64/libSimGearCored.a;optimized;/usr/lib64/libSimGearCore.so;debug;/usr/local/lib64/libSimGearCored.a (Required is at least version "3.1.0")
-- RTI: DISABLED
-- found glut
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/fgbuild
enterprise:/usr/src/fgbuild # make
[  1%] Building C object 3rdparty/sqlite3/CMakeFiles/fgsqlite3.dir/sqlite3.c.o
Linking C static library libfgsqlite3.a
[  1%] Built target fgsqlite3
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_encode.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_file.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/audio_openal.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_alaw.c.o
[  2%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_gsm.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_ulaw.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/iaxclient_lib.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c: In function ‘iaxc_initialize’:
/usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:642:3: warning: call to function ‘openal_initialize’ without a real prototype [-Wunprototyped-calls]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:246:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.c:35:
/usr/src/flightgear/3rdparty/iaxclient/lib/audio_openal.h:4:5: note: ‘openal_initialize’ was declared here
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/unixfuncs.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:24:0: warning: "HAVE_SYS_TIME_H" redefined [enabled by default]
In file included from /usr/src/flightgear/3rdparty/iaxclient/lib/iaxclient_lib.h:28:0,
                 from /usr/src/flightgear/3rdparty/iaxclient/lib/unixfuncs.c:21:
/usr/src/fgbuild/src/Include/config.h:20:0: note: this is the location of the previous definition
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/codec_speex.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/spandsp/plc.c.o
[  3%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/add.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/code.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/debug.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/decode.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_create.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_decode.c.o
[  4%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_destroy.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_encode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_explode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_implode.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_option.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/gsm_print.c.o
[  5%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/long_term.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/lpc.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/preprocess.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c: In function ‘Gsm_Preprocess’:
/usr/src/flightgear/3rdparty/iaxclient/lib/gsm/src/preprocess.c:89:14: warning: unused variable ‘lsp’ [-Wunused-variable]
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/rpe.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/short_term.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/gsm/src/table.c.o
[  6%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/bits.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/cb_search.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_16_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_10_32_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_20_32_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_256_table.c.o
[  7%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_5_64_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/exc_8_128_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/filters.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/gain_table_lbr.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_10_32_table.c.o
[  8%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/hexc_table.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/high_lsp_tables.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/jitter.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lbr_48k_tables.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lpc.c.o
[  9%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/lsp_tables_nb.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/ltp.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/math_approx.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/mdf.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/medfilter.c.o
[ 10%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/misc.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/modes.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/nb_celp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/preprocess.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/quant_lsp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/sb_celp.c.o
[ 11%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/smallft.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_callbacks.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/speex_header.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/stereo.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vbr.c.o
[ 12%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libspeex/vq.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c: In function ‘iax_transfer’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/iax.c:1354:13: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/iax2-parser.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/jitterbuf.c.o
[ 13%] Building C object 3rdparty/iaxclient/lib/CMakeFiles/iaxclient_lib.dir/libiax2/src/md5.c.o
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c: In function ‘MD5Final’:
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:174:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/usr/src/flightgear/3rdparty/iaxclient/lib/libiax2/src/md5.c:175:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Linking C static library libiaxclient_lib.a
[ 13%] Built target iaxclient_lib
[ 13%] Building CXX object utils/fgelev/CMakeFiles/fgelev.dir/fgelev.cxx.o
Linking CXX executable fgelev
CMakeFiles/fgelev.dir/fgelev.cxx.o: In function `main':
fgelev.cxx:(.text.startup+0x166): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x1ed): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0x25d): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
fgelev.cxx:(.text.startup+0xf78): undefined reference to `SGPath::SGPath(std::string const&, SGPath::Permissions (*)(SGPath const&))'
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgelev/fgelev] Error 1
make[1]: *** [utils/fgelev/CMakeFiles/fgelev.dir/all] Error 2
make: *** [all] Error 2
enterprise:/usr/src/fgbuild #
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse

Re: Compiling fails at linking fgadmin

Postby Hooray » Fri Apr 11, 2014 8:10 pm

fgelev/fgadmin etc are all just utilities - I would first of all just run "make fgfs" to see if that works.
Also, tell us how exactly you are cloning SG and FG (branch)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11309
Joined: Tue Mar 25, 2008 8:40 am

Re: Compiling fails at linking fgadmin

Postby sgofferj » Sat Apr 12, 2014 7:53 am

Got it... Little night shift... I wiped everything completely and manually then cloned everything fresh and then it worked. Before I was just gitpull'ing into my existing local dirs - isn't that supposed to work?
FG 3.1 GIT / Opensuse 12.3 / Phenom II X4 / GForce GTX560
Stefan's little Flightgear corner | The Finnish Weather Center | Wolves in Finland

Working on: EFTP
COM: IAX2:home.gofferje.net/stefan (MO-FR 0700-2000 UTC, SA+SU 0900-2000 UTC)
sgofferj
 
Posts: 790
Joined: Mon Dec 05, 2011 4:13 pm
Location: EFTP
Callsign: OH-SW
Version: 3.1 GIT
OS: Opensuse


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest