Board index FlightGear Support Compiling

problems building simgear 2.11 (GIT) on 64bit linux  Topic is solved

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

problems building simgear 2.11 (GIT) on 64bit linux

Postby bishb25 » Mon Apr 29, 2013 12:35 am

Hi I'm trying to build the GIT version of SG and FG. When I try to make Simgear I get:
Code: Select all
[ 96%] Built target test_state_machine
Linking CXX executable sg_pkgutil
../libSimGearCore.a(timestamp.cxx.o): In function `getClockId()':
timestamp.cxx:(.text+0x35): undefined reference to `clock_gettime'
../libSimGearCore.a(timestamp.cxx.o): In function `SGTimeStamp::stamp()':
timestamp.cxx:(.text+0x87): undefined reference to `clock_gettime'
../libSimGearCore.a(timestamp.cxx.o): In function `SGTimeStamp::sleepUntil(SGTimeStamp const&)':
timestamp.cxx:(.text+0xd4): undefined reference to `clock_getres'
timestamp.cxx:(.text+0x18f): undefined reference to `clock_nanosleep'
../libSimGearCore.a(timestamp.cxx.o): In function `SGTimeStamp::sleepFor(SGTimeStamp const&)':
timestamp.cxx:(.text+0x225): undefined reference to `clock_nanosleep'
collect2: ld returned 1 exit status
make[2]: *** [simgear/package/sg_pkgutil] Error 1
make[1]: *** [simgear/package/CMakeFiles/sg_pkgutil.dir/all] Error 2
make: *** [all] Error 2


My CMAKE looks like:
Code: Select all
$ cmake -DCMAKE_INSTALL_PREFIX=/home/benjamin -DJPEG_FACTORY=ON -DENABLE_RTI=OFF -LA ../simgear
-- version is 2 dot 11 dot 0
-- ignoring: ^/home/benjamin/flightgear/simgear/.git;\\.gitignore;Makefile.am;~$;
-- Library installation directory: lib64
-- Boost version: 1.50.0
-- SimGear mode: NORMAL
-- Sound support: ENABLED
-- JPEG-factory: ENABLED
-- Subversion client support: ENABLED
-- Using built-in expat code
-- RTI: DISABLED
-- Tests: ENABLED
-- Library building mode: STATIC LIBRARIES
-- Configuring done
-- Generating done
-- Build files have been written to: /home/benjamin/flightgear/build.simgear
-- Cache values
BUILD_TESTING:BOOL=ON
BZRCOMMAND:FILEPATH=BZRCOMMAND-NOTFOUND
Boost_DIR:PATH=Boost_DIR-NOTFOUND
Boost_INCLUDE_DIR:PATH=/usr/include
Boost_LIBRARY_DIRS:FILEPATH=/usr/lib
CMAKE_AR:FILEPATH=/usr/bin/ar
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_COLOR_MAKEFILE:BOOL=ON
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS_DEBUG:STRING=
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=
CMAKE_CXX_FLAGS_RELEASE:STRING=
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS_DEBUG:STRING=-g
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_DEBUG_POSTFIX:STRING=d
CMAKE_EXE_LINKER_FLAGS:STRING=
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
CMAKE_INSTALL_BINDIR:PATH=bin
CMAKE_INSTALL_DATADIR:PATH=
CMAKE_INSTALL_DATAROOTDIR:PATH=share
CMAKE_INSTALL_DOCDIR:PATH=
CMAKE_INSTALL_INCLUDEDIR:PATH=include
CMAKE_INSTALL_INFODIR:PATH=
CMAKE_INSTALL_LIBDIR:PATH=lib64
CMAKE_INSTALL_LIBEXECDIR:PATH=libexec
CMAKE_INSTALL_LOCALEDIR:PATH=
CMAKE_INSTALL_LOCALSTATEDIR:PATH=var
CMAKE_INSTALL_MANDIR:PATH=
CMAKE_INSTALL_OLDINCLUDEDIR:PATH=/usr/include
CMAKE_INSTALL_PREFIX:PATH=/home/benjamin
CMAKE_INSTALL_SBINDIR:PATH=sbin
CMAKE_INSTALL_SHAREDSTATEDIR:PATH=com
CMAKE_INSTALL_SYSCONFDIR:PATH=etc
CMAKE_LINKER:FILEPATH=/usr/bin/ld
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
CMAKE_MINSIZEREL_POSTFIX:STRING=
CMAKE_MODULE_LINKER_FLAGS:STRING=
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_NM:FILEPATH=/usr/bin/nm
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
CMAKE_RELEASE_POSTFIX:STRING=
CMAKE_RELWITHDEBINFO_POSTFIX:STRING=
CMAKE_SHARED_LINKER_FLAGS:STRING=
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
CMAKE_SKIP_RPATH:BOOL=NO
CMAKE_STRIP:FILEPATH=/usr/bin/strip
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
COMPRESSIONCOMMAND:FILEPATH=/usr/bin/gzip
COVERAGE_COMMAND:FILEPATH=/usr/bin/gcov
COVERAGE_EXTRA_FLAGS:STRING=-l
CTEST_SUBMIT_RETRY_COUNT:STRING=3
CTEST_SUBMIT_RETRY_DELAY:STRING=5
CVSCOMMAND:FILEPATH=/usr/bin/cvs
CVS_UPDATE_OPTIONS:STRING=-d -A -P
DART_BUILD_ERROR_REPORT_LIMIT:BOOL=OFF
DART_BUILD_WARNING_REPORT_LIMIT:BOOL=OFF
DART_ROOT:PATH=DART_ROOT-NOTFOUND
DART_TESTING_TIMEOUT:STRING=1500
DART_VERBOSE_BUILD:BOOL=OFF
DELIVER_CONTINUOUS_EMAIL:BOOL=Off
ENABLE_LIBSVN:BOOL=ON
ENABLE_RTI:BOOL=OFF
ENABLE_SOUND:BOOL=ON
ENABLE_TESTS:BOOL=ON
GITCOMMAND:FILEPATH=/usr/bin/git
GUNZIPCOMMAND:FILEPATH=/usr/bin/gunzip
HAVE_APR_CONFIG:FILEPATH=/usr/bin/apr-1-config
HGCOMMAND:FILEPATH=HGCOMMAND-NOTFOUND
JAVACOMMAND:FILEPATH=/usr/bin/java
JPEG_FACTORY:BOOL=ON
JPEG_INCLUDE_DIR:PATH=/usr/include
JPEG_LIBRARY:FILEPATH=/usr/lib64/libjpeg.so
LIBSVN_INCLUDE_DIR:PATH=/usr/include/subversion-1
MAKECOMMAND:STRING=/usr/bin/gmake -i
MEMORYCHECK_COMMAND:FILEPATH=MEMORYCHECK_COMMAND-NOTFOUND
MEMORYCHECK_SUPPRESSIONS_FILE:FILEPATH=
MSVC_3RDPARTY_ROOT:PATH=NOT_FOUND
OPENAL_INCLUDE_DIR:PATH=/usr/include/AL
OPENAL_LIBRARY:FILEPATH=/usr/lib64/libopenal.so
OPENGL_INCLUDE_DIR:PATH=/usr/include
OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so
OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so
OPENGL_xmesa_INCLUDE_DIR:PATH=OPENGL_xmesa_INCLUDE_DIR-NOTFOUND
OPENTHREADS_INCLUDE_DIR:PATH=/usr/include
OPENTHREADS_LIBRARY:FILEPATH=/usr/lib64/libOpenThreads.so
OPENTHREADS_LIBRARY_DEBUG:FILEPATH=OPENTHREADS_LIBRARY_DEBUG-NOTFOUND
OSGDB_INCLUDE_DIR:PATH=/usr/include
OSGDB_LIBRARY:FILEPATH=/usr/lib64/libosgDB.so
OSGDB_LIBRARY_DEBUG:FILEPATH=OSGDB_LIBRARY_DEBUG-NOTFOUND
OSGGA_INCLUDE_DIR:PATH=/usr/include
OSGGA_LIBRARY:FILEPATH=/usr/lib64/libosgGA.so
OSGGA_LIBRARY_DEBUG:FILEPATH=OSGGA_LIBRARY_DEBUG-NOTFOUND
OSGPARTICLE_INCLUDE_DIR:PATH=/usr/include
OSGPARTICLE_LIBRARY:FILEPATH=/usr/lib64/libosgParticle.so
OSGPARTICLE_LIBRARY_DEBUG:FILEPATH=OSGPARTICLE_LIBRARY_DEBUG-NOTFOUND
OSGSIM_INCLUDE_DIR:PATH=/usr/include
OSGSIM_LIBRARY:FILEPATH=/usr/lib64/libosgSim.so
OSGSIM_LIBRARY_DEBUG:FILEPATH=OSGSIM_LIBRARY_DEBUG-NOTFOUND
OSGTEXT_INCLUDE_DIR:PATH=/usr/include
OSGTEXT_LIBRARY:FILEPATH=/usr/lib64/libosgText.so
OSGTEXT_LIBRARY_DEBUG:FILEPATH=OSGTEXT_LIBRARY_DEBUG-NOTFOUND
OSGUTIL_INCLUDE_DIR:PATH=/usr/include
OSGUTIL_LIBRARY:FILEPATH=/usr/lib64/libosgUtil.so
OSGUTIL_LIBRARY_DEBUG:FILEPATH=OSGUTIL_LIBRARY_DEBUG-NOTFOUND
OSG_INCLUDE_DIR:PATH=/usr/include
OSG_LIBRARY:FILEPATH=/usr/lib64/libosg.so
OSG_LIBRARY_DEBUG:FILEPATH=OSG_LIBRARY_DEBUG-NOTFOUND
RTI_FEDTIME_LIBRARY:FILEPATH=RTI_FEDTIME_LIBRARY-NOTFOUND
RTI_INCLUDE_DIR:PATH=RTI_INCLUDE_DIR-NOTFOUND
RTI_LIBRARY:FILEPATH=RTI_LIBRARY-NOTFOUND
SCPCOMMAND:FILEPATH=/usr/bin/scp
SIMGEAR_HEADLESS:BOOL=OFF
SIMGEAR_SHARED:BOOL=OFF
SITE:STRING=localhost
SLURM_SBATCH_COMMAND:FILEPATH=SLURM_SBATCH_COMMAND-NOTFOUND
SLURM_SRUN_COMMAND:FILEPATH=SLURM_SRUN_COMMAND-NOTFOUND
SVNCOMMAND:FILEPATH=/usr/bin/svn
SVN_CLIENT-1_LIBRARY:FILEPATH=/usr/lib64/libsvn_client-1.so
SVN_RA-1_LIBRARY:FILEPATH=/usr/lib64/libsvn_ra-1.so
SVN_SUBR-1_LIBRARY:FILEPATH=/usr/lib64/libsvn_subr-1.so
SYSTEM_EXPAT:BOOL=OFF
X11_ICE_INCLUDE_PATH:PATH=/usr/include
X11_ICE_LIB:FILEPATH=/usr/lib64/libICE.so
X11_SM_INCLUDE_PATH:PATH=/usr/include
X11_SM_LIB:FILEPATH=/usr/lib64/libSM.so
X11_X11_INCLUDE_PATH:PATH=/usr/include
X11_X11_LIB:FILEPATH=/usr/lib64/libX11.so
X11_XRes_INCLUDE_PATH:PATH=X11_XRes_INCLUDE_PATH-NOTFOUND
X11_XRes_LIB:FILEPATH=X11_XRes_LIB-NOTFOUND
X11_XShm_INCLUDE_PATH:PATH=/usr/include
X11_XSync_INCLUDE_PATH:PATH=/usr/include
X11_XTest_INCLUDE_PATH:PATH=X11_XTest_INCLUDE_PATH-NOTFOUND
X11_XTest_LIB:FILEPATH=X11_XTest_LIB-NOTFOUND
X11_Xaccessrules_INCLUDE_PATH:PATH=X11_Xaccessrules_INCLUDE_PATH-NOTFOUND
X11_Xaccessstr_INCLUDE_PATH:PATH=/usr/include
X11_Xau_INCLUDE_PATH:PATH=/usr/include
X11_Xau_LIB:FILEPATH=/usr/lib64/libXau.so
X11_Xcomposite_INCLUDE_PATH:PATH=/usr/include
X11_Xcomposite_LIB:FILEPATH=/usr/lib64/libXcomposite.so
X11_Xcursor_INCLUDE_PATH:PATH=/usr/include
X11_Xcursor_LIB:FILEPATH=/usr/lib64/libXcursor.so
X11_Xdamage_INCLUDE_PATH:PATH=/usr/include
X11_Xdamage_LIB:FILEPATH=/usr/lib64/libXdamage.so
X11_Xdmcp_INCLUDE_PATH:PATH=/usr/include
X11_Xdmcp_LIB:FILEPATH=/usr/lib64/libXdmcp.so
X11_Xext_LIB:FILEPATH=/usr/lib64/libXext.so
X11_Xfixes_INCLUDE_PATH:PATH=/usr/include
X11_Xfixes_LIB:FILEPATH=/usr/lib64/libXfixes.so
X11_Xft_INCLUDE_PATH:PATH=/usr/include
X11_Xft_LIB:FILEPATH=/usr/lib64/libXft.so
X11_Xi_INCLUDE_PATH:PATH=/usr/include
X11_Xi_LIB:FILEPATH=/usr/lib64/libXi.so
X11_Xinerama_INCLUDE_PATH:PATH=/usr/include
X11_Xinerama_LIB:FILEPATH=/usr/lib64/libXinerama.so
X11_Xinput_INCLUDE_PATH:PATH=/usr/include
X11_Xinput_LIB:FILEPATH=/usr/lib64/libXi.so
X11_Xkb_INCLUDE_PATH:PATH=/usr/include
X11_Xkbfile_INCLUDE_PATH:PATH=X11_Xkbfile_INCLUDE_PATH-NOTFOUND
X11_Xkbfile_LIB:FILEPATH=X11_Xkbfile_LIB-NOTFOUND
X11_Xkblib_INCLUDE_PATH:PATH=/usr/include
X11_Xlib_INCLUDE_PATH:PATH=/usr/include
X11_Xmu_INCLUDE_PATH:PATH=/usr/include
X11_Xmu_LIB:FILEPATH=/usr/lib64/libXmu.so
X11_Xpm_INCLUDE_PATH:PATH=X11_Xpm_INCLUDE_PATH-NOTFOUND
X11_Xpm_LIB:FILEPATH=X11_Xpm_LIB-NOTFOUND
X11_Xrandr_INCLUDE_PATH:PATH=/usr/include
X11_Xrandr_LIB:FILEPATH=/usr/lib64/libXrandr.so
X11_Xrender_INCLUDE_PATH:PATH=/usr/include
X11_Xrender_LIB:FILEPATH=/usr/lib64/libXrender.so
X11_Xscreensaver_INCLUDE_PATH:PATH=X11_Xscreensaver_INCLUDE_PATH-NOTFOUND
X11_Xscreensaver_LIB:FILEPATH=X11_Xscreensaver_LIB-NOTFOUND
X11_Xshape_INCLUDE_PATH:PATH=/usr/include
X11_Xt_INCLUDE_PATH:PATH=/usr/include
X11_Xt_LIB:FILEPATH=/usr/lib64/libXt.so
X11_Xutil_INCLUDE_PATH:PATH=/usr/include
X11_Xv_INCLUDE_PATH:PATH=X11_Xv_INCLUDE_PATH-NOTFOUND
X11_Xv_LIB:FILEPATH=X11_Xv_LIB-NOTFOUND
X11_Xxf86misc_LIB:FILEPATH=X11_Xxf86misc_LIB-NOTFOUND
X11_Xxf86vm_LIB:FILEPATH=/usr/lib64/libXxf86vm.so
X11_dpms_INCLUDE_PATH:PATH=/usr/include
X11_xf86misc_INCLUDE_PATH:PATH=/usr/include
X11_xf86vmode_INCLUDE_PATH:PATH=/usr/include
ZLIB_INCLUDE_DIR:PATH=/usr/include
ZLIB_LIBRARY:FILEPATH=/usr/lib64/libz.so


All sources were pulled today (4/28/2013)
PCLinuxOS 64bit
Code: Select all
 uname -a
Linux localhost 3.2.18-pclos2.bfs #1 SMP PREEMPT Thu May 24 12:11:06 CEST 2012 x86_64 x86_64 x86_64 GNU/Linux


Am I missing a dependent package; have a broken link to a file; or is simgear broken?

Thanks,
bishb25
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: problems building simgear 2.11 (GIT) on 64bit linux

Postby Hooray » Mon Apr 29, 2013 6:32 pm

according to your log, that's just a unit test that's failing there (linking error), you probably need to shuffle dependencies around to successfully link the unit test. In this particular case, you'll want to make sure that you are linking with -lrt.
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: 12059
Joined: Tue Mar 25, 2008 8:40 am

Re: problems building simgear 2.11 (GIT) on 64bit linux

Postby bishb25 » Mon Apr 29, 2013 10:58 pm

Thanks for the reply Hooray, but I still don't understand. Which dependencies am i looking for and what do you mean by shuffle around? Symbolic links?
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: problems building simgear 2.11 (GIT) on 64bit linux

Postby bishb25 » Sun May 05, 2013 9:33 pm

Still can't get simgear to compile.
I tried
Code: Select all
 export LDFLAGS="$LDFLAGS -lrt"
and
Code: Select all
export LDFLAGS="$LDFLAGS -ldl"
before compiling and it still hangs on "sg_pkgutil"
Can anyone help?
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: problems building simgear 2.11 (GIT) on 64bit linux  

Postby bishb25 » Tue May 07, 2013 1:25 am

I got it working,

I don't know what I did officially to make it work. I installed some libs like fluid and fltk. I also installed bzr, However, none of these solved the problem. In the end I deleted my build directory and started over. Simgear compiled and I'm finally flying again.

Thanks for checking in.
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 134
Joined: Wed Sep 09, 2009 4:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest