Closed jimmon89 closed 2 years ago
output of cmake
#cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- 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
-- Found Boost: /usr/lib64/cmake/Boost-1.78.0/BoostConfig.cmake (found version "1.78.0") found components: filesystem program_options regex system unit_test_framework
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found GLEW: /usr/include (found version "2.2.0")
MAD library found
-- Found wxWidgets: -pthread;;;-lwx_gtk2u_core-3.0;-lwx_baseu-3.0 (found version "3.0.5")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
-- Checking for module 'openal'
-- Found openal, version 1.22.0
-- Checking for module 'sdl2'
-- Found sdl2, version 2.0.22
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for modules 'libavcodec;libavformat;libavutil;libswresample;libswscale'
-- Found libavcodec, version 59.18.100
-- Found libavformat, version 59.16.100
-- Found libavutil, version 57.17.100
-- Found libswresample, version 4.3.100
-- Found libswscale, version 6.4.100
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jimmy/Documents/repos/reone/build
@jimmon89 I'm not on Manjaro, but I ran into the same issue with macOS. While I couldn't find anything in their documentation or deprecated list that indicates why this worked, for whatever reason when I switched the referenced ffmpeg
version from 5.0.1 to 4.4.2 it worked for me.
Granted, I was never able to finish compilation due to a separate issue (ld: library not found for -latomic
) but it got me from failing at ~70% to failing at 100%... hopefully it works for you too!
Hey. Sorry for late response. Both issues should be fixed now. Had to add #include "libavcodec/avcodec.h"
to fix FFmpeg errors and remove -latomic from CMakeLists.txt.
everything else compiled fine
more info available on request