Board index FlightGear Support Compiling

Download_and_compile.sh & Raspberry Pi4  Topic is solved

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

Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Sat Feb 15, 2020 4:44 pm

I have been running FG on the Raspberry Pi4 for a few month and documenting the story here:
https://www.raspberrypi.org/forums/view ... 8&t=260778

Presently I am trying to learn how to compile FG for the Pi4. Have been using download_and_compile.sh per the instructions here:
http://wiki.flightgear.org/Scripted_Com ... ian/Ubuntu

Trying to install on an external SSD drive conected to the Pi4's 3.0 USB port.

I have progressed to about the middle of the above instructions where FG and SimGear are downloaded and installed.
download_and_compile.sh -j3 -s
Above, the full path is left out however 3 cores were used and try to get a stable version or a stable release version would be nice.

As you will figure out, I am not a programmer... :?

It looks like SimGear may have come close to being installed, however it looks like FG bombs quickly.
When trying to run FG via; "./run_fgfs.sh --launcher" terminal replies with "./run_fgfs.sh: 3: cd: can't cd to install/flightgear/bin" and "./run_fgfs.sh: 5: ./run_fgfs.sh: ./fgfs: not found".

The compilation_log.txt is below:

Code: Select all
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/fgmeta/download_and_compile.sh
VERSION=e25f4e39d2dc8876350c43bb7089bd6c57194e76
APT_GET_UPDATE=y
DOWNLOAD_PACKAGES=y
IGNORE_INTERCOMPONENT_DEPS=n
COMPILE=y
RECONFIGURE=y
DOWNLOAD=y
JOPTION= -j3
OOPTION=
BUILD_TYPE=RelWithDebInfo
SG_CMAKEARGS=
FG_CMAKEARGS=
DIRECTORY=/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed
Stable build: yes
***********************************
Running 'sudo apt-get update'...
Considering a package alternative: libcurl4-openssl-dev libcurl4-gnutls-dev
Package alternative matched for libcurl4-openssl-dev
Considering a package alternative: libopenscenegraph-3.4-dev libopenscenegraph-dev libopenscenegraph-[0-9]+\.[0-9]+-dev
Package alternative matched for libopenscenegraph-3.4-dev
Considering a package alternative: libpng-dev libpng12-dev libpng16-dev
Package alternative matched for libpng-dev
Considering an optional package alternative: qt5-default
Optional package alternative matched for qt5-default
Considering an optional package alternative: qtdeclarative5-dev
Optional package alternative matched for qtdeclarative5-dev
Considering an optional package alternative: qttools5-dev
Optional package alternative matched for qttools5-dev
Considering an optional package alternative: qtbase5-dev-tools
Optional package alternative matched for qtbase5-dev-tools
Considering an optional package alternative: qttools5-dev-tools
Optional package alternative matched for qttools5-dev-tools
Considering an optional package alternative: qml-module-qtquick2
Optional package alternative matched for qml-module-qtquick2
Considering an optional package alternative: qml-module-qtquick-window2
Optional package alternative matched for qml-module-qtquick-window2
Considering an optional package alternative: qml-module-qtquick-dialogs
Optional package alternative matched for qml-module-qtquick-dialogs
Considering an optional package alternative: libqt5opengl5-dev
Optional package alternative matched for libqt5opengl5-dev
Considering an optional package alternative: libqt5svg5-dev
Optional package alternative matched for libqt5svg5-dev
Considering an optional package alternative: libqt5websockets5-dev
Optional package alternative matched for libqt5websockets5-dev
Considering an optional package alternative: qtbase5-private-dev
Optional package alternative matched for qtbase5-private-dev
Considering an optional package alternative: qtdeclarative5-private-dev
Optional package alternative matched for qtdeclarative5-private-dev
Considering an optional package alternative: libevent-dev
Optional package alternative matched for libevent-dev
Running 'sudo apt-get install build-essential git libcurl4-openssl-dev cmake zlib1g-dev freeglut3-dev libglew-dev libopenal-dev libboost-dev libopenscenegraph-3.4-dev libudev-dev libdbus-1-dev libplib-dev libpng-dev qt5-default qtdeclarative5-dev qttools5-dev qtbase5-dev-tools qttools5-dev-tools qml-module-qtquick2 qml-module-qtquick-window2 qml-module-qtquick-dialogs libqt5opengl5-dev libqt5svg5-dev libqt5websockets5-dev qtbase5-private-dev qtdeclarative5-private-dev fluid libbz2-dev libfltk1.3-dev libxi-dev libxmu-dev libxinerama-dev libjpeg-dev libxft-dev libevent-dev'...

****************************************
**************** SIMGEAR ***************
****************************************
Fetching SIMGEAR with 'git clone https://git.code.sf.net/p/flightgear/simgear'
-- CMAKE Build type: RelWithDebInfo
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- version is 2019 dot 1 dot 2
-- Library installation directory: lib
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Boost version: 1.67.0
-- SimGear mode: NORMAL
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so   
-- Found OpenAL: /usr/lib/arm-linux-gnueabihf/libopenal.so 
-- Sound support: OpenAL
-- Found osgText: /usr/lib/arm-linux-gnueabihf/libosgText.so 
-- Found osgSim: /usr/lib/arm-linux-gnueabihf/libosgSim.so 
-- Found osgDB: /usr/lib/arm-linux-gnueabihf/libosgDB.so 
-- Found osgParticle: /usr/lib/arm-linux-gnueabihf/libosgParticle.so 
-- Found osgGA: /usr/lib/arm-linux-gnueabihf/libosgGA.so 
-- Found osgViewer: /usr/lib/arm-linux-gnueabihf/libosgViewer.so 
-- Found osgUtil: /usr/lib/arm-linux-gnueabihf/libosgUtil.so 
-- Found osg: /usr/lib/arm-linux-gnueabihf/libosg.so 
-- Found OpenThreads: /usr/lib/arm-linux-gnueabihf/libOpenThreads.so 
-- Found OpenSceneGraph: /usr/lib/arm-linux-gnueabihf/libosgText.so;/usr/lib/arm-linux-gnueabihf/libosgSim.so;/usr/lib/arm-linux-gnueabihf/libosgDB.so;/usr/lib/arm-linux-gnueabihf/libosgParticle.so;/usr/lib/arm-linux-gnueabihf/libosgGA.so;/usr/lib/arm-linux-gnueabihf/libosgViewer.so;/usr/lib/arm-linux-gnueabihf/libosgUtil.so;/usr/lib/arm-linux-gnueabihf/libosg.so;/usr/lib/arm-linux-gnueabihf/libOpenThreads.so (found suitable version "3.4.1", minimum required is "3.2.0")
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found suitable version "1.2.11", minimum required is "1.2.4")
-- Found CURL: /usr/lib/arm-linux-gnueabihf/libcurl.so (found version "7.64.0")
-- Using built-in expat code
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- RTI: DISABLED
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for rint
-- Looking for rint - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for timegm
-- Looking for timegm - found
-- Performing Test HAVE_CLOCK_GETTIME
-- Performing Test HAVE_CLOCK_GETTIME - Success
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Performing Test HAVE_DLFCN_H
-- Performing Test HAVE_DLFCN_H - Success
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_STD_ISNAN
-- Performing Test HAVE_STD_ISNAN - Success
-- Performing Test HAVE_WORKING_STD_REGEX
-- Performing Test HAVE_WORKING_STD_REGEX - Success
-- Performing Test GCC_ATOMIC_BUILTINS_FOUND
-- Performing Test GCC_ATOMIC_BUILTINS_FOUND - Success
-- OpenMP: DISABLED
-- Performing Test HAS_NOWARN_UNUSED_TYPEDEFS
-- Performing Test HAS_NOWARN_UNUSED_TYPEDEFS - Success
-- Performing Test HAVE_STD_INDEX_SEQUENCE
-- Performing Test HAVE_STD_INDEX_SEQUENCE - Failed
-- Performing Test HAVE_STD_REMOVE_CV_T
-- Performing Test HAVE_STD_REMOVE_CV_T - Failed
-- Performing Test HAVE_STD_REMOVE_CVREF_T
-- Performing Test HAVE_STD_REMOVE_CVREF_T - Failed
-- Performing Test HAVE_STD_ENABLE_IF_T
-- Performing Test HAVE_STD_ENABLE_IF_T - Failed
-- Performing Test HAVE_STD_BOOL_CONSTANT
-- Performing Test HAVE_STD_BOOL_CONSTANT - Failed
-- Tests: ENABLED
-- DNS resolver: ENABLED
-- Looking for poll
-- Looking for poll - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for AF_INET6
-- Looking for AF_INET6 - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Library building mode: STATIC LIBRARIES
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear
MAKE simgear
Scanning dependencies of target SimGearCore
[  1%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_dntosp.c.o
[  1%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_dn.c.o
[  1%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_resolver.c.o
[  1%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_parse.c.o
[  1%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_init.c.o
[  2%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_misc.c.o
[  2%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_a.c.o
[  2%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_ptr.c.o
[  2%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_mx.c.o
[  3%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_txt.c.o
[  3%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_bl.c.o
[  3%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_srv.c.o
[  3%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_rr_naptr.c.o
[  4%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_codes.c.o
[  4%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_jran.c.o
[  4%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/udns/udns_XtoX.c.o
[  4%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bucket/newbucket.cxx.o
[  5%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHGroup.cxx.o
[  5%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineGeometry.cxx.o
[  5%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHLineSegmentVisitor.cxx.o
[  5%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHMotionTransform.cxx.o
[  6%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHNode.cxx.o
[  6%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPageNode.cxx.o
[  6%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPageRequest.cxx.o
[  7%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHPager.cxx.o
[  7%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHStaticBinary.cxx.o
[  7%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHStaticGeometry.cxx.o
[  7%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHStaticLeaf.cxx.o
[  8%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHStaticNode.cxx.o
[  8%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHStaticTriangle.cxx.o
[  8%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHSubTreeCollector.cxx.o
[  8%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHMaterial.cxx.o
[  9%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/bvh/BVHTransform.cxx.o
[  9%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/debug/logstream.cxx.o
[  9%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/debug/BufferedLogCallback.cxx.o
[  9%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/embedded_resources/EmbeddedResource.cxx.o
[ 10%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/embedded_resources/EmbeddedResourceManager.cxx.o
[ 10%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/embedded_resources/EmbeddedResourceProxy.cxx.o
[ 10%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/celestialBody.cxx.o
[ 10%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/ephemeris.cxx.o
[ 11%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/jupiter.cxx.o
[ 11%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/mars.cxx.o
[ 11%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/mercury.cxx.o
[ 11%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/moonpos.cxx.o
[ 12%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/neptune.cxx.o
[ 12%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/saturn.cxx.o
[ 12%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/star.cxx.o
[ 12%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/stardata.cxx.o
[ 13%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/uranus.cxx.o
[ 13%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/ephemeris/venus.cxx.o
[ 13%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iostreams/sgstream.cxx.o
[ 14%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iostreams/gzfstream.cxx.o
In file included from /usr/include/c++/8/vector:69,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/debug/logstream.hxx:32,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/ephemeris/stardata.cxx:27:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {SGVec3<double>}; _Tp = SGVec3<double>; _Alloc = std::allocator<SGVec3<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<SGVec3<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<SGVec3<double>*, std::vector<SGVec3<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc: In member function ‘bool SGStarData::load(const SGPath&)’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<SGVec3<double>*, std::vector<SGVec3<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), std::forward<_Args>(__args)...);
    ^~~~~~~~~~~~~~~~~
[ 14%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iostreams/gzcontainerfile.cxx.o
[ 14%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iostreams/CharArrayStream.cxx.o
[ 14%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iostreams/zlibstream.cxx.o
[ 15%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/iochannel.cxx.o
[ 15%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/lowlevel.cxx.o
[ 15%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/raw_socket.cxx.o
[ 15%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_binobj.cxx.o
[ 16%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_file.cxx.o
[ 16%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_netBuffer.cxx.o
[ 16%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_netChannel.cxx.o
[ 16%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_netChat.cxx.o
[ 17%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_serial.cxx.o
In file included from /usr/include/c++/8/vector:69,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/debug/logstream.hxx:32,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/io/sg_binobj.cxx:30:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {SGVec3<double>}; _Tp = SGVec3<double>; _Alloc = std::allocator<SGVec3<double> >]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<SGVec3<double> >::iterator’ {aka ‘__gnu_cxx::__normal_iterator<SGVec3<double>*, std::vector<SGVec3<double> > >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
[ 17%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_socket.cxx.o
[ 17%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/sg_socket_udp.cxx.o
[ 17%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPClient.cxx.o
[ 18%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPFileRequest.cxx.o
/usr/include/c++/8/bits/vector.tcc: In member function ‘bool SGBinObject::read_bin(const SGPath&)’:
/usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<SGVec3<double>*, std::vector<SGVec3<double> > >’ changed in GCC 7.1
    _M_realloc_insert(end(), std::forward<_Args>(__args)...);
    ^~~~~~~~~~~~~~~~~
[ 18%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPMemoryRequest.cxx.o
[ 18%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPRequest.cxx.o
[ 18%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPRepository.cxx.o
[ 19%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/untar.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/io/untar.cxx: In member function ‘virtual void simgear::ZipExtractorPrivate::flush()’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/io/untar.cxx:503:31: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘unsigned int’} [-Wformat=]
   ::snprintf(bufferName, 128, "%p+%lx", m_buffer.data(), m_buffer.size());
                               ^~~~~~~~                   ~~~~~~~~~~~~~~~
[ 19%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/DNSClient.cxx.o
[ 19%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/magvar/magvar.cxx.o
[ 20%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/magvar/coremag.cxx.o
[ 20%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/math/SGGeodesy.cxx.o
[ 20%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/math/interpolater.cxx.o
[ 20%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/math/leastsqs.cxx.o
[ 21%] Building C object simgear/CMakeFiles/SimGearCore.dir/math/sg_random.c.o
[ 21%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/CSSBorder.cxx.o
[ 21%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/ResourceManager.cxx.o
[ 21%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/SimpleMarkdown.cxx.o
[ 22%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/SVGpreserveAspectRatio.cxx.o
[ 22%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/argparse.cxx.o
[ 22%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/interpolator.cxx.o
[ 22%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/sg_dir.cxx.o
[ 23%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/sg_path.cxx.o
[ 23%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/sg_hash.cxx.o
[ 23%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/strutils.cxx.o
[ 23%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/tabbed_values.cxx.o
[ 24%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/misc/texcoord.cxx.o
[ 24%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/bitslib.c.o
[ 24%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/code.c.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/code.c: In function ‘naRethrowError’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/code.c:39:57: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
     strncpy(subc->callParent->error, subc->error, sizeof(subc->error));
                                                         ^
[ 24%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/codegen.c.o
[ 25%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/gc.c.o
[ 25%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/hash.c.o
[ 25%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/iolib.c.o
[ 25%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/lex.c.o
[ 26%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/lib.c.o
[ 26%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/mathlib.c.o
[ 26%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/misc.c.o
[ 27%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/parse.c.o
[ 27%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/string.c.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/parse.c: In function ‘naParseCode’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/parse.c:424:9: warning: ‘strncpy’ specified bound 128 equals destination size [-Wstringop-truncation]
         strncpy(c->error, p.err, sizeof(c->error));
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 27%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/thread-posix.c.o
[ 27%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/thread-win32.c.o
[ 28%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/threadlib.c.o
[ 28%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/utf8lib.c.o
[ 28%] Building C object simgear/CMakeFiles/SimGearCore.dir/nasal/vector.c.o
[ 28%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/Ghost.cxx.o
[ 29%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/NasalContext.cxx.o
[ 29%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/NasalHash.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.cxx: In member function ‘naRef nasal::ContextWrapper::callMethod(nasal::Me, naRef, std::initializer_list<naRef>)’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.cxx:60:9: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
   naRef ContextWrapper::callMethod( Me me,
         ^~~~~~~~~~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.cxx: In member function ‘naRef nasal::ContextWrapper::newVector(std::initializer_list<naRef>)’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.cxx:80:9: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
   naRef ContextWrapper::newVector(std::initializer_list<naRef> vals)
         ^~~~~~~~~~~~~~
[ 29%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/NasalString.cxx.o
In file included from /usr/include/c++/8/vector:69,
                 from /usr/include/boost/detail/container_fwd.hpp:93,
                 from /usr/include/boost/container_hash/extensions.hpp:22,
                 from /usr/include/boost/container_hash/hash.hpp:760,
                 from /usr/include/boost/type_index/stl_type_index.hpp:43,
                 from /usr/include/boost/type_index.hpp:29,
                 from /usr/include/boost/function/function_base.hpp:21,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:30,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/detail/from_nasal_helper.hxx:35,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/from_nasal.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:125,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalCallContext.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/Ghost.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/Ghost.cxx:19:
/usr/include/c++/8/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const naRef&}; _Tp = naRef; _Alloc = std::allocator<naRef>]’:
/usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for argument of type ‘std::vector<naRef>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<naRef*, std::vector<naRef> >’} changed in GCC 7.1
       vector<_Tp, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/vector:64,
                 from /usr/include/boost/detail/container_fwd.hpp:93,
                 from /usr/include/boost/container_hash/extensions.hpp:22,
                 from /usr/include/boost/container_hash/hash.hpp:760,
                 from /usr/include/boost/type_index/stl_type_index.hpp:43,
                 from /usr/include/boost/type_index.hpp:29,
                 from /usr/include/boost/function/function_base.hpp:21,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:30,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/detail/from_nasal_helper.hxx:35,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/from_nasal.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:125,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalCallContext.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/Ghost.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/Ghost.cxx:19:
/usr/include/c++/8/bits/stl_vector.h: In member function ‘void nasal::internal::GhostMetadata::addNasalBase(const naRef&)’:
/usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<naRef*, std::vector<naRef> >’ changed in GCC 7.1
    _M_realloc_insert(end(), __x);
    ^~~~~~~~~~~~~~~~~
[ 29%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/NasalObject.cxx.o
[ 30%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/detail/from_nasal_helper.cxx.o
[ 30%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/nasal/cppbind/detail/to_nasal_helper.cxx.o
[ 30%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/AtomicChangeListener.cxx.o
[ 30%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/condition.cxx.o
[ 31%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/easing_functions.cxx.o
[ 31%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/PropertyBasedElement.cxx.o
[ 31%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/PropertyBasedMgr.cxx.o
[ 31%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/PropertyInterpolationMgr.cxx.o
[ 32%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/PropertyInterpolator.cxx.o
[ 32%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/propertyObject.cxx.o
[ 32%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/props.cxx.o
[ 32%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/props/props_io.cxx.o
[ 33%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/serial/serial.cxx.o
[ 33%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGAtomic.cxx.o
[ 33%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGBinding.cxx.o
[ 34%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGExpression.cxx.o
[ 34%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGSmplhist.cxx.o
[ 34%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGSmplstat.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/SGExpression.cxx:91:1: warning: ‘bool SGReadValueFromString(const char*, T&) [with T = bool]’ defined but not used [-Wunused-function]
 SGReadValueFromString(const char* str, bool& value)
 ^~~~~~~~~~~~~~~~~~~~~
[ 34%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/SGPerfMon.cxx.o
[ 35%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/StringTable.cxx.o
[ 35%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/commands.cxx.o
[ 35%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/event_mgr.cxx.o
[ 35%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/exception.cxx.o
[ 36%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/subsystem_mgr.cxx.o
In file included from /usr/include/c++/8/map:60,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/subsystem_mgr.hxx:29,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/event_mgr.hxx:5,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/event_mgr.cxx:5:
/usr/include/c++/8/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>, std::tuple<>}; _Key = std::__cxx11::basic_string<char>; _Val = std::pair<const std::__cxx11::basic_string<char>, double>; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, double> >; _Compare = std::less<std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string<char>, double> >]’:
/usr/include/c++/8/bits/stl_tree.h:2411:7: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, double>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, double> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, double> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, double> >’} changed in GCC 7.1
       _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8/map:61,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/subsystem_mgr.hxx:29,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/event_mgr.hxx:5,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/event_mgr.cxx:5:
/usr/include/c++/8/bits/stl_map.h: In member function ‘void SGTimerQueue::update(double, std::map<std::__cxx11::basic_string<char>, double>&)’:
/usr/include/c++/8/bits/stl_map.h:499:8: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, double>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, double> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, double> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, double> >’} changed in GCC 7.1
    __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
[ 36%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/structure/StateMachine.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/structure/subsystem_mgr.cxx:1435:10: warning: ‘void {anonymous}::registerSubsystemCommands()’ defined but not used [-Wunused-function]
     void registerSubsystemCommands()
          ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 36%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/threads/SGThread.cxx.o
[ 36%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/timing/lowleveltime.cxx.o
[ 37%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/timing/sg_time.cxx.o
[ 37%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/timing/timestamp.cxx.o
[ 37%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/timing/timezone.cxx.o
[ 37%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/xml/easyxml.cxx.o
[ 38%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/package/Catalog.cxx.o
[ 38%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/package/Package.cxx.o
[ 38%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/package/Install.cxx.o
[ 38%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/package/Root.cxx.o
[ 39%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/package/Delegate.cxx.o
[ 39%] Building C object simgear/CMakeFiles/SimGearCore.dir/package/md5.c.o
[ 39%] Building C object simgear/CMakeFiles/SimGearCore.dir/package/ioapi.c.o
[ 40%] Building C object simgear/CMakeFiles/SimGearCore.dir/package/ioapi_mem.c.o
[ 40%] Building C object simgear/CMakeFiles/SimGearCore.dir/package/unzip.c.o
[ 40%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/scene/tsync/terrasync.cxx.o
[ 40%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/expat/hashtable.c.o
[ 41%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/expat/xmlparse.c.o
[ 41%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/expat/xmlrole.c.o
[ 41%] Building C object simgear/CMakeFiles/SimGearCore.dir/__/3rdparty/expat/xmltok.c.o
[ 41%] Linking CXX static library libSimGearCore.a
[ 41%] Built target SimGearCore
Scanning dependencies of target test_magvar
Scanning dependencies of target bvhtest
[ 41%] Building CXX object simgear/magvar/CMakeFiles/test_magvar.dir/testmagvar.cxx.o
[ 41%] Building CXX object simgear/bvh/CMakeFiles/bvhtest.dir/bvhtest.cxx.o
[ 42%] Linking CXX executable test_magvar
Scanning dependencies of target SimGearScene
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shArrays.c.o
[ 43%] Built target test_magvar
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shContext.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shExtensions.c.o
[ 43%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shGeometry.c.o
[ 44%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shImage.c.o
[ 44%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPaint.c.o
[ 44%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shParams.c.o
[ 44%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPath.c.o
[ 45%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shPipeline.c.o
[ 45%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shVectors.c.o
[ 45%] Building C object simgear/CMakeFiles/SimGearScene.dir/canvas/ShivaVG/src/shVgu.c.o
[ 45%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasElement.cxx.o
[ 46%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasGroup.cxx.o
[ 47%] Linking CXX executable bvhtest
[ 47%] Built target bvhtest
[ 47%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasImage.cxx.o
[ 47%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasMap.cxx.o
[ 47%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasPath.cxx.o
[ 48%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/elements/CanvasText.cxx.o
[ 48%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/events/CustomEvent.cxx.o
[ 48%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/events/DeviceEvent.cxx.o
[ 49%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/events/KeyboardEvent.cxx.o
[ 49%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/events/MouseEvent.cxx.o
[ 49%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/BoxLayout.cxx.o
[ 49%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/Layout.cxx.o
[ 50%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/LayoutItem.cxx.o
[ 50%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/NasalWidget.cxx.o
[ 50%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/layout/SpacerItem.cxx.o
[ 50%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/Canvas.cxx.o
[ 51%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasEvent.cxx.o
In file included from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/detail/from_nasal_helper.hxx:27,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/from_nasal.hxx:23,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/layout/NasalWidget.hxx:25,
                 from /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/layout/NasalWidget.cxx:21:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx: In static member function ‘static void boost::detail::function::void_function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = nasal::NasalMethodHolder<void, nasal::Me>; R = void; T0 = nasal::Me]’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:98:10: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
         ));
          ^
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx: In static member function ‘static void boost::detail::function::void_function_obj_invoker2<FunctionObj, R, T0, T1>::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = nasal::NasalMethodHolder<void, nasal::Me, bool>; R = void; T0 = nasal::Me; T1 = bool]’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:98:10: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
         ));
          ^
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx: In static member function ‘static void boost::detail::function::void_function_obj_invoker2<FunctionObj, R, T0, T1>::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = nasal::NasalMethodHolder<void, nasal::Me, const SGRect<int>&>; R = void; T0 = nasal::Me; T1 = const SGRect<int>&]’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:98:10: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
         ));
          ^
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx: In static member function ‘static R boost::detail::function::function_obj_invoker2<FunctionObj, R, T0, T1>::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = nasal::NasalMethodHolder<int, nasal::Me, int>; R = int; T0 = nasal::Me; T1 = int]’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/nasal/cppbind/NasalContext.hxx:98:10: note: parameter passing for argument of type ‘std::initializer_list<naRef>’ changed in GCC 7.1
         ));
          ^
[ 51%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasEventManager.cxx.o
[ 51%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasEventVisitor.cxx.o
[ 51%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasMgr.cxx.o
[ 52%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasObjectPlacement.cxx.o
[ 52%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasPlacement.cxx.o
[ 52%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/CanvasWindow.cxx.o
[ 52%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx: In member function ‘void simgear::canvas::ODGauge::allocRT(osg::NodeCallback*)’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: error: ‘GL_FOG’ was not declared in this scope
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: note: suggested alternative: ‘GL_RG’
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
                       GL_RG
[ 53%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/VGInitOperation.cxx.o
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/build.make:505: simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1149: simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
INSTALL simgear
[ 41%] Built target SimGearCore
[ 41%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx: In member function ‘void simgear::canvas::ODGauge::allocRT(osg::NodeCallback*)’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: error: ‘GL_FOG’ was not declared in this scope
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: note: suggested alternative: ‘GL_RG’
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
                       GL_RG
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/build.make:505: simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1149: simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
****************************************
**************** DATA ******************
****************************************
DATA: the repository already exists
****************************************
************** FLIGHTGEAR **************
****************************************
Fetching FGFS with 'git clone https://git.code.sf.net/p/flightgear/flightgear'
CMAKE Build type: RelWithDebInfo
-- Setting build type to 'Dev' as none was specified.
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- System is: Linux
-- Linux distro is: Raspbian
-- Web browser launcher command is: xdg-open
-- Using explicit data directory for base package: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/install/flightgear/fgdata
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /usr/lib/arm-linux-gnueabihf/libX11.so;/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/arm-linux-gnueabihf/libX11.so
-- libudev stable: 1
-- Found UDev: /lib/arm-linux-gnueabihf/libudev.so
--    include: /usr/include
-- event-based input enabled. Using /lib/arm-linux-gnueabihf/libudev.so
-- Boost version: 1.67.0
-- Found OpenGL: /usr/lib/arm-linux-gnueabihf/libGL.so   
-- Found osgText: /usr/lib/arm-linux-gnueabihf/libosgText.so 
-- Found osgSim: /usr/lib/arm-linux-gnueabihf/libosgSim.so 
-- Found osgDB: /usr/lib/arm-linux-gnueabihf/libosgDB.so 
-- Found osgParticle: /usr/lib/arm-linux-gnueabihf/libosgParticle.so 
-- Found osgFX: /usr/lib/arm-linux-gnueabihf/libosgFX.so 
-- Found osgUtil: /usr/lib/arm-linux-gnueabihf/libosgUtil.so 
-- Found osgViewer: /usr/lib/arm-linux-gnueabihf/libosgViewer.so 
-- Found osgGA: /usr/lib/arm-linux-gnueabihf/libosgGA.so 
-- Found osg: /usr/lib/arm-linux-gnueabihf/libosg.so 
-- Found OpenThreads: /usr/lib/arm-linux-gnueabihf/libOpenThreads.so 
-- Found OpenSceneGraph: /usr/lib/arm-linux-gnueabihf/libosgText.so;/usr/lib/arm-linux-gnueabihf/libosgSim.so;/usr/lib/arm-linux-gnueabihf/libosgDB.so;/usr/lib/arm-linux-gnueabihf/libosgParticle.so;/usr/lib/arm-linux-gnueabihf/libosgFX.so;/usr/lib/arm-linux-gnueabihf/libosgUtil.so;/usr/lib/arm-linux-gnueabihf/libosgViewer.so;/usr/lib/arm-linux-gnueabihf/libosgGA.so;/usr/lib/arm-linux-gnueabihf/libosg.so;/usr/lib/arm-linux-gnueabihf/libOpenThreads.so (found suitable version "3.4.1", minimum required is "3.2.0")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.16
-- Using DBus
-- Qt launcher enabled, checking for Qt >= 5.4 / qmake
-- Will enable Qt launcher GUI
--   Qt5Widgets version: 5.11.3
--   Qt5Widgets include dir: /usr/include/arm-linux-gnueabihf/qt5/;/usr/include/arm-linux-gnueabihf/qt5/QtWidgets;/usr/include/arm-linux-gnueabihf/qt5/QtGui;/usr/include/arm-linux-gnueabihf/qt5/QtCore;/usr/lib/arm-linux-gnueabihf/qt5//mkspecs/linux-g++
-- Using explicitly defined translations from: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/install/flightgear/fgdata/Translations
-- /usr/include
-- Found PLIB: optimized;/usr/lib/arm-linux-gnueabihf/libplibpuaux.so;debug;/usr/lib/arm-linux-gnueabihf/libplibpuaux.so;optimized;/usr/lib/arm-linux-gnueabihf/libplibpu.so;debug;/usr/lib/arm-linux-gnueabihf/libplibpu.so;optimized;/usr/lib/arm-linux-gnueabihf/libplibfnt.so;debug;/usr/lib/arm-linux-gnueabihf/libplibfnt.so;optimized;/usr/lib/arm-linux-gnueabihf/libplibsg.so;debug;/usr/lib/arm-linux-gnueabihf/libplibsg.so;optimized;/usr/lib/arm-linux-gnueabihf/libplibul.so;debug;/usr/lib/arm-linux-gnueabihf/libplibul.so 
-- Min Simgear version is 2019.1.0
CMake Error at CMakeLists.txt:356 (find_package):
  Could not find a package configuration file provided by "SimGear"
  (requested version 2019.1.0) with any of the following names:

    SimGearConfig.cmake
    simgear-config.cmake

  Add the installation prefix of "SimGear" to CMAKE_PREFIX_PATH or set
  "SimGear_DIR" to a directory containing one of the above files.  If
  "SimGear" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/flightgear/CMakeFiles/CMakeOutput.log".
See also "/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/flightgear/CMakeFiles/CMakeError.log".
MAKE flightgear
make: *** No targets specified and no makefile found.  Stop.
INSTALL flightgear
make: *** No rule to make target 'install'.  Stop.
***********************************
All optional package alternatives have found a matching package.

download_and_compile.sh has finished to work.




I am limited to the number of characters that can be posted, so let me know if more data is needed.

Thanks !
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby wkitty42 » Sat Feb 15, 2020 5:15 pm

Puffergas wrote:
Code: Select all
[ 41%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx: In member function ‘void simgear::canvas::ODGauge::allocRT(osg::NodeCallback*)’:
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: error: ‘GL_FOG’ was not declared in this scope
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/simgear/simgear/canvas/ODGauge.cxx:240:23: note: suggested alternative: ‘GL_RG’
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
                       GL_RG
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/build.make:505: simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1149: simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

your simgear isn't completing compilition... i can't tell why this is, though...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6494
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Sat Feb 15, 2020 6:32 pm

Here is the file "~/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeError.log" for SimGear. If it helps...

Code: Select all
Determining if the pthread_create exist failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_53d8c/fast"
/usr/bin/make -f CMakeFiles/cmTC_53d8c.dir/build.make CMakeFiles/cmTC_53d8c.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_53d8c.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_53d8c.dir/CheckSymbolExists.c.o   -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_53d8c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_53d8c.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_53d8c.dir/CheckSymbolExists.c.o  -o cmTC_53d8c
/usr/bin/ld: CMakeFiles/cmTC_53d8c.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x38): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_53d8c.dir/build.make:87: cmTC_53d8c] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_53d8c/fast] Error 2

File /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d6bd1/fast"
/usr/bin/make -f CMakeFiles/cmTC_d6bd1.dir/build.make CMakeFiles/cmTC_d6bd1.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d6bd1.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_d6bd1.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.13/Modules/CheckFunctionExists.c
Linking C executable cmTC_d6bd1
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d6bd1.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_d6bd1.dir/CheckFunctionExists.c.o  -o cmTC_d6bd1 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_d6bd1.dir/build.make:87: cmTC_d6bd1] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_d6bd1/fast] Error 2


Determining if the include file windows.h exists failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d3a26/fast"
/usr/bin/make -f CMakeFiles/cmTC_d3a26.dir/build.make CMakeFiles/cmTC_d3a26.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d3a26.dir/CheckIncludeFile.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_d3a26.dir/CheckIncludeFile.c.o   -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_d3a26.dir/build.make:66: CMakeFiles/cmTC_d3a26.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_d3a26/fast] Error 2


Determining if the function rint exists failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fa035/fast"
/usr/bin/make -f CMakeFiles/cmTC_fa035.dir/build.make CMakeFiles/cmTC_fa035.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fa035.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=rint   -o CMakeFiles/cmTC_fa035.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.13/Modules/CheckFunctionExists.c
<command-line>: warning: conflicting types for built-in function ‘rint’ [-Wbuiltin-declaration-mismatch]
/usr/share/cmake-3.13/Modules/CheckFunctionExists.c:7:3: note: in expansion of macro ‘CHECK_FUNCTION_EXISTS’
   CHECK_FUNCTION_EXISTS(void);
   ^~~~~~~~~~~~~~~~~~~~~
Linking C executable cmTC_fa035
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fa035.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=rint    -rdynamic CMakeFiles/cmTC_fa035.dir/CheckFunctionExists.c.o  -o cmTC_fa035
/usr/bin/ld: CMakeFiles/cmTC_fa035.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text+0x14): undefined reference to `rint'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_fa035.dir/build.make:87: cmTC_fa035] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_fa035/fast] Error 2


Performing C++ SOURCE FILE Test HAVE_STD_INDEX_SEQUENCE failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f2bff/fast"
/usr/bin/make -f CMakeFiles/cmTC_f2bff.dir/build.make CMakeFiles/cmTC_f2bff.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f2bff.dir/src.cxx.o
/usr/bin/c++    -Wall -fPIC -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -DHAVE_STD_INDEX_SEQUENCE   -std=gnu++11 -o CMakeFiles/cmTC_f2bff.dir/src.cxx.o -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:4:8: error: ‘make_index_sequence’ in namespace ‘std’ does not name a template type
   std::make_index_sequence<0> t;
        ^~~~~~~~~~~~~~~~~~~
make[1]: *** [CMakeFiles/cmTC_f2bff.dir/build.make:66: CMakeFiles/cmTC_f2bff.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_f2bff/fast] Error 2

Source file was:

  #include <utility>
  #include <type_traits>
  std::make_index_sequence<0> t;
  int main() {}
Performing C++ SOURCE FILE Test HAVE_STD_REMOVE_CV_T failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_48e71/fast"
/usr/bin/make -f CMakeFiles/cmTC_48e71.dir/build.make CMakeFiles/cmTC_48e71.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_48e71.dir/src.cxx.o
/usr/bin/c++    -Wall -fPIC -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -DHAVE_STD_REMOVE_CV_T   -std=gnu++11 -o CMakeFiles/cmTC_48e71.dir/src.cxx.o -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:8: error: ‘remove_cv_t’ in namespace ‘std’ does not name a template type
   std::remove_cv_t<const int> t;
        ^~~~~~~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:3: note: suggested alternative: ‘remove_cv’
   std::remove_cv_t<const int> t;
   ^~~
   remove_cv
make[1]: *** [CMakeFiles/cmTC_48e71.dir/build.make:66: CMakeFiles/cmTC_48e71.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_48e71/fast] Error 2

Source file was:

  #include <type_traits>
  std::remove_cv_t<const int> t;
  int main() {}
Performing C++ SOURCE FILE Test HAVE_STD_REMOVE_CVREF_T failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a6b41/fast"
/usr/bin/make -f CMakeFiles/cmTC_a6b41.dir/build.make CMakeFiles/cmTC_a6b41.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a6b41.dir/src.cxx.o
/usr/bin/c++    -Wall -fPIC -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -DHAVE_STD_REMOVE_CVREF_T   -std=gnu++11 -o CMakeFiles/cmTC_a6b41.dir/src.cxx.o -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:8: error: ‘remove_cvref_t’ in namespace ‘std’ does not name a template type
   std::remove_cvref_t<const int&> t;
        ^~~~~~~~~~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:3: note: suggested alternative: ‘remove_extent’
   std::remove_cvref_t<const int&> t;
   ^~~
   remove_extent
make[1]: *** [CMakeFiles/cmTC_a6b41.dir/build.make:66: CMakeFiles/cmTC_a6b41.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a6b41/fast] Error 2

Source file was:

  #include <type_traits>
  std::remove_cvref_t<const int&> t;
  int main() {}
Performing C++ SOURCE FILE Test HAVE_STD_ENABLE_IF_T failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a0401/fast"
/usr/bin/make -f CMakeFiles/cmTC_a0401.dir/build.make CMakeFiles/cmTC_a0401.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a0401.dir/src.cxx.o
/usr/bin/c++    -Wall -fPIC -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -DHAVE_STD_ENABLE_IF_T   -std=gnu++11 -o CMakeFiles/cmTC_a0401.dir/src.cxx.o -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:8: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
   std::enable_if_t<true, int> t;
        ^~~~~~~~~~~
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:3: note: suggested alternative: ‘enable_if’
   std::enable_if_t<true, int> t;
   ^~~
   enable_if
make[1]: *** [CMakeFiles/cmTC_a0401.dir/build.make:66: CMakeFiles/cmTC_a0401.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a0401/fast] Error 2

Source file was:

  #include <type_traits>
  std::enable_if_t<true, int> t;
  int main() {}
Performing C++ SOURCE FILE Test HAVE_STD_BOOL_CONSTANT failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_bf232/fast"
/usr/bin/make -f CMakeFiles/cmTC_bf232.dir/build.make CMakeFiles/cmTC_bf232.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_bf232.dir/src.cxx.o
/usr/bin/c++    -Wall -fPIC -Wno-unused-local-typedefs  -DBOOST_BIMAP_DISABLE_SERIALIZATION -DHAVE_STD_BOOL_CONSTANT   -std=gnu++11 -o CMakeFiles/cmTC_bf232.dir/src.cxx.o -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/src.cxx:3:8: error: ‘bool_constant’ in namespace ‘std’ does not name a template type
   std::bool_constant<true> t;
        ^~~~~~~~~~~~~
make[1]: *** [CMakeFiles/cmTC_bf232.dir/build.make:66: CMakeFiles/cmTC_bf232.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_bf232/fast] Error 2

Source file was:

  #include <type_traits>
  std::bool_constant<true> t;
  int main() {}
Determining if the include file windows.h exists failed with the following output:
Change Dir: /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_01d18/fast"
/usr/bin/make -f CMakeFiles/cmTC_01d18.dir/build.make CMakeFiles/cmTC_01d18.dir/build
make[1]: Entering directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_01d18.dir/CheckIncludeFile.c.o
/usr/bin/cc   -Wall -fPIC     -o CMakeFiles/cmTC_01d18.dir/CheckIncludeFile.c.o   -c /media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: windows.h: No such file or directory
 #include <windows.h>
          ^~~~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_01d18.dir/build.make:66: CMakeFiles/cmTC_01d18.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/dnc-managed/build/simgear/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_01d18/fast] Error 2




Thanks !
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby wkitty42 » Sat Feb 15, 2020 11:16 pm

i don't know anything about cmake... all i can do is point to that one error in your build log...

i do use the dnc script on my system but it is not a Pi... i also do not build stable... i build the next branch...

what was your exact dnc command line?
is this the first time you've tried to run it?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6494
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Sun Feb 16, 2020 12:12 am

I have tried it a number of times Then I deleted all my files to start over. This is a fresh start. Below was my last command:

/media/pi/d0ff7612-0674-42d4-a8cb-264aada71af1/Game/flightgear/fgmeta/download_and_compile.sh -j3 -s

Hmmm, maybe it should be from sudo.
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby wkitty42 » Sun Feb 16, 2020 2:33 pm

no, don't use sudo... dnc compiles for your user only...

for now, i'll suggest to try not building stable since there appears to be a problem in the code with it for your system... clean out your directories and try building next by dropping "-s" from your command line... you should also redownload fgdata so you have a matching set... FG, SG and FGData should all be the same version...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6494
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Sun Feb 16, 2020 3:29 pm

wkitty42 wrote in Sun Feb 16, 2020 2:33 pm:no, don't use sudo... dnc compiles for your user only...

FG, SG and FGData should all be the same version...



Sounds good. I'll also keep notes on what I do. Start by deleting my folders. This could take a week because I download at night when my bonus data is available, limited internet connection where I live.

Thanks !
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby wkitty42 » Sun Feb 16, 2020 3:38 pm

ouch! but good thing is that once you get one built, updates are a lot faster... building the unstable branch is like getting the nightlies so expect some bugs but you can use the latest craft, too ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 6494
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Download_and_compile.sh & Raspberry Pi4

Postby Hooray » Sun Feb 16, 2020 3:50 pm

this looks really interesting, it would be cool if this could be preserved by adding this to the FlightGear wiki. For starters, copy&paste will do - over time, adding a few screen shots would be great obviously. Also, this will make it possible for other Raspberry users to contribute to your article and help update it
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: 11836
Joined: Tue Mar 25, 2008 8:40 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby enrogue » Sun Feb 16, 2020 7:06 pm

I have FG compiling on my RPi4 running Ubuntu 64bit using the standard download & compile script - it just required a single patch to compile due to an issue with -fpic when linking sqlite (the error told me to change it to -fPIC):

Code: Select all
diff --git a/3rdparty/sqlite3/CMakeLists.txt b/3rdparty/sqlite3/CMakeLists.txt
index 8ddae70e3..88670f92f 100644
--- a/3rdparty/sqlite3/CMakeLists.txt
+++ b/3rdparty/sqlite3/CMakeLists.txt
@@ -2,4 +2,4 @@
 add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)
 add_definitions(-DNDEBUG)
 add_library(fgsqlite3 sqlite3.c)
-set_target_properties(fgsqlite3 PROPERTIES COMPILE_FLAGS "-fpic -fno-fast-math")
+set_target_properties(fgsqlite3 PROPERTIES COMPILE_FLAGS "-fPIC -fno-fast-math")


It runs OK in windowed (1280x800) mode with the default renderer - the Ubuntu install is using Mesa 20 from a special ppa
User avatar
enrogue
 
Posts: 246
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Mon Feb 17, 2020 2:18 am

I plan on documenting this some where. I guess the wiki would be OK. I'm kind of shy, not being a programmer... Maybe a non-programmer could understand how to explain it to other non-programmers.

wkitty42, well, less than a week.

enrogue, I did not see your code snip-it in download_and_compile, is it in another file.

Thanks ! (there is hope)
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Re: Download_and_compile.sh & Raspberry Pi4

Postby enrogue » Mon Feb 17, 2020 8:08 am

Puffergas: it's a patch to flightgear/3rdparty/sqlite3/CMakeLists.txt b/3rdparty/sqlite3/CMakeLists.txt

But from reading your thread on raspberrypi.org you're on Raspbian not Ubuntu right? So your error is different to mine - it looks like it's having issues finding Boost (windows.h), which should have been installed by the script unless it had issues downloading the packages it needed

I'm testing a compile on Raspbian now (it may take a while), I'll post my findings here

EDIT: that error actually looks normal as it doesn't find windows.h in the cmake output - I'm compiling simgear on it's own to see what breaks
User avatar
enrogue
 
Posts: 246
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Download_and_compile.sh & Raspberry Pi4

Postby enrogue » Mon Feb 17, 2020 9:57 am

OK so the simgear compile fails here:

Code: Select all
[ 50%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o
/home/work/fg/next/simgear/simgear/canvas/ODGauge.cxx: In member function ‘void simgear::canvas::ODGauge::allocRT(osg::NodeCallback*)’:
/home/work/fg/next/simgear/simgear/canvas/ODGauge.cxx:240:23: error: ‘GL_FOG’ was not declared in this scope
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
/home/work/fg/next/simgear/simgear/canvas/ODGauge.cxx:240:23: note: suggested alternative: ‘GL_RG’
     stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
                       ^~~~~~
                       GL_RG
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/build.make:505: simgear/CMakeFiles/SimGearScene.dir/canvas/ODGauge.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1152: simgear/CMakeFiles/SimGearScene.dir/all] Error 2
make: *** [Makefile:163: all] Error 2


This seems to be a known issue on armhf - there will probably be a workaround in the debian package for armhf
User avatar
enrogue
 
Posts: 246
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Download_and_compile.sh & Raspberry Pi4

Postby enrogue » Mon Feb 17, 2020 11:13 am

Out of interest I thought I would see if OpenSceneGraph 3.4 compiles from the d&c script:

Code: Select all
[ 13%] Building CXX object src/osgDB/CMakeFiles/osgDB.dir/ConvertBase64.cpp.o
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp: In function ‘int osgDB::base64_decode_value(char)’:
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
         static const char decoding[] = {62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-2,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,
11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,4
8,49,50,51};
                                                                                                                                 
                                                                                                                                 
          ^
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-2’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
/home/work/fg/next/openscenegraph/src/osgDB/ConvertBase64.cpp:31:270: error: narrowing conversion of ‘-1’ from ‘int’ to ‘
char’ inside { } [-Wnarrowing]
make[2]: *** [src/osgDB/CMakeFiles/osgDB.dir/build.make:167: src/osgDB/CMakeFiles/osgDB.dir/ConvertBase64.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:331: src/osgDB/CMakeFiles/osgDB.dir/all] Error 2
make: *** [Makefile:130: all] Error 2


I'm afraid I don't know enough to be able to tell whats going on at this point - there is an OSG 3.4 package in raspbian so they must patch it to get around this

EDIT: patches applied to debian package are here:

https://sources.debian.org/patches/open ... 1+dfsg1-5/
User avatar
enrogue
 
Posts: 246
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Download_and_compile.sh & Raspberry Pi4

Postby Puffergas » Mon Feb 17, 2020 2:32 pm

I was also looking at the ipthread errors in my above simgear file. Could be a bug in cmake fixed in version 3.14. Looks like I have version 3.13.4.

https://github.com/pytorch/pytorch/issues/9310

"As found by people (Matthias Urlichs, Sapiens) at https://stackoverflow.com/questions/319 ... -lpthreads, fixing cmake will not solve your real pytorch bug, instead it will give you a more useful error message about a missing package. In my case (Debian/stretch), after I did aptitude install libtbb-dev, I no longer get the apparent error of cannot find -lpthreads.

So your alternatives are either:

update to cmake 3.14 or more recent (according to @haiyang-tju #9204 this fixes the cmake bug); or
run your compile command in a proper log file, e.g. in bash, make 2>&1 |tee log.1 and after you've crashed, scroll from the top - less log.1 to find the first error, not the last cannot find -lpthreads error. Install the missing library(ies)."
Puffergas
 
Posts: 49
Joined: Thu Jan 02, 2020 1:09 am

Next

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest