progweb / gpx2video

Creating video with telemetry overlay from GPX data
GNU General Public License v3.0
187 stars 10 forks source link

[BUILD] macOS Big Sur build error has private copy constructor #25

Open L0stCluster opened 1 year ago

L0stCluster commented 1 year ago

Describe the build issue

I am trying to build a program on mac os, but I get the error: base class 'std::__1::ios_base' has private copy constructor

To Reproduce

Build the program as described in the README:

git clone https://github.com/progweb/gpx2video.git
mkdir gpx2video/build
cd gpx2video/build
cmake ..
make

Wait for 'make' to reach about 66% Error base class 'std::__1::ios_base' has private copy constructor

Build outputs

cmake output:

cmake ..
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libevent>=2.0.0'
--   Found libevent, version 2.1.12-stable
-- Checking for module 'libssl>=1.0.0'
--   Found libssl, version 3.1.2
-- Checking for module 'libcurl>=7.38.0'
--   Found libcurl, version 7.64.1
-- Checking for module 'libavutil>=3.0.0'
--   Found libavutil, version 58.2.100
-- Checking for module 'libavformat>=3.0.0'
--   Found libavformat, version 60.3.100
-- Checking for module 'libavcodec>=3.0.0'
--   Found libavcodec, version 60.3.100
-- Checking for module 'libavfilter>=3.0.0'
--   Found libavfilter, version 9.3.100
-- Checking for module 'libswresample>=2.0.0'
--   Found libswresample, version 4.10.100
-- Checking for module 'libswscale>=3.0.0'
--   Found libswscale, version 7.1.100
-- Checking for module 'geographiclib'
--   Found geographiclib, version 2.3
-- Checking for module 'freetype2'
--   Found freetype2, version 26.1.20
-- Checking for module 'cairo'
--   Found cairo, version 1.16.0
-- Found OpenImageIO: /usr/local/lib/libOpenImageIO.dylib;/usr/local/lib/libOpenImageIO_Util.dylib (found suitable version "2.4.15", minimum required is "2.1.12") 
-- Found EXPAT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/libexpat.tbd (found version "2.2.6") 
-- Configuring done
-- Generating done

make output

make
Scanning dependencies of target layoutlib
[  1%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Node.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  2%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Boolean.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  4%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Decimal.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  5%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/String.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  6%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Unsigned.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  8%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Map.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  9%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Track.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 10%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Widget.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 12%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Layout.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 13%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Parser.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 14%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/Report.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 16%] Building CXX object layoutlib/CMakeFiles/layoutlib.dir/ReportCerr.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 17%] Linking CXX static library liblayoutlib.a
[ 17%] Built target layoutlib
Scanning dependencies of target gpxlib
[ 18%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Node.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 20%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Decimal.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 21%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/DateTime.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 22%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/String.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 24%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Unsigned.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 25%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/DGPSStation.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 27%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Fix.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 28%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Degrees.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 29%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Longitude.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 31%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Latitude.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 32%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Bounds.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 33%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/PTSeg.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 35%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/PT.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 36%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/EMail.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 37%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Link.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 39%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Person.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 40%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/URI.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 41%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Copyright.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 43%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/TRKSeg.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 44%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Extensions.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 45%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/TRK.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 47%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/WPT.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 48%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/RTE.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 50%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Metadata.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 51%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/GPX.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 52%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Parser.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 54%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Writer.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 55%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Report.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 56%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/ReportCerr.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 58%] Building CXX object gpxlib/CMakeFiles/gpxlib.dir/Algorithm.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 59%] Linking CXX static library libgpxlib.a
[ 59%] Built target gpxlib
Scanning dependencies of target gpx2video
[ 60%] Building C object CMakeFiles/gpx2video.dir/src/log.c.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 62%] Building C object CMakeFiles/gpx2video.dir/src/evcurl.c.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:61:3: warning: 'SSL_CTX_set_ssl_version' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, SSLv23_client_method());
                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:1995:1: note: 'SSL_CTX_set_ssl_version' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:193:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:65:3: warning: 'SSL_CTX_set_ssl_version' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_client_method());
                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:1995:1: note: 'SSL_CTX_set_ssl_version' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:193:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:65:36: warning: 'TLSv1_client_method' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_client_method());
                                                 ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:2020:1: note: 'TLSv1_client_method' has been
      explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_client_method(void);
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:215:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:69:3: warning: 'SSL_CTX_set_ssl_version' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_1_client_method());
                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:1995:1: note: 'SSL_CTX_set_ssl_version' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:193:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:69:36: warning: 'TLSv1_1_client_method' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_1_client_method());
                                                 ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:2028:1: note: 'TLSv1_1_client_method' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_1_client_method(void);
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:215:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:73:3: warning: 'SSL_CTX_set_ssl_version' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_2_client_method());
                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:1995:1: note: 'SSL_CTX_set_ssl_version' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:193:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/Users/user/gopro_tmp/gpx2video/src/evcurl.c:73:36: warning: 'TLSv1_2_client_method' is deprecated
      [-Wdeprecated-declarations]
                SSL_CTX_set_ssl_version(context, TLSv1_2_client_method());
                                                 ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/ssl.h:2036:1: note: 'TLSv1_2_client_method' has
      been explicitly marked deprecated here
OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_2_client_method(void);
^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:215:49: note: expanded from macro
      'OSSL_DEPRECATEDIN_1_1_0'
#   define OSSL_DEPRECATEDIN_1_1_0              OSSL_DEPRECATED(1.1.0)
                                                ^
/usr/local/Cellar/openssl@3/3.1.2/include/openssl/macros.h:62:52: note: expanded from macro
      'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
7 warnings generated.
[ 63%] Building CXX object CMakeFiles/gpx2video.dir/src/evcurl++.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 64%] Building C object CMakeFiles/gpx2video.dir/src/kalman.c.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 66%] Building CXX object CMakeFiles/gpx2video.dir/src/gpx.cpp.o
clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
In file included from /Users/user/gopro_tmp/gpx2video/src/gpx.cpp:12:
In file included from /usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Geodesic.hpp:13:
In file included from /usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:87:
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Math.hpp:80:14: warning: deleted function
      definitions are a C++11 extension [-Wc++11-extensions]
    Math() = delete;            // Disable constructor
             ^
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Math.hpp:183:23: warning: default template
      arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T pi() {
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Math.hpp:193:23: warning: default template
      arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T degree() {
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Math.hpp:493:23: warning: default template
      arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T NaN();
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Math.hpp:501:23: warning: default template
      arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T infinity();
                      ^   ~~~~
In file included from /Users/user/gopro_tmp/gpx2video/src/gpx.cpp:12:
In file included from /usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Geodesic.hpp:13:
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:110:19: warning: deleted
      function definitions are a C++11 extension [-Wc++11-extensions]
    Constants() = delete;       // Disable constructor
                  ^
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:135:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T WGS84_a()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:141:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T WGS84_f() {
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:152:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T WGS84_GM()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:159:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T WGS84_omega()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:165:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T GRS80_a()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:172:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T GRS80_GM()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:186:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T GRS80_omega()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:193:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T GRS80_J2()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:199:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T UTM_k0()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:205:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T UPS_k0()
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:219:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T meter() { return T(1); }
                      ^   ~~~~
/usr/local/Cellar/geographiclib/2.3/include/GeographicLib/Constants.hpp:239:23: warning: default
      template arguments for a function template are a C++11 extension [-Wc++11-extensions]
    template<typename T = real> static T square_meter()
                      ^   ~~~~
In file included from /Users/user/gopro_tmp/gpx2video/src/gpx.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/fstream:184:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:139:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/streambuf:493:64: error: 
      base class 'std::__1::ios_base' has private copy constructor
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_ios<char>)
                                                               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:145:32: note: 
      in implicit copy constructor for 'std::__1::basic_ios<char>' first required here
    class _LIBCPP_TEMPLATE_VIS basic_ifstream;
                               ^
/Users/user/gopro_tmp/gpx2video/src/gpx.cpp:554:28: note: in implicit copy constructor for
      'std::__1::basic_ifstream<char, std::__1::char_traits<char> >' first required here
    std::ifstream stream = std::ifstream(filename);
                           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:313:5: note: 
      declared private here
    ios_base(const ios_base&); // = delete;
    ^
/Users/user/gopro_tmp/gpx2video/src/gpx.cpp:761:57: warning: format specifies type 'long' but the
      argument has type 'int64_t' (aka 'long long') [-Wformat]
        log_debug("retrieve next timestamp: %ld (filter: %d)", timestamp, filter_);
                                            ~~~                ^~~~~~~~~
                                            %lld
/Users/user/gopro_tmp/gpx2video/src/log.h:85:34: note: expanded from macro 'log_debug'
        log_debug_raw(format, ## __VA_ARGS__);  \
                      ~~~~~~     ^~~~~~~~~~~
/Users/user/gopro_tmp/gpx2video/src/log.h:32:47: note: expanded from macro 'log_debug_raw'
            __PRETTY_FUNCTION__, __LINE__, ## __VA_ARGS__)
                                              ^~~~~~~~~~~
In file included from /Users/user/gopro_tmp/gpx2video/src/gpx.cpp:19:
/Users/user/gopro_tmp/gpx2video/src/gpx.h:297:20: warning: private field 'stream_' is not used
      [-Wunused-private-field]
    std::ifstream &stream_;
                   ^
20 warnings and 1 error generated.
make[2]: *** [CMakeFiles/gpx2video.dir/src/gpx.cpp.o] Error 1
make[1]: *** [CMakeFiles/gpx2video.dir/all] Error 2
make: *** [all] Error 2

MacBook Air (13-inch, Early 2015:

Additional context

progweb commented 1 year ago

Issue seems to be in geographiclib