MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
356 stars 90 forks source link

build instructions don't work #206

Open coreybruce opened 3 years ago

coreybruce commented 3 years ago

Hi there I tried to build the game from source using the build instructions from the website but ran into this issue.

I am building on Manjaro Arm64

[corey@manjaro-pi build]$ cmake ../../..
CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- CMAKE_SOURCE_DIR = /run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0
-- Build type for this compile will be: Release
-- Determining version number system type to use:
-- ** Trying 3 part versioning 
-- Detected MegaGlest Version is [v3.13.0] 
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- *NOTE: using SOFT emulation for STREFLOP.
-- Found GCC backtrace lib, will support backtraces
-- *NOTE: Custom Data Install Path is [/usr/local/share/megaglest/]
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -O3 -DNDEBUG -O3  -DCUSTOM_DATA_INSTALL_PATH=/usr/local/share/megaglest/
-- **Found game source code.
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- Will try to build MegaGlest shared library
-- CURL RET = 0 libs: [/usr/lib/libcurl.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lzstd -lz -pthread]
-- #2 CURL RET = 0, using CURL static libs
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:109 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:135 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- **NOTE: FontConfig support was detected and enabled.
-- ** FTGL lib ALREADY FOUND in: [/usr/lib/libftgl.so]
-- Found FTGL libraries at /usr/lib/libftgl.so and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- LIBVLC version: 
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- ** Searching for library: FriBiDi...
-- Using FriBiDi: /usr/lib/libfribidi.so
-- BREAKPAD_ROOT=/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/../../google-breakpad/ Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- Looking for miniupnpc...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (MINIUPNP)
  does not match the name of the calling package (Miniupnpc).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindMiniupnpc.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:291 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found miniupnpc version is v1.7 or higher
-- *** Using miniupnpc lib found in [/usr/include/miniupnpc] MINIUPNP_FOUND [TRUE] MINIUPNP_LIBRARY [/usr/lib/libminiupnpc.so]
-- **No macros required for miniupnpc version
-- *** Searching for libircclient since WANT_STATIC_LIBS is: ON ...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (IRCCLIENT)
  does not match the name of the calling package (Ircclient).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindIrcclient.cmake:70 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:369 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found IRCClient include path: /usr/include/libircclient libs: /usr/lib/libircclient.so
-- *** Using libircclient found in [/usr/include/libircclient] IRCCLIENT_FOUND [TRUE] IRCCLIENT_LIBRARY [/usr/lib/libircclient.so]
-- EXTERNAL_LIBS = [-Bstatic /usr/lib/libcurl.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lzstd -lz -pthread;/usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread;/usr/lib/libGL.so;/usr/lib/libGLU.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libopenal.so;/usr/lib/liblua5.3.so;/usr/lib/libm.so;dl;/usr/lib/libjpeg.so;/usr/lib/libpng.so;/usr/lib/libfontconfig.so;/usr/lib/libftgl.so;/usr/lib/libfreetype.so;/usr/lib/libGLEW.so;/usr/lib/libfribidi.so;glib-2.0;/usr/lib/libminiupnpc.so;/usr/lib/libircclient.so]
-- Will try to build MegaGlest game
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_game/CMakeLists.txt:38 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/glest_game/CMakeLists.txt:67 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- CURL RET = 0 libs: [/usr/lib/libcurl.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lzstd -lz -pthread]
-- #2 CURL RET = 0, using CURL static libs
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for the MegaGlest engine will be [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/]
-- BREAKPAD_ROOT=/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/../../google-breakpad/ Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/megaglest.6]
-- **Source package INSTALL TRIGGERED [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0]
-- **NOTE: Will Install manpage [megaglest.6] to [share/man/man6/]
-- Will try to build MegaGlest map editor
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_map_editor/CMakeLists.txt:23 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

--  wxWidgets: /usr/lib/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0 ;/;  -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for MegaGlest Map Editor will be [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/]
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/megaglest_editor.6]
-- **NOTE: Will Install manpage [megaglest_editor.6] to [share/man/man6/]
-- Will try to build MegaGlest model viewer
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/g3d_viewer/CMakeLists.txt:23 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- GLEW_LIBRARY: /usr/lib/libGLEW.so
--  wxWidgets: /usr/lib/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0 ;/;  -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for MegaGlest G3d Viewer will be [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/]
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/megaglest_g3dviewer.6]
-- **NOTE: Will Install manpage [megaglest_g3dviewer.6] to [share/man/man6/]
-- Will try to build MegaGlest model import/export tools
-- Will try to build MegaGlest unit tests
CMake Error at mk/cmake/Modules/FindCppUnit.cmake:85 (message):
  Could not find CppUnit
Call Stack (most recent call first):
  source/tests/CMakeLists.txt:12 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/CMakeFiles/CMakeOutput.log".
See also "/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/CMakeFiles/CMakeError.log".
[corey@manjaro-pi build]$ cmake ../../..
CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SOURCE_DIR = /run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0
-- Build type for this compile will be: RelWithDebInfo
-- Determining version number system type to use:
-- ** Trying 3 part versioning 
-- Detected MegaGlest Version is [v3.13.0] 
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Failed
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Failed
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Failed
-- Performing Test HAS_X87_SUPPORT
-- Performing Test HAS_X87_SUPPORT - Failed
-- *NOTE: using SOFT emulation for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- Found Git: /usr/bin/git (found version "2.31.1") 
-- *NOTE: Custom Data Install Path is [/usr/local/share/megaglest/]
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -O2 -g -DNDEBUG -g -O3  -DCUSTOM_DATA_INSTALL_PATH=/usr/local/share/megaglest/
-- **Found game source code.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- Will try to build MegaGlest shared library
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1k")  
-- Found CURL: /usr/lib/libcurl.so (found version "7.76.0")  
-- #2 CURL RET = 0, using CURL dynamic libs: -lcurl
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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  
-- Found SDL2: /usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread  
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:109 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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 OpenAL: /usr/lib/libopenal.so  
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:135 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Lua: /usr/lib/liblua5.3.so;/usr/lib/libm.so (found version "5.3.6") 
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.4") 
-- Found FTGL libraries at /usr/lib/libftgl.so and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- Found GLEW: /usr/include  
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- LIBVLC version: 
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- ** Searching for library: FriBiDi...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GLIB2).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
  mk/cmake/Modules/FindGLIB2.cmake:31 (INCLUDE)
  mk/cmake/Modules/FindFriBiDi.cmake:47 (FIND_PACKAGE)
  source/shared_lib/CMakeLists.txt:235 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/glib-2.0/include
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/CheckIncludeFiles.cmake:122 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    /usr/lib/libfribidi.so

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  mk/cmake/Modules/FindGLIB2.cmake:215 (CHECK_INCLUDE_FILES)
  mk/cmake/Modules/FindFriBiDi.cmake:47 (FIND_PACKAGE)
  source/shared_lib/CMakeLists.txt:235 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Looking for fribidi_utf8_to_unicode in fribidi
-- Looking for fribidi_utf8_to_unicode in fribidi - not found
-- Looking for fribidi_charset_to_unicode in fribidi
-- Looking for fribidi_charset_to_unicode in fribidi - found
-- Using FriBiDi: /usr/lib/libfribidi.so
-- BREAKPAD_ROOT= Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- Looking for miniupnpc...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (MINIUPNP)
  does not match the name of the calling package (Miniupnpc).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindMiniupnpc.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:291 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MINIUPNP: /usr/lib/libminiupnpc.so  
-- Found the miniupnpc headers at /usr/include/miniupnpc
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER - Success
-- Found miniupnpc version is v1.7 or higher
-- *** Using miniupnpc lib found in [/usr/include/miniupnpc] MINIUPNP_FOUND [TRUE] MINIUPNP_LIBRARY [/usr/lib/libminiupnpc.so]
-- **No macros required for miniupnpc version
-- *** Searching for libircclient since WANT_STATIC_LIBS is: OFF ...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (IRCCLIENT)
  does not match the name of the calling package (Ircclient).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindIrcclient.cmake:70 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:369 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found IRCCLIENT: /usr/lib/libircclient.so  
-- Found IRCClient include path: /usr/include/libircclient libs: /usr/lib/libircclient.so
-- *** Using libircclient found in [/usr/include/libircclient] IRCCLIENT_FOUND [TRUE] IRCCLIENT_LIBRARY [/usr/lib/libircclient.so]
-- Performing Test HAS_LIBIRCCLIENT_1_6
-- Performing Test HAS_LIBIRCCLIENT_1_6 - Success
-- Found HAS_LIBIRCCLIENT_1_6: 1
-- EXTERNAL_LIBS = [-lcurl;/usr/lib/libssl.so;/usr/lib/libcrypto.so;/usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread;/usr/lib/libGL.so;/usr/lib/libGLU.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libopenal.so;/usr/lib/liblua5.3.so;/usr/lib/libm.so;dl;/usr/lib/libjpeg.so;/usr/lib/libpng.so;/usr/lib/libfontconfig.so;/usr/lib/libftgl.so;/usr/lib/libfreetype.so;/usr/lib/libGLEW.so;/usr/lib/libfribidi.so;glib-2.0;/usr/lib/libminiupnpc.so;/usr/lib/libircclient.so]
-- Will try to build MegaGlest game
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_game/CMakeLists.txt:38 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- OGG/Vorbis includes: /usr/include
-- OGG library        : /usr/lib/libogg.so
-- Vorbis library     : /usr/lib/libvorbis.so
-- Vorbis file library: /usr/lib/libvorbisfile.so
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/glest_game/CMakeLists.txt:67 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- #2 CURL RET = 0, using CURL dynamic libs: -lcurl
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for the MegaGlest engine will be []
-- BREAKPAD_ROOT= Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/build/source/glest_game/megaglest.6]
-- **Source package INSTALL TRIGGERED [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0]
-- **NOTE: Will Install manpage [megaglest.6] to [share/man/man6/]
-- Will try to build MegaGlest map editor
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_map_editor/CMakeLists.txt:23 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.20/Modules/FindwxWidgets.cmake:1025 (find_package_handle_standard_args)
  source/glest_map_editor/CMakeLists.txt:29 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/build/CMakeFiles/CMakeOutput.log".
See also "/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/mk/linux/build/CMakeFiles/CMakeError.log".

So I looked at the Arch pkgbuild file as a reference and tried their cmake instructions but ran into some issues so this is the cmake argument I used to get it working in the root build folder instead of build in /mx/linux/build

[corey@manjaro-pi megaglest-3.13.0]$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-lX11 ${CXXFLAGS}" -DWANT_GIT_STAMP=0 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 -DENABLE_TESTS=TRUE
CMake Error: The source directory "/run/media/corey/47F22DEE70C10570/projects" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
[corey@manjaro-pi megaglest-3.13.0]$ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-lX11 ${CXXFLAGS}" -DWANT_GIT_STAMP=0 -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 -DENABLE_TESTS=TRUE
CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SOURCE_DIR = /run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0
-- Build type for this compile will be: Release
-- Determining version number system type to use:
-- ** Trying 3 part versioning 
-- Detected MegaGlest Version is [v3.13.0] 
-- Detected GNUC Compiler...
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Failed
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Failed
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Failed
-- Performing Test HAS_X87_SUPPORT
-- Performing Test HAS_X87_SUPPORT - Failed
-- *NOTE: using SOFT emulation for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- *NOTE: Custom Data Install Path is [/usr/share/megaglest/]
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -O3 -DNDEBUG -O3  -DCUSTOM_DATA_INSTALL_PATH=/usr/share/megaglest/
-- **Found game source code.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3") 
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- Will try to build MegaGlest shared library
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1k")  
-- Found CURL: /usr/lib/libcurl.so (found version "7.76.0")  
-- #2 CURL RET = 0, using CURL dynamic libs: -lcurl
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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  
-- Found SDL2: /usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread  
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:109 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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 OpenAL: /usr/lib/libopenal.so  
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:135 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Lua: /usr/lib/liblua5.3.so;/usr/lib/libm.so (found version "5.3.6") 
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.10.4") 
-- Found FTGL libraries at /usr/lib/libftgl.so and includes at /usr/include
-- **NOTE: FTGL font support was detected and enabled.
-- Found GLEW: /usr/include  
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- LIBVLC version: 
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- ** Searching for library: FriBiDi...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GLIB2).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.20/Modules/FindPkgConfig.cmake:70 (find_package_handle_standard_args)
  mk/cmake/Modules/FindGLIB2.cmake:31 (INCLUDE)
  mk/cmake/Modules/FindFriBiDi.cmake:47 (FIND_PACKAGE)
  source/shared_lib/CMakeLists.txt:235 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/glib-2.0/include
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/CheckIncludeFiles.cmake:122 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    /usr/lib/libfribidi.so

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  mk/cmake/Modules/FindGLIB2.cmake:215 (CHECK_INCLUDE_FILES)
  mk/cmake/Modules/FindFriBiDi.cmake:47 (FIND_PACKAGE)
  source/shared_lib/CMakeLists.txt:235 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Looking for fribidi_utf8_to_unicode in fribidi
-- Looking for fribidi_utf8_to_unicode in fribidi - not found
-- Looking for fribidi_charset_to_unicode in fribidi
-- Looking for fribidi_charset_to_unicode in fribidi - found
-- Using FriBiDi: /usr/lib/libfribidi.so
-- BREAKPAD_ROOT= Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- Looking for miniupnpc...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (MINIUPNP)
  does not match the name of the calling package (Miniupnpc).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindMiniupnpc.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:291 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found MINIUPNP: /usr/lib/libminiupnpc.so  
-- Found the miniupnpc headers at /usr/include/miniupnpc
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER - Success
-- Found miniupnpc version is v1.7 or higher
-- *** Using miniupnpc lib found in [/usr/include/miniupnpc] MINIUPNP_FOUND [TRUE] MINIUPNP_LIBRARY [/usr/lib/libminiupnpc.so]
-- **No macros required for miniupnpc version
-- *** Searching for libircclient since WANT_STATIC_LIBS is: OFF ...
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (IRCCLIENT)
  does not match the name of the calling package (Ircclient).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindIrcclient.cmake:70 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:369 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found IRCCLIENT: /usr/lib/libircclient.so  
-- Found IRCClient include path: /usr/include/libircclient libs: /usr/lib/libircclient.so
-- *** Using libircclient found in [/usr/include/libircclient] IRCCLIENT_FOUND [TRUE] IRCCLIENT_LIBRARY [/usr/lib/libircclient.so]
-- Performing Test HAS_LIBIRCCLIENT_1_6
-- Performing Test HAS_LIBIRCCLIENT_1_6 - Success
-- Found HAS_LIBIRCCLIENT_1_6: 1
-- EXTERNAL_LIBS = [-lcurl;/usr/lib/libssl.so;/usr/lib/libcrypto.so;/usr/lib/libSDL2main.a;/usr/lib/libSDL2.so;-lpthread;/usr/lib/libGL.so;/usr/lib/libGLU.so;/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libopenal.so;/usr/lib/liblua5.3.so;/usr/lib/libm.so;dl;/usr/lib/libjpeg.so;/usr/lib/libpng.so;/usr/lib/libfontconfig.so;/usr/lib/libftgl.so;/usr/lib/libfreetype.so;/usr/lib/libGLEW.so;/usr/lib/libfribidi.so;glib-2.0;/usr/lib/libminiupnpc.so;/usr/lib/libircclient.so]
-- Will try to build MegaGlest game
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_game/CMakeLists.txt:38 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- OGG/Vorbis includes: /usr/include
-- OGG library        : /usr/lib/libogg.so
-- Vorbis library     : /usr/lib/libvorbis.so
-- Vorbis file library: /usr/lib/libvorbisfile.so
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/glest_game/CMakeLists.txt:67 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- #2 CURL RET = 0, using CURL dynamic libs: -lcurl
-- GLEW_LIBRARY: /usr/lib/libGLEW.so
-- Checking for module 'libvlc'
--   Package 'libvlc', required by 'virtual:world', not found
-- Found LibVLC include-dir path: [LIBVLC_INCLUDE_DIR-NOTFOUND]
-- Found LibVLC library path: [LIBVLC_LIBRARY-NOTFOUND]
-- Found LibVLCcore library path: [LIBVLCCORE_LIBRARY-NOTFOUND]
-- **WARNING: LIBVLC NOT found so videos are NOT supported.
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for the MegaGlest engine will be []
-- BREAKPAD_ROOT= Operating system: linux
-- BREAKPAD_INCLUDE_DIR=BREAKPAD_INCLUDE_DIR-NOTFOUND
-- ** WARNING: Could not find GoogleBreakpad. Disabling GoogleBreakpad support.
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/megaglest.6]
-- **Source package INSTALL TRIGGERED [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0]
-- **NOTE: Will Install manpage [megaglest.6] to [share/man/man6/]
-- Will try to build MegaGlest map editor
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/glest_map_editor/CMakeLists.txt:23 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found wxWidgets: -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0 (found version "3.0.5") 
--  wxWidgets: /usr/lib/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0 ;/;  -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for MegaGlest Map Editor will be [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_map_editor/]
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_map_editor/megaglest_editor.6]
-- **NOTE: Will Install manpage [megaglest_editor.6] to [share/man/man6/]
-- Will try to build MegaGlest model viewer
CMake Warning (dev) at /usr/share/cmake-3.20/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/g3d_viewer/CMakeLists.txt:23 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- GLEW_LIBRARY: /usr/lib/libGLEW.so
--  wxWidgets: /usr/lib/wx/include/gtk3-unicode-3.0;/usr/include/wx-3.0 ;/;  -pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu-3.0
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- ***Note: The final output path for MegaGlest G3d Viewer will be [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/g3d_viewer/]
-- ***-- Found help2man: /usr/bin/help2man about to build manpage in [/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/g3d_viewer/megaglest_g3dviewer.6]
-- **NOTE: Will Install manpage [megaglest_g3dviewer.6] to [share/man/man6/]
-- Will try to build MegaGlest model import/export tools
-- Found LibXml2: /usr/lib/libxml2.so (found version "2.9.10") 
-- =====> Found Define: STREFLOP_SOFT
-- =====> Found Define: HAS_GCC_BACKTRACE
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_TESTS

-- Build files have been written to: /run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0

I got cmake to work but when I tried to build I ran into this issue

[corey@manjaro-pi megaglest-3.13.0]$ make -j4
[  0%] Building C object source/tools/glexemel/CMakeFiles/g2xml.dir/g2xml.c.o
[  0%] Building C object source/tools/glexemel/CMakeFiles/xml2g.dir/xml2g.c.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acoshf.cpp.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acosf.cpp.o
[  1%] Linking C executable g2xml
[  2%] Linking C executable xml2g
[  2%] Built target g2xml
[  2%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_asinf.cpp.o
[  2%] Built target xml2g
[  3%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atan2f.cpp.o
[  3%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atanhf.cpp.o
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_coshf.cpp.o
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_exp2f.cpp.o
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_expf.cpp.o
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_fmodf.cpp.o
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_gammaf_r.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_hypotf.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j0f.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j1f.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_lgammaf_r.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log10f.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log2f.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_logf.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_powf.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_rem_pio2f.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_remainderf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sinhf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sqrtf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_cosf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_rem_pio2f.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_sinf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_tanf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_asinhf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_atanf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cbrtf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ceilf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_copysignf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cosf.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_expm1f.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_erff.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fabsf.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_finitef.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_floorf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fpclassifyf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_frexpf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ilogbf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isinff.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isnanf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ldexpf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llrintf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llroundf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_log1pf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_logbf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lrintf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lroundf.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_modff.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nearbyintf.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nextafterf.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_remquof.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_rintf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_roundf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalblnf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalbnf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_signbitf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sincosf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sinf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanhf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_truncf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/w_expf.cpp.o
[ 28%] Linking CXX static library libstreflop.a
[ 28%] Built target streflop
[ 28%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpAccount.c.o
[ 29%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpCmds.c.o
[ 29%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpLib.c.o
[ 30%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/compression/compression_utils.cpp.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpMessages.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpRuntime.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpServer.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpSession.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetPosix.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetWin32.c.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/BMPReader.cpp.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/FileReader.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/ImageReaders.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/JPGReader.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/PNGReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/TGAReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/buffer.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/camera.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/context.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_manager.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_text.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/graphics_interface.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/interpolation.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model_manager.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/particle.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/pixmap.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/quaternion.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/shader.cpp.o
[ 41%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/shader_manager.cpp.o
[ 41%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/texture.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/texture_manager.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/video_player.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/base_renderer.cpp.o
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/context_gl.cpp.o
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/font_gl.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/font_textFTGL.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/model_gl.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/model_renderer_gl.cpp.o
[ 45%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/opengl.cpp.o
[ 45%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/particle_renderer_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/shader_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/text_renderer_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/texture_gl.cpp.o
[ 47%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/lua/lua_script.cpp.o
[ 47%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/map/map_preview.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/base_thread.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/byte_order.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/cache_manager.cpp.o
[ 49%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/platform_common.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp: In destructor ‘virtual Shared::PlatformCommon::BaseThread::~BaseThread()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp:95:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
   95 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp:95:3: note: in C++11 destructors default to ‘noexcept’
[ 49%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/simple_threads.cpp.o
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound.cpp.o
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_file_loader.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp: In destructor ‘virtual Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp:447:9: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  447 |         throw megaglest_runtime_error(ex.what());
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp:447:9: note: in C++11 destructors default to ‘noexcept’
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_interface.cpp.o
[ 51%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_player.cpp.o
[ 51%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/openal/sound_player_openal.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/checksum.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/conversion.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/leak_dumper.cpp.o
[ 53%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/profiler.cpp.o
[ 53%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/properties.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/randomgen.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/string_utils.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/util.cpp.o
[ 55%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/xml/xml_parser.cpp.o
[ 55%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/Random.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/SMath.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/SoftFloatWrapper.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/streflopC.cpp.o
[ 57%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/softfloat/softfloat.cpp.o
[ 57%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/factory_repository.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::floatx80 streflop::SoftFloat::roundAndPackFloatx80(streflop::SoftFloat::int8, streflop::SoftFloat::flag, streflop::SoftFloat::int32, streflop::SoftFloat::bits64, streflop::SoftFloat::bits64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:670:16: warning: comparison of integer expressions of different signedness: ‘streflop::SoftFloat::bits64’ {aka ‘long unsigned int’} and ‘streflop::SoftFloat::int64’ {aka ‘long int’} [-Wsign-compare]
  670 |     if ( zSig0 < roundIncrement ) {
      |          ~~~~~~^~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::float32 streflop::SoftFloat::int64_to_float32(long long int)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:1159:12: warning: unused variable ‘zSig’ [-Wunused-variable]
 1159 |     bits32 zSig;
      |            ^~~~
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/gl_wrap.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::flag streflop::SoftFloat::float32_le_quiet(streflop::SoftFloat::float32, streflop::SoftFloat::float32)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2132:11: warning: unused variable ‘aExp’ [-Wunused-variable]
 2132 |     int16 aExp, bExp;
      |           ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2132:17: warning: unused variable ‘bExp’ [-Wunused-variable]
 2132 |     int16 aExp, bExp;
      |                 ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::float64 streflop::SoftFloat::float64_sqrt(streflop::SoftFloat::float64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2914:13: warning: unused variable ‘z’ [-Wunused-variable]
 2914 |     float64 z;
      |             ^
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::flag streflop::SoftFloat::float64_le_quiet(streflop::SoftFloat::float64, streflop::SoftFloat::float64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:3052:11: warning: unused variable ‘aExp’ [-Wunused-variable]
 3052 |     int16 aExp, bExp;
      |           ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:3052:17: warning: unused variable ‘bExp’ [-Wunused-variable]
 3052 |     int16 aExp, bExp;
      |                 ^~~~
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/platform_util.cpp.o
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/thread.cpp.o
[ 59%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/window.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Mutex::~Mutex()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:519:4: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  519 |    throw megaglest_runtime_error(szBuf);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:519:4: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:529:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  529 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:529:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:535:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  535 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:535:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Semaphore::~Semaphore()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:619:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  619 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:619:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Trigger::~Trigger()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:739:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  739 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:739:3: note: in C++11 destructors default to ‘noexcept’
[ 59%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/window_gl.cpp.o
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/ircclient.cpp.o
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpclient.cpp.o
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpserver.cpp.o
[ 61%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/socket.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp: In function ‘void Shared::PlatformCommon::dump_event(irc_session_t*, const char*, const char*, const char**, unsigned int)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81:11: warning: ‘char* strncat(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
   81 |   strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81:49: note: length computed here
   81 |   strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |                                           ~~~~~~^~~~~~~~~~~~~
[ 61%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/unix/gl_wrap.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp: In static member function ‘static std::vector<std::__cxx11::basic_string<char> > Shared::Platform::Socket::getLocalIPAddressList()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:746:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  746 |    strncpy(ifr.ifr_name, szBuf, maxIfNameLength);
      |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:744:46: note: length computed here
  744 |    int maxIfNameLength = std::min((int)strlen(szBuf),IFNAMSIZ-1);
      |                                        ~~~~~~^~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:748:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  748 |    strncpy(ifrA.ifr_name, szBuf, maxIfNameLength);
      |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:744:46: note: length computed here
  744 |    int maxIfNameLength = std::min((int)strlen(szBuf),IFNAMSIZ-1);
      |                                        ~~~~~~^~~~~~~
[ 62%] Linking CXX static library liblibmegaglest.a
[ 62%] Built target libmegaglest
[ 62%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/main.cpp.o
[ 63%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/__/glest_game/global/config.cpp.o
[ 63%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/graphics/particle_type.cpp.o
[ 63%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/graphics/unit_particle_type.cpp.o
[ 64%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/program.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/global/config.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/main.cpp.o
[ 64%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai_interface.cpp.o
[ 65%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/renderer.cpp.o
[ 66%] Linking CXX executable megaglest_editor
[ 66%] Built target megaglest_editor
[ 66%] Built target megaglest_editor.6
[ 67%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai_rule.cpp.o
[ 67%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/path_finder.cpp.o
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/auto_test.cpp.o
[ 68%] Linking CXX executable megaglest_g3dviewer
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/components.cpp.o
[ 68%] Built target megaglest_g3dviewer
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/game_util.cpp.o
[ 68%] Built target megaglest_g3dviewer.6
[ 69%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/logger.cpp.o
[ 69%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/chat_manager.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/commander.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/console.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/game.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/game_camera.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/script_manager.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/stats.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/config.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/core_data.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/lang.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/metrics.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/particle_type.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/renderer.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/unit_particle_type.cpp.o
[ 75%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/display.cpp.o
[ 75%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/gui.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/selection.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp: In destructor ‘virtual Glest::Game::Renderer::~Renderer()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:353:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  353 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:353:3: note: in C++11 destructors default to ‘noexcept’
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/battle_end.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/intro.cpp.o
[ 77%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/main.cpp.o
[ 77%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/program.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/main_menu.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_background.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_about.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_connected_game.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_custom_game.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_graphic_info.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_join_game.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_keysetup.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_load_game.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_masterserver.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_mods.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_new_game.cpp.o
^Cmake[2]: *** [source/glest_game/CMakeFiles/megaglest.dir/build.make:524: source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_connected_game.cpp.o] Interrupt
make[2]: *** [source/glest_game/CMakeFiles/megaglest.dir/build.make:608: source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_masterserver.cpp.o] Interrupt
make[2]: *** [source/glest_game/CMakeFiles/megaglest.dir/build.make:622: source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_mods.cpp.o] Interrupt
make[2]: *** [source/glest_game/CMakeFiles/megaglest.dir/build.make:636: source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_new_game.cpp.o] Interrupt
make[1]: *** [CMakeFiles/Makefile2:292: source/glest_game/CMakeFiles/megaglest.dir/all] Interrupt
make: *** [Makefile:156: all] Interrupt

[corey@manjaro-pi megaglest-3.13.0]$ make clean
[corey@manjaro-pi megaglest-3.13.0]$ mkdir build
[corey@manjaro-pi megaglest-3.13.0]$ cd build
[corey@manjaro-pi build]$ make .. -j4
make: Nothing to be done for '..'.
[corey@manjaro-pi build]$ make ../ -j4
make: Nothing to be done for '../'.
[corey@manjaro-pi build]$ cd ..
[corey@manjaro-pi megaglest-3.13.0]$ make -j4
[  0%] Building C object source/tools/glexemel/CMakeFiles/xml2g.dir/xml2g.c.o
[  0%] Building C object source/tools/glexemel/CMakeFiles/g2xml.dir/g2xml.c.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acosf.cpp.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acoshf.cpp.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_asinf.cpp.o
[  2%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atan2f.cpp.o
[  2%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atanhf.cpp.o
[  3%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_coshf.cpp.o
[  3%] Linking C executable g2xml
[  3%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_exp2f.cpp.o
[  4%] Linking C executable xml2g
[  4%] Built target g2xml
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_expf.cpp.o
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_fmodf.cpp.o
[  5%] Built target xml2g
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_gammaf_r.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_hypotf.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j0f.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j1f.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_lgammaf_r.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log10f.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log2f.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_logf.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_powf.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_rem_pio2f.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_remainderf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sinhf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sqrtf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_cosf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_rem_pio2f.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_sinf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_tanf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_asinhf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_atanf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cbrtf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ceilf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_copysignf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cosf.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_erff.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_expm1f.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fabsf.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_finitef.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_floorf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fpclassifyf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_frexpf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ilogbf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isinff.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isnanf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ldexpf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llrintf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llroundf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_log1pf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_logbf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lrintf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lroundf.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_modff.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nearbyintf.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nextafterf.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_remquof.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_rintf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_roundf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalblnf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalbnf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_signbitf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sincosf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sinf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanhf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_truncf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/w_expf.cpp.o
[ 28%] Linking CXX static library libstreflop.a
[ 28%] Built target streflop
[ 29%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpAccount.c.o
[ 29%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/compression/compression_utils.cpp.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpCmds.c.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpLib.c.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpMessages.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpRuntime.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpServer.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpSession.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetPosix.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetWin32.c.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/BMPReader.cpp.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/FileReader.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/ImageReaders.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/JPGReader.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/PNGReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/TGAReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/buffer.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/camera.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/context.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_manager.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_text.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/graphics_interface.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/interpolation.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/model_manager.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/particle.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/pixmap.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/quaternion.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/shader.cpp.o
[ 41%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/shader_manager.cpp.o
[ 41%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/texture.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/texture_manager.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/video_player.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/base_renderer.cpp.o
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/context_gl.cpp.o
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/font_gl.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/font_textFTGL.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/model_gl.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/model_renderer_gl.cpp.o
[ 45%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/opengl.cpp.o
[ 45%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/particle_renderer_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/shader_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/text_renderer_gl.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/gl/texture_gl.cpp.o
[ 47%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/lua/lua_script.cpp.o
[ 47%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/map/map_preview.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/base_thread.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/byte_order.cpp.o
[ 48%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/cache_manager.cpp.o
[ 49%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/platform_common.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp: In destructor ‘virtual Shared::PlatformCommon::BaseThread::~BaseThread()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp:95:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
   95 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/base_thread.cpp:95:3: note: in C++11 destructors default to ‘noexcept’
[ 49%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/common/simple_threads.cpp.o
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound.cpp.o
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_file_loader.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp: In destructor ‘virtual Shared::PlatformCommon::SimpleTaskThread::~SimpleTaskThread()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp:447:9: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  447 |         throw megaglest_runtime_error(ex.what());
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/common/simple_threads.cpp:447:9: note: in C++11 destructors default to ‘noexcept’
[ 50%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_interface.cpp.o
[ 51%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/sound_player.cpp.o
[ 51%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/sound/openal/sound_player_openal.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/checksum.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/conversion.cpp.o
[ 52%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/leak_dumper.cpp.o
[ 53%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/profiler.cpp.o
[ 53%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/properties.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/randomgen.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/string_utils.cpp.o
[ 54%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/util/util.cpp.o
[ 55%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/xml/xml_parser.cpp.o
[ 55%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/Random.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/SMath.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/SoftFloatWrapper.cpp.o
[ 56%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/streflopC.cpp.o
[ 57%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/streflop/softfloat/softfloat.cpp.o
[ 57%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/factory_repository.cpp.o
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/gl_wrap.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::floatx80 streflop::SoftFloat::roundAndPackFloatx80(streflop::SoftFloat::int8, streflop::SoftFloat::flag, streflop::SoftFloat::int32, streflop::SoftFloat::bits64, streflop::SoftFloat::bits64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:670:16: warning: comparison of integer expressions of different signedness: ‘streflop::SoftFloat::bits64’ {aka ‘long unsigned int’} and ‘streflop::SoftFloat::int64’ {aka ‘long int’} [-Wsign-compare]
  670 |     if ( zSig0 < roundIncrement ) {
      |          ~~~~~~^~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::float32 streflop::SoftFloat::int64_to_float32(long long int)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:1159:12: warning: unused variable ‘zSig’ [-Wunused-variable]
 1159 |     bits32 zSig;
      |            ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::flag streflop::SoftFloat::float32_le_quiet(streflop::SoftFloat::float32, streflop::SoftFloat::float32)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2132:11: warning: unused variable ‘aExp’ [-Wunused-variable]
 2132 |     int16 aExp, bExp;
      |           ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2132:17: warning: unused variable ‘bExp’ [-Wunused-variable]
 2132 |     int16 aExp, bExp;
      |                 ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::float64 streflop::SoftFloat::float64_sqrt(streflop::SoftFloat::float64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:2914:13: warning: unused variable ‘z’ [-Wunused-variable]
 2914 |     float64 z;
      |             ^
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp: In function ‘streflop::SoftFloat::flag streflop::SoftFloat::float64_le_quiet(streflop::SoftFloat::float64, streflop::SoftFloat::float64)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:3052:11: warning: unused variable ‘aExp’ [-Wunused-variable]
 3052 |     int16 aExp, bExp;
      |           ^~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/streflop/softfloat/softfloat.cpp:3052:17: warning: unused variable ‘bExp’ [-Wunused-variable]
 3052 |     int16 aExp, bExp;
      |                 ^~~~
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/platform_util.cpp.o
[ 58%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/thread.cpp.o
[ 59%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/window.cpp.o
[ 59%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/sdl/window_gl.cpp.o
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/ircclient.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Mutex::~Mutex()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:519:4: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  519 |    throw megaglest_runtime_error(szBuf);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:519:4: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:529:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  529 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:529:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:535:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  535 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:535:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Semaphore::~Semaphore()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:619:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  619 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:619:3: note: in C++11 destructors default to ‘noexcept’
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp: In destructor ‘Shared::Platform::Trigger::~Trigger()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:739:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  739 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/sdl/thread.cpp:739:3: note: in C++11 destructors default to ‘noexcept’
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpclient.cpp.o
[ 60%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/miniftpserver.cpp.o
[ 61%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/posix/socket.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp: In function ‘void Shared::PlatformCommon::dump_event(irc_session_t*, const char*, const char*, const char**, unsigned int)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81:11: warning: ‘char* strncat(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
   81 |   strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/ircclient.cpp:81:49: note: length computed here
   81 |   strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |                                           ~~~~~~^~~~~~~~~~~~~
[ 61%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/platform/unix/gl_wrap.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp: In static member function ‘static std::vector<std::__cxx11::basic_string<char> > Shared::Platform::Socket::getLocalIPAddressList()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:746:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  746 |    strncpy(ifr.ifr_name, szBuf, maxIfNameLength);
      |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:744:46: note: length computed here
  744 |    int maxIfNameLength = std::min((int)strlen(szBuf),IFNAMSIZ-1);
      |                                        ~~~~~~^~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:748:11: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  748 |    strncpy(ifrA.ifr_name, szBuf, maxIfNameLength);
      |    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/shared_lib/sources/platform/posix/socket.cpp:744:46: note: length computed here
  744 |    int maxIfNameLength = std::min((int)strlen(szBuf),IFNAMSIZ-1);
      |                                        ~~~~~~^~~~~~~
[ 62%] Linking CXX static library liblibmegaglest.a
[ 62%] Built target libmegaglest
[ 63%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/__/glest_game/global/config.cpp.o
[ 63%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/main.cpp.o
[ 63%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/graphics/particle_type.cpp.o
[ 63%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/graphics/unit_particle_type.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/__/glest_game/global/config.cpp.o
[ 64%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai_interface.cpp.o
[ 64%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/main.cpp.o
[ 65%] Building CXX object source/g3d_viewer/CMakeFiles/megaglest_g3dviewer.dir/renderer.cpp.o
[ 65%] Building CXX object source/glest_map_editor/CMakeFiles/megaglest_editor.dir/program.cpp.o
[ 66%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/ai_rule.cpp.o
[ 67%] Linking CXX executable megaglest_editor
[ 67%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/ai/path_finder.cpp.o
[ 67%] Built target megaglest_editor
[ 67%] Built target megaglest_editor.6
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/auto_test.cpp.o
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/components.cpp.o
[ 68%] Linking CXX executable megaglest_g3dviewer
[ 68%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/game_util.cpp.o
[ 68%] Built target megaglest_g3dviewer
[ 69%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/facilities/logger.cpp.o
[ 69%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/chat_manager.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/commander.cpp.o
[ 70%] Built target megaglest_g3dviewer.6
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/console.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/game.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/game_camera.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/script_manager.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/game/stats.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/config.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/core_data.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/lang.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/global/metrics.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/particle_type.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/renderer.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/graphics/unit_particle_type.cpp.o
[ 75%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/display.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp: In destructor ‘virtual Glest::Game::Renderer::~Renderer()’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:353:3: warning: ‘throw’ will always call ‘terminate’ [-Wterminate]
  353 |   throw megaglest_runtime_error(szBuf);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-3.13.0/source/glest_game/graphics/renderer.cpp:353:3: note: in C++11 destructors default to ‘noexcept’
[ 75%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/gui.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/gui/selection.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/battle_end.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/intro.cpp.o
[ 77%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/main.cpp.o
[ 77%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/main/program.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/main_menu.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_background.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_about.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_connected_game.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_custom_game.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_graphic_info.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_join_game.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_keysetup.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_load_game.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_masterserver.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_mods.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_new_game.cpp.o
[ 83%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_options.cpp.o
[ 83%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_options_graphics.cpp.o
[ 83%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_options_network.cpp.o
[ 84%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_options_sound.cpp.o
[ 84%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_root.cpp.o
[ 85%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/menu_state_scenario.cpp.o
[ 85%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/menu/server_line.cpp.o
[ 85%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/client_interface.cpp.o
[ 86%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/connection_slot.cpp.o
[ 86%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/network_interface.cpp.o
[ 87%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/network_manager.cpp.o
[ 87%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/network_message.cpp.o
[ 87%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/network_protocol.cpp.o
[ 88%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/network_types.cpp.o
[ 88%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/network/server_interface.cpp.o
[ 89%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/sound/sound_container.cpp.o
[ 89%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/sound/sound_renderer.cpp.o
[ 89%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/command.cpp.o
[ 90%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/faction.cpp.o
[ 90%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/object.cpp.o
[ 91%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/resource.cpp.o
[ 91%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/unit.cpp.o
[ 91%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/type_instances/upgrade.cpp.o
[ 92%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/command_type.cpp.o
[ 92%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/damage_multiplier.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/element_type.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/faction_type.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/object_type.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/projectile_type.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/resource_type.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/skill_type.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/tech_tree.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/tileset_model_type.cpp.o
[ 96%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/unit_type.cpp.o
[ 96%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/types/upgrade_type.cpp.o
[ 97%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/map.cpp.o
[ 97%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/minimap.cpp.o
[ 97%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/scenario.cpp.o
[ 98%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/surface_atlas.cpp.o
[ 98%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/tileset.cpp.o
[ 99%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/time_flow.cpp.o
[ 99%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/unit_updater.cpp.o
[ 99%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/water_effects.cpp.o
[100%] Building CXX object source/glest_game/CMakeFiles/megaglest.dir/world/world.cpp.o
[100%] Linking CXX executable megaglest
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2b98): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2ba0): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2ba8): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2bb0): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2bb8): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpAccount.c.o):(.bss+0x2bc0): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x20): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x18): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x10): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x8): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x0): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpRuntime.c.o):(.bss+0x34): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0xaba0): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0xaba8): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0xabb0): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0xabb8): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0x418): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpSession.c.o):(.bss+0x0): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x120): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x118): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x128): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x130): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x138): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpTargetPosix.c.o):(.bss+0x110): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x420): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x428): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x430): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x10): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x8): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpCmds.c.o):(.bss+0x0): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x0): multiple definition of `ftpIsClientAllowedToGetFile'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x60): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x8): multiple definition of `ftpIsValidClient'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x68): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x10): multiple definition of `ftpRemoveUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x70): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x18): multiple definition of `ftpAddUPNPPortForward'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x78): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x20): multiple definition of `ftpFindExternalFTPServerIp'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x80): first defined here
/usr/bin/ld: ../shared_lib/liblibmegaglest.a(ftpLib.c.o):(.bss+0x28): multiple definition of `VERBOSE_MODE_ENABLED'; ../shared_lib/liblibmegaglest.a(miniftpserver.cpp.o):(.bss+0x38): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [source/glest_game/CMakeFiles/megaglest.dir/build.make:1473: source/glest_game/megaglest] Error 1
make[1]: *** [CMakeFiles/Makefile2:292: source/glest_game/CMakeFiles/megaglest.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Jammyjamjamman commented 3 years ago

Hi @coreybruce!

Are you currently building on master branch? If yes, could you try building the develop branch please?

coreybruce commented 3 years ago

Hey @Jammyjamjamman thanks for the reply, no sorry I was building from the current zipped stable, should I try cloning this and switching to the developer branch or try master first?

Jammyjamjamman commented 3 years ago

Oh sorry, jumped the gun a bit and forgot to ask if you were using git at all 😅.

I'd recommend trying to clone this repo + build the develop branch. I think you'll get the same error as you posted above, if you try to build master.

Some extra info about that error your getting: The g++ compiler recently became more strict about declaring global vars only once. Featheryftp declared some global vars in a header. That header was then included in multiple files. So the vars were declared multiple times. g++ used to just ignore/ deal with this. But now you must only declare globals once and refer to them as extern everywhere else. I patched this in the develop branch, but it's still broken in master and release.

coreybruce commented 3 years ago

I got it to complete cmake after installing the dependencies needed and figured out it needed wxgtk2 not wxgtk3 (wxwidgets on debian/Ubuntu) might need to add the Arch dependencies as a couple of them are named differently and still don't know why Debian and Ubuntu based distros name packages so wierdly..

but I ran into this issue when I was building

[corey@corey-pi4 megaglest-source]$ make -j4
[  0%] Building C object source/tools/glexemel/CMakeFiles/g2xml.dir/g2xml.c.o
[  1%] Generating mg.tmp
[  1%] Building C object source/tools/glexemel/CMakeFiles/xml2g.dir/xml2g.c.o
[  1%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acosf.cpp.o
[  1%] Built target run
[  2%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_acoshf.cpp.o
[  2%] Linking C executable g2xml
[  2%] Built target g2xml
[  2%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_asinf.cpp.o
[  3%] Linking C executable xml2g
[  3%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atan2f.cpp.o
[  3%] Built target xml2g
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_atanhf.cpp.o
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_coshf.cpp.o
[  4%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_exp2f.cpp.o
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_expf.cpp.o
[  5%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_fmodf.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_gammaf_r.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_hypotf.cpp.o
[  6%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j0f.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_j1f.cpp.o
[  7%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_jnf.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_lgammaf_r.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log10f.cpp.o
[  8%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_log2f.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_logf.cpp.o
[  9%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_powf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_rem_pio2f.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_remainderf.cpp.o
[ 10%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sinhf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/e_sqrtf.cpp.o
[ 11%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_cosf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_rem_pio2f.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_sinf.cpp.o
[ 12%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/k_tanf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_asinhf.cpp.o
[ 13%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_atanf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cbrtf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ceilf.cpp.o
[ 14%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_copysignf.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_cosf.cpp.o
[ 15%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_erff.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_expm1f.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fabsf.cpp.o
[ 16%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_finitef.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_floorf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_fpclassifyf.cpp.o
[ 17%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_frexpf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ilogbf.cpp.o
[ 18%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isinff.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_isnanf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_ldexpf.cpp.o
[ 19%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llrintf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_llroundf.cpp.o
[ 20%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_log1pf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_logbf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lrintf.cpp.o
[ 21%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_lroundf.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_modff.cpp.o
[ 22%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nearbyintf.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_nextafterf.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_remquof.cpp.o
[ 23%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_rintf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_roundf.cpp.o
[ 24%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalblnf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_scalbnf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_signbitf.cpp.o
[ 25%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sincosf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_sinf.cpp.o
[ 26%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_tanhf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/s_truncf.cpp.o
[ 27%] Building CXX object source/shared_lib/sources/streflop/CMakeFiles/streflop.dir/libm/flt-32/w_expf.cpp.o
[ 28%] Linking CXX static library libstreflop.a
[ 28%] Built target streflop
[ 29%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/compression/compression_utils.cpp.o
[ 29%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/libircclient/src/libircclient.c.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpAccount.c.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpCmds.c.o
[ 30%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpLib.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpMessages.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpRuntime.c.o
[ 31%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpServer.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpSession.c.o
[ 32%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetPosix.c.o
[ 33%] Building C object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/feathery_ftp/ftpTargetWin32.c.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/BMPReader.cpp.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/FileReader.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/ImageReaders.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/JPGReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/PNGReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/TGAReader.cpp.o
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/buffer.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/camera.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/context.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_manager.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_text.cpp.o
/run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp: In static member function ‘static void Shared::Graphics::Font::bidi_cvt(std::string&)’:
/run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp:461:13: error: ‘reverse’ is not a member of ‘std’
  461 |        std::reverse(nonASCIIWordList.begin(),nonASCIIWordList.end());
      |             ^~~~~~~
/run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp:476:12: error: ‘reverse’ is not a member of ‘std’
  476 |       std::reverse(nonASCIIWordList.begin(),nonASCIIWordList.end());
      |            ^~~~~~~
make[2]: *** [source/shared_lib/CMakeFiles/libmegaglest.dir/build.make:356: source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:209: source/shared_lib/CMakeFiles/libmegaglest.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Jammyjamjamman commented 3 years ago

Hm I don't know what's gone wrong here I'm afraid. Googling shows that function is in the header <algorithm>. But I'm not sure why that's (apparently) missing.

Something that might help is, rather than building using cmake directly, is to use the scripts in mk/linux:

sudo ./setupBuildDeps.sh
./build-mg.sh
JoshStrobl commented 3 years ago

This will be an issue (the "multiple definition of") when compiling with GCC 10+, due to a change in GCC 10 to default to -fno-common instead of -fcommon. [1] To resolve this, you need to ensure you have -fcommon set as part of your CFLAGS and --allow-multiple-definition as part of your LDFLAGS. Alternative, it can be resolved by updating the respective files listed in the OP. I do not have an intimate knowledge of the codebase, so I am probably not the best person for that job.

You can see an example of what I did for Solus here [2]. In this example, you can see that as part of our packaging tooling, in our environment section I am effectively exporting our CFLAGS and LDFLAGS with the values mentioned above appended to the end.

[1] https://gcc.gnu.org/gcc-10/porting_to.html [2] https://dev.getsol.us/R2061:eb9a23e18fbb1cdddcba1aa76a197418a5609e52

Jammyjamjamman commented 3 years ago

Hi @JoshStrobl! Thanks for the help. This was already fixed in commit 5a35205 . @coreybruce tried building the develop branch (with the fix), but then seemed to run into a completely different error.

Actually, looking at that error again, I don't know why this error would happen. Because I don't think this code has been changed since the release, where it did build. Maybe a full rebuild would fix the problem (delete the folder mk/linux/build and run mk/linux/build-mg.sh again).

andy5995 commented 3 years ago

[ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_manager.cpp.o [ 37%] Building CXX object source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font_text.cpp.o /run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp: In static member function ‘static void Shared::Graphics::Font::bidi_cvt(std::string&)’: /run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp:461:13: error: ‘reverse’ is not a member of ‘std’ 461 | std::reverse(nonASCIIWordList.begin(),nonASCIIWordList.end()); | ^~~ /run/media/corey/47F22DEE70C10570/projects/megaglest-source/source/shared_lib/sources/graphics/font.cpp:476:12: error: ‘reverse’ is not a member of ‘std’ 476 | std::reverse(nonASCIIWordList.begin(),nonASCIIWordList.end()); | ^~~ make[2]: [source/shared_lib/CMakeFiles/libmegaglest.dir/build.make:356: source/shared_lib/CMakeFiles/libmegaglest.dir/sources/graphics/font.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:209: source/shared_lib/CMakeFiles/libmegaglest.dir/all] Error 2 make: [Makefile:156: all] Error 2

I just ran into this problem too, on Manjaro.

As @Jammyjamjamman mentioned, it has to do with the algorithm include apparently. I added include <algorithm> to platform_common.h and it's working now.

I had first removed the build directory but that didn't help.

andy5995 commented 3 years ago

I just ran into this problem too, on Manjaro.

As @Jammyjamjamman mentioned, it has to do with the algorithm include apparently. I added include <algorithm> to platform_common.h and it's working now.

I'll have to reverse myself a little. It's not working now. I got a complete binary, but when it runs, the window is black, doesn't change, and it crashes in less than a minute with a lot of errors in the console.

I'm attaching the console output 20210703-errors.txt

coreybruce commented 3 years ago

Looks like some progress way made by smarter people than me :P

andy5995 commented 3 years ago

I got the binary to run properly. I had to install ftgl.

andy5995 commented 3 years ago

So.. yeah, looks like setupBuilddeps.sh needs updating.

Here's the output of pacman when ftgl is installed (shows it's installed and up to date). If I remove ftgl, and run the pacman command again, it doesn't actually install ftgl, nor does it show that it will install it.

So really.. that seems more of a pacman bug.

Same thing with the libcurl-gnutls dependency. Not installed and pacman didn't install it.

Unsupported ManjaroLinux release.

Please report a bug at http://bugs.megaglest.org providing the following information:
--- snip ---
Git revision: 0e5d3a2d49b9e7355a57416891f14f5d7bc6068a
LSB support:  1
Distribution: ManjaroLinux
Release:      21.0.7
Codename:     Ornara
Architecture: x86_64
--- snip ---

For now, please try this (which works with other ManjaroLinux releases) and report back how it works for you:

pacman  -S --needed gcc-multilib cmake libcurl-gnutls sdl2 openal lua libjpeg-turbo libpng freetype2 wxgtk cppunit fribidi ftgl glew libogg libvorbis miniupnpc libircclient vlc libxml2 libx11 mesa glu

Thanks!
[andy@prometheus linux]$ sudo pacman  -S --needed gcc-multilib cmake libcurl-gnutls sdl2 openal lua libjpeg-turbo libpng freetype2 wxgtk cppunit fribidi ftgl glew libogg libvorbis miniupnpc libircclient vlc libxml2 libx11 mesa glu
warning: gcc-11.1.0-1 is up to date -- skipping
warning: cmake-3.20.3-1 is up to date -- skipping
warning: sdl2-2.0.14-1 is up to date -- skipping
warning: openal-1.21.1-1 is up to date -- skipping
warning: libjpeg-turbo-2.1.0-1 is up to date -- skipping
warning: libpng-1.6.37-3 is up to date -- skipping
warning: freetype2-2.10.4-1 is up to date -- skipping
error: target not found: wxgtk
warning: cppunit-1.15.1-2 is up to date -- skipping
warning: fribidi-1.0.10-1 is up to date -- skipping
warning: ftgl-2.4.0-2 is up to date -- skipping
warning: glew-2.2.0-2 is up to date -- skipping
warning: libogg-1.3.5-1 is up to date -- skipping
warning: libvorbis-1.3.7-2 is up to date -- skipping
warning: miniupnpc-2.1.20191224-3 is up to date -- skipping
warning: vlc-3.0.14-1 is up to date -- skipping
warning: libxml2-2.9.10-9 is up to date -- skipping
warning: libx11-1.7.2-1 is up to date -- skipping
warning: mesa-21.1.2-1 is up to date -- skipping
warning: glu-9.0.1-2 is up to date -- skipping
[andy@prometheus linux]$ sudo pacman -Ru ftgl
checking dependencies...

Packages (1) ftgl-2.4.0-2

Total Removed Size:  2.16 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/1) removing ftgl                                    [############################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[andy@prometheus linux]$ sudo pacman  -S --needed gcc-multilib cmake libcurl-gnutls sdl2 openal lua libjpeg-turbo libpng freetype2 wxgtk cppunit fribidi ftgl glew libogg libvorbis miniupnpc libircclient vlc libxml2 libx11 mesa glu
warning: gcc-11.1.0-1 is up to date -- skipping
warning: cmake-3.20.3-1 is up to date -- skipping
warning: sdl2-2.0.14-1 is up to date -- skipping
warning: openal-1.21.1-1 is up to date -- skipping
warning: libjpeg-turbo-2.1.0-1 is up to date -- skipping
warning: libpng-1.6.37-3 is up to date -- skipping
warning: freetype2-2.10.4-1 is up to date -- skipping
error: target not found: wxgtk
warning: cppunit-1.15.1-2 is up to date -- skipping
warning: fribidi-1.0.10-1 is up to date -- skipping
warning: glew-2.2.0-2 is up to date -- skipping
warning: libogg-1.3.5-1 is up to date -- skipping
warning: libvorbis-1.3.7-2 is up to date -- skipping
warning: miniupnpc-2.1.20191224-3 is up to date -- skipping
warning: vlc-3.0.14-1 is up to date -- skipping
warning: libxml2-2.9.10-9 is up to date -- skipping
warning: libx11-1.7.2-1 is up to date -- skipping
warning: mesa-21.1.2-1 is up to date -- skipping
warning: glu-9.0.1-2 is up to date -- skipping
Jammyjamjamman commented 3 years ago

Nice catch @andy5995! I suspect the real problem is pacman fails to install the packages because it can't find wxgtk (and doesn't fail gracefully). wxgtk should be wxgtk-common.

@coreybruce I'd suggest running the command below. If it succeeds, then try a clean build (of development branch) again:

sudo pacman -S gcc-multilib cmake libcurl-gnutls sdl2 openal lua libjpeg-turbo libpng freetype2 wxgtk-common cppunit fribidi ftgl glew libogg libvorbis miniupnpc libircclient vlc libxml2 libx11 mesa glu

I've removed --needed as well from that install command. Bit over the top but, should guarantee packages install :).

coreybruce commented 3 years ago

I will give it a try and get back to you 🙂

andy5995 commented 3 years ago

@Jammyjamjamman imo, cmake should exit with a fail code if it can't find ftgl.

coreybruce commented 3 years ago

Nice catch @andy5995! I suspect the real problem is pacman fails to install the packages because it can't find wxgtk (and doesn't fail gracefully). wxgtk should be wxgtk-common.

@coreybruce I'd suggest running the command below. If it succeeds, then try a clean build (of development branch) again:

sudo pacman -S gcc-multilib cmake libcurl-gnutls sdl2 openal lua libjpeg-turbo libpng freetype2 wxgtk-common cppunit fribidi ftgl glew libogg libvorbis miniupnpc libircclient vlc libxml2 libx11 mesa glu

I've removed --needed as well from that install command. Bit over the top but, should guarantee packages install :).

Installed all of those exept gcc-multilib as Manjaro arm64 does not have this package and only supports 64bit arm but I am still getting cmake errors sadly.

Jammyjamjamman commented 3 years ago

Thanks @coreybruce . Still the same error as before? If there's cmake errors, sounds like it's failing earlier. If you haven't already suggest deleting the build/ folder and rebuilding again. But sounds like there's still other problems.

ETERNALBLUEbullrun commented 1 year ago

Related? FP lib for ARM64 blocks SpringRTS mobile: https://springrts.com/phpbb/viewtopic.php?t=26520

coreybruce commented 1 year ago

Hey guys I'll have to test it again and see if this is still an issue on Arm64 as I made this post 2 years ago 😛

coreybruce commented 1 year ago

Need a refresher as it has been a while so sorry if I make any mistakes :P but here is my log

also the instructions on building gave the wrong cd path

[corey@corey-pi4 ~]$ git clone https://github.com/MegaGlest/megaglest-source
Cloning into 'megaglest-source'...
remote: Enumerating objects: 66977, done.
remote: Counting objects: 100% (675/675), done.
remote: Compressing objects: 100% (598/598), done.
remote: Total 66977 (delta 146), reused 193 (delta 60), pack-reused 66302
Receiving objects: 100% (66977/66977), 47.74 MiB | 6.37 MiB/s, done.
Resolving deltas: 100% (51584/51584), done.
[corey@corey-pi4 ~]$ cd megaglest-source
[corey@corey-pi4 megaglest-source]$ mkdir build
[corey@corey-pi4 megaglest-source]$ cd build
[corey@corey-pi4 build]$ cmake ../../..
CMake Warning:
  Ignoring extra path from command line:

   "../../.."

CMake Error: The source directory "/home" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
[corey@corey-pi4 build]$ cmake ../
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SOURCE_DIR = /home/corey/megaglest-source
-- Build type for this compile will be: RelWithDebInfo
-- =====================================================================
-- Determining version number system type to use:
-- ** Trying 2 part versioning 
-- Detected MegaGlest Version is [v3.13-dev] 
-- Detected GNUC Compiler...
-- **AppImage compatiblity + nodata wanted. Adding flag "APPIMAGE_NODATA".
-- *NOTE: Checking for max SSE LEVEL [1]
-- Max SSE desired: [1]
-- Performing Test HAS_SSE3_EXTENSIONS
-- Performing Test HAS_SSE3_EXTENSIONS - Failed
-- Performing Test HAS_SSE2_EXTENSIONS
-- Performing Test HAS_SSE2_EXTENSIONS - Failed
-- Performing Test HAS_SSE_EXTENSIONS
-- Performing Test HAS_SSE_EXTENSIONS - Failed
-- Performing Test HAS_X87_SUPPORT
-- Performing Test HAS_X87_SUPPORT - Failed
-- *NOTE: using SOFT emulation for STREFLOP.
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- *NOTE: Apply fix for: libpthread.so.0: error adding symbols: DSO missing from command line
-- Found Git: /usr/bin/git (found version "2.39.2") 
-- Found GIT and using GIT version stamping...
-- Using GIT revision stamp: [5867.7470d92] CMD [`cd '/home/corey/megaglest-source' && git rev-list HEAD --count`.`cd '/home/corey/megaglest-source' && git log -1 --format=%h --abbrev=7`]
-- *NOTE: Custom Data Install Path is [/usr/local/share/megaglest/]
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -O2 -g -DNDEBUG -g -O3  -DGITVERSION="\"`cd "/home/corey/megaglest-source" && git rev-list HEAD --count`.`cd "/home/corey/megaglest-source" && git log -1 --format=%h --abbrev=7`\"" -DCUSTOM_DATA_INSTALL_PATH=/usr/local/share/megaglest/
-- **NOTE: MG_CMAKE_INSTALL_PREFIX is [/usr/local]
-- **Found game source code.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result =  libs:  include dirs: 
-- Will try to build MegaGlest shared library
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.0.8")  
-- Found CURL: /usr/lib/libcurl.so (found version "7.88.1")  
-- curl-config: /usr/bin/curl-config, #2 RET = 1, using CURL dynamic libs: -lcurl
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found SDL2: /usr/lib/libSDL2main.a;/usr/lib/libSDL2.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:119 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib/libOpenGL.so   
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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 OpenAL: /usr/lib/libopenal.so  
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (Lua) does
  not match the name of the calling package (LUA).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  mk/cmake/Modules/FindLUA.cmake:191 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  source/shared_lib/CMakeLists.txt:150 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Lua: /usr/lib/liblua5.4.so;/usr/lib/libm.so (found version "5.4.4") 
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.13") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.39") 
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.13.0") 
CMake Error at mk/cmake/Modules/FindFTGL.cmake:53 (MESSAGE):
  Could not find FTGL libraries
Call Stack (most recent call first):
  source/shared_lib/CMakeLists.txt:192 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/home/corey/megaglest-source/build/CMakeFiles/CMakeOutput.log".
See also "/home/corey/megaglest-source/build/CMakeFiles/CMakeError.log".
Jammyjamjamman commented 1 year ago

Sounds like the buildinstructions are lacking this at the start: cd mk/linux

The cmake error there indicates ftgl is missing. If you're still using manjaro: pacman -S ftgl

but if you want to make sure you've installed all the deps, it might be simpler to run:

cd mk/linux
sudo ./setupBuildDeps.sh

Related? FP lib for ARM64 blocks SpringRTS mobile

The game does build on arm64. A couple of our headless servers are actually running on an ampere cpu servers.

coreybruce commented 1 year ago

Sounds like the buildinstructions are lacking this at the start: cd mk/linux

The cmake error there indicates ftgl is missing. If you're still using manjaro: pacman -S ftgl

but if you want to make sure you've installed all the deps, it might be simpler to run:

cd mk/linux
sudo ./setupBuildDeps.sh

Related? FP lib for ARM64 blocks SpringRTS mobile

The game does build on arm64. A couple of our headless servers are actually running on an ampere cpu servers.

Ahh right I see tho it seems like the script says Manjaro Arm is a unsupported distro. I think it's better to have a auto script and manual compiling instructions. :smiley:

[corey@corey-pi4 linux]$ sudo ./setupBuildDeps.sh
We have detected the following system:
 [ Manjaro-ARM ] [ 23.02 ] [ n/a ] [ aarch64 ]

On supported systems, we will now install build dependencies.

Unsupported Linux distribution.

Please report a bug at http://bugs.megaglest.org providing the following information:
--- snip ---
Git revision: 7470d924fbb2cd439d598409106b48ea2c0dae8e
LSB support:  1
Distribution: Manjaro-ARM
Release:      23.02
Codename:     n/a
Architecture: aarch64
--- snip ---

For now, you may want to take a look at the build hints on the MegaGlest wiki at:
  https://docs.megaglest.org/MG/Linux_Compiling
If you can come up with something which works for you, please report back to us, too. Thanks!
Jammyjamjamman commented 1 year ago

There are manual instructions (in the link given in the log of the script error you gave above, perhaps not the best place):

If your distribution is not supported or you prefer to install yourself: This is the current dependency list - where packages are available, the package names may start with lib and usually have -dev(el) towards the end:

gcc gcc-c++ cmake sdl2 alut GL GLU vorbis x11 lua jpeg png curl ircclient glew ftgl fribidi cppunit vlc miniupnpc

Additionally for map editor and model viewer:

wxgtk xml2

Unfortunately, it's not really possible to give more detailed instructions than that because the way package management works across different linux distros is very fragmented. pacman -Ss <search-regex> (replacing <search-regex> with e.g. ftgl) can helping find packages in manjaro repos.

However, I think it's a bug that the setupbuilddeps script doesnt support your manjaro distro. I think the install command for arm and x86_64 manjaro is the same.

coreybruce commented 1 year ago

There are manual instructions (in the link given in the log of the script error you gave above, perhaps not the best place):

If your distribution is not supported or you prefer to install yourself: This is the current dependency list - where packages are available, the package names may start with lib and usually have -dev(el) towards the end: gcc gcc-c++ cmake sdl2 alut GL GLU vorbis x11 lua jpeg png curl ircclient glew ftgl fribidi cppunit vlc miniupnpc Additionally for map editor and model viewer: wxgtk xml2

Unfortunately, it's not really possible to give more detailed instructions than that because the way package management works across different linux distros is very fragmented. pacman -Ss <search-regex> (replacing <search-regex> with e.g. ftgl) can helping find packages in manjaro repos.

However, I think it's a bug that the setupbuilddeps script doesnt support your manjaro distro. I think the install command for arm and x86_64 manjaro is the same.

Yeah I think those manual build instructions need to be updated because when I tried it for example the cd command was wrong and I ran into a build issue, they would be exactly the same across Linux distros on x64 and Arm64 :)

The best thing you could do for people who do use the manual instructions is add the Arch packages needed, it's all the same but some on Ubuntu have weird and different names compared to other distros.

Yeah that might be the only issue on the build script but I am happy to test it after it has been fixed and report any other build bugs for you if you like :+1:

Jammyjamjamman commented 1 year ago

I looked at https://docs.megaglest.org/MG/Linux_Compiling and cd mk/linux command I mentioned actually is in the build instructions already.

I've pushed a fix for the setupBuildDeps.sh script, if you're up to try it again. Also feel free to augment the build docs if you think there's extra additional info that can be provided.