Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on manjaro #554

Closed
Gigas002 opened this issue Mar 27, 2022 · 5 comments
Closed

Unable to build on manjaro #554

Gigas002 opened this issue Mar 27, 2022 · 5 comments

Comments

@Gigas002
Copy link

I'm trying to create package of this repo for AUR, but somehow unable to build it on Manjaro Linux.

Cmake output:

[gigas@gigas-acer build]$ cmake ..
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.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
-- 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  
-- Found SDL2: /usr/lib/libSDL2main.a;/usr/lib/libSDL2.so  
SDL2_NET_INCLUDE_DIR is /usr/include/SDL2
-- Found SDL2_net: /usr/include/SDL2 (found version "2.0.1") 
-- Found Ogg: optimized;/usr/lib/libogg.so;debug;/usr/lib/libogg.so  
-- Found Vorbis: optimized;/usr/lib/libvorbis.so;debug;/usr/lib/libvorbis.so  
-- Found VorbisFile: optimized;/usr/lib/libvorbisfile.so;debug;/usr/lib/libvorbisfile.so  
-- Found clunk: /usr/lib/libclunk.so /usr/include
-- Found FFmpeg: /usr/lib/libavutil.so;/usr/lib/libavcodec.so;/usr/lib/libavformat.so
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Performing Test HAVE_SIMDSSE
-- Performing Test HAVE_SIMDSSE - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gigas/documents/repos/vangers-git/src/vangers/build

Make output:

[gigas@gigas-acer build]$ make VERBOSE=1
/usr/bin/cmake -S/home/gigas/documents/repos/vangers-git/src/vangers -B/home/gigas/documents/repos/vangers-git/src/vangers/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/gigas/documents/repos/vangers-git/src/vangers/build/CMakeFiles /home/gigas/documents/repos/vangers-git/src/vangers/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make  -f lib/xtool/CMakeFiles/xtool.dir/build.make lib/xtool/CMakeFiles/xtool.dir/depend
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
cd /home/gigas/documents/repos/vangers-git/src/vangers/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gigas/documents/repos/vangers-git/src/vangers /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool /home/gigas/documents/repos/vangers-git/src/vangers/build /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool/CMakeFiles/xtool.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make  -f lib/xtool/CMakeFiles/xtool.dir/build.make lib/xtool/CMakeFiles/xtool.dir/build
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
[  1%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xtcore.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xtcore.cpp.o -MF CMakeFiles/xtool.dir/xtcore.cpp.o.d -o CMakeFiles/xtool.dir/xtcore.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xtcore.cpp
[  2%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xrecorder/xrec.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xrecorder/xrec.cpp.o -MF CMakeFiles/xtool.dir/xrecorder/xrec.cpp.o.d -o CMakeFiles/xtool.dir/xrecorder/xrec.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xrecorder/xrec.cpp
[  3%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/port.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/port.cpp.o -MF CMakeFiles/xtool.dir/port.cpp.o.d -o CMakeFiles/xtool.dir/port.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/port.cpp
[  3%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xerrhead.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xerrhead.cpp.o -MF CMakeFiles/xtool.dir/xerrhead.cpp.o.d -o CMakeFiles/xtool.dir/xerrhead.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xerrhead.cpp
[  4%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcnvin.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcnvin.cpp.o -MF CMakeFiles/xtool.dir/xbuffer/xbcnvin.cpp.o.d -o CMakeFiles/xtool.dir/xbuffer/xbcnvin.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xbuffer/xbcnvin.cpp
[  5%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcnvout.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcnvout.cpp.o -MF CMakeFiles/xtool.dir/xbuffer/xbcnvout.cpp.o.d -o CMakeFiles/xtool.dir/xbuffer/xbcnvout.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xbuffer/xbcnvout.cpp
[  6%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcore.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbcore.cpp.o -MF CMakeFiles/xtool.dir/xbuffer/xbcore.cpp.o.d -o CMakeFiles/xtool.dir/xbuffer/xbcore.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xbuffer/xbcore.cpp
[  6%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbsearch.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xbuffer/xbsearch.cpp.o -MF CMakeFiles/xtool.dir/xbuffer/xbsearch.cpp.o.d -o CMakeFiles/xtool.dir/xbuffer/xbsearch.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xbuffer/xbsearch.cpp
[  7%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xmsgbuffer/xmsgbuf.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xmsgbuffer/xmsgbuf.cpp.o -MF CMakeFiles/xtool.dir/xmsgbuffer/xmsgbuf.cpp.o.d -o CMakeFiles/xtool.dir/xmsgbuffer/xmsgbuf.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xmsgbuffer/xmsgbuf.cpp
[  8%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xresource/zip_resource.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xresource/zip_resource.cpp.o -MF CMakeFiles/xtool.dir/xresource/zip_resource.cpp.o.d -o CMakeFiles/xtool.dir/xresource/zip_resource.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xresource/zip_resource.cpp
[  9%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xscnvin.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xscnvin.cpp.o -MF CMakeFiles/xtool.dir/xstream/xscnvin.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xscnvin.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xscnvin.cpp
[  9%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xscnvout.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xscnvout.cpp.o -MF CMakeFiles/xtool.dir/xstream/xscnvout.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xscnvout.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xscnvout.cpp
[ 10%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xscore.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xscore.cpp.o -MF CMakeFiles/xtool.dir/xstream/xscore.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xscore.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xscore.cpp
[ 11%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsenlv.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsenlv.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsenlv.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsenlv.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsenlv.cpp
[ 12%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsgetlin.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsgetlin.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsgetlin.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsgetlin.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsgetlin.cpp
[ 12%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsinput.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsinput.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsinput.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsinput.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsinput.cpp
[ 13%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsoutput.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsoutput.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsoutput.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsoutput.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsoutput.cpp
[ 14%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsrdwr.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsrdwr.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsrdwr.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsrdwr.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsrdwr.cpp
[ 15%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xstream/xsserv.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xstream/xsserv.cpp.o -MF CMakeFiles/xtool.dir/xstream/xsserv.cpp.o.d -o CMakeFiles/xtool.dir/xstream/xsserv.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xstream/xsserv.cpp
[ 15%] Building CXX object lib/xtool/CMakeFiles/xtool.dir/xutil/xclock.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xtool/CMakeFiles/xtool.dir/xutil/xclock.cpp.o -MF CMakeFiles/xtool.dir/xutil/xclock.cpp.o.d -o CMakeFiles/xtool.dir/xutil/xclock.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/xutil/xclock.cpp
[ 16%] Building C object lib/xtool/CMakeFiles/xtool.dir/iniparser/dictionary.c.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/cc -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -MD -MT lib/xtool/CMakeFiles/xtool.dir/iniparser/dictionary.c.o -MF CMakeFiles/xtool.dir/iniparser/dictionary.c.o.d -o CMakeFiles/xtool.dir/iniparser/dictionary.c.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/iniparser/dictionary.c
cc1: warning: ‘-Werror=’ argument ‘-Werror=delete-non-virtual-dtor’ is not valid for C
[ 17%] Building C object lib/xtool/CMakeFiles/xtool.dir/iniparser/iniparser.c.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/cc -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/. -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -MD -MT lib/xtool/CMakeFiles/xtool.dir/iniparser/iniparser.c.o -MF CMakeFiles/xtool.dir/iniparser/iniparser.c.o.d -o CMakeFiles/xtool.dir/iniparser/iniparser.c.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool/iniparser/iniparser.c
cc1: warning: ‘-Werror=’ argument ‘-Werror=delete-non-virtual-dtor’ is not valid for C
[ 18%] Linking CXX static library libxtool.a
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/cmake -P CMakeFiles/xtool.dir/cmake_clean_target.cmake
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xtool && /usr/bin/cmake -E cmake_link_script CMakeFiles/xtool.dir/link.txt --verbose=1
/usr/bin/ar qc libxtool.a CMakeFiles/xtool.dir/xtcore.cpp.o CMakeFiles/xtool.dir/xrecorder/xrec.cpp.o CMakeFiles/xtool.dir/port.cpp.o CMakeFiles/xtool.dir/xerrhead.cpp.o CMakeFiles/xtool.dir/xbuffer/xbcnvin.cpp.o CMakeFiles/xtool.dir/xbuffer/xbcnvout.cpp.o CMakeFiles/xtool.dir/xbuffer/xbcore.cpp.o CMakeFiles/xtool.dir/xbuffer/xbsearch.cpp.o CMakeFiles/xtool.dir/xmsgbuffer/xmsgbuf.cpp.o CMakeFiles/xtool.dir/xresource/zip_resource.cpp.o CMakeFiles/xtool.dir/xstream/xscnvin.cpp.o CMakeFiles/xtool.dir/xstream/xscnvout.cpp.o CMakeFiles/xtool.dir/xstream/xscore.cpp.o CMakeFiles/xtool.dir/xstream/xsenlv.cpp.o CMakeFiles/xtool.dir/xstream/xsgetlin.cpp.o CMakeFiles/xtool.dir/xstream/xsinput.cpp.o CMakeFiles/xtool.dir/xstream/xsoutput.cpp.o CMakeFiles/xtool.dir/xstream/xsrdwr.cpp.o CMakeFiles/xtool.dir/xstream/xsserv.cpp.o CMakeFiles/xtool.dir/xutil/xclock.cpp.o CMakeFiles/xtool.dir/iniparser/dictionary.c.o CMakeFiles/xtool.dir/iniparser/iniparser.c.o
/usr/bin/ranlib libxtool.a
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
[ 18%] Built target xtool
make  -f lib/xgraph/CMakeFiles/xgraph.dir/build.make lib/xgraph/CMakeFiles/xgraph.dir/depend
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
cd /home/gigas/documents/repos/vangers-git/src/vangers/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gigas/documents/repos/vangers-git/src/vangers /home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph /home/gigas/documents/repos/vangers-git/src/vangers/build /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph/CMakeFiles/xgraph.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make  -f lib/xgraph/CMakeFiles/xgraph.dir/build.make lib/xgraph/CMakeFiles/xgraph.dir/build
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
[ 19%] Building CXX object lib/xgraph/CMakeFiles/xgraph.dir/xfont.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xgraph/CMakeFiles/xgraph.dir/xfont.cpp.o -MF CMakeFiles/xgraph.dir/xfont.cpp.o.d -o CMakeFiles/xgraph.dir/xfont.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph/xfont.cpp
[ 20%] Building CXX object lib/xgraph/CMakeFiles/xgraph.dir/xgraph.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xgraph/CMakeFiles/xgraph.dir/xgraph.cpp.o -MF CMakeFiles/xgraph.dir/xgraph.cpp.o.d -o CMakeFiles/xgraph.dir/xgraph.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph/xgraph.cpp
[ 21%] Building CXX object lib/xgraph/CMakeFiles/xgraph.dir/xbmp.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xgraph/CMakeFiles/xgraph.dir/xbmp.cpp.o -MF CMakeFiles/xgraph.dir/xbmp.cpp.o.d -o CMakeFiles/xgraph.dir/xbmp.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph/xbmp.cpp
[ 22%] Building CXX object lib/xgraph/CMakeFiles/xgraph.dir/xside.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xgraph/CMakeFiles/xgraph.dir/xside.cpp.o -MF CMakeFiles/xgraph.dir/xside.cpp.o.d -o CMakeFiles/xgraph.dir/xside.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph/xside.cpp
[ 22%] Linking CXX static library libxgraph.a
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/cmake -P CMakeFiles/xgraph.dir/cmake_clean_target.cmake
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xgraph && /usr/bin/cmake -E cmake_link_script CMakeFiles/xgraph.dir/link.txt --verbose=1
/usr/bin/ar qc libxgraph.a CMakeFiles/xgraph.dir/xfont.cpp.o CMakeFiles/xgraph.dir/xgraph.cpp.o CMakeFiles/xgraph.dir/xbmp.cpp.o CMakeFiles/xgraph.dir/xside.cpp.o
/usr/bin/ranlib libxgraph.a
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
[ 22%] Built target xgraph
make  -f lib/xsound/CMakeFiles/xsound.dir/build.make lib/xsound/CMakeFiles/xsound.dir/depend
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
cd /home/gigas/documents/repos/vangers-git/src/vangers/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gigas/documents/repos/vangers-git/src/vangers /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound /home/gigas/documents/repos/vangers-git/src/vangers/build /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xsound /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xsound/CMakeFiles/xsound.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make  -f lib/xsound/CMakeFiles/xsound.dir/build.make lib/xsound/CMakeFiles/xsound.dir/build
make[2]: Entering directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
[ 23%] Building CXX object lib/xsound/CMakeFiles/xsound.dir/xsound.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xsound && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xsound/CMakeFiles/xsound.dir/xsound.cpp.o -MF CMakeFiles/xsound.dir/xsound.cpp.o.d -o CMakeFiles/xsound.dir/xsound.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/xsound.cpp
[ 24%] Building CXX object lib/xsound/CMakeFiles/xsound.dir/avi.cpp.o
cd /home/gigas/documents/repos/vangers-git/src/vangers/build/lib/xsound && /usr/bin/c++ -DACTINT -D_BINARY_SCRIPT_ -D_USE_MATH_DEFINES -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xtool -I/home/gigas/documents/repos/vangers-git/src/vangers/lib/xgraph -isystem /usr/include/SDL2 -isystem /usr/include/libavcodec -isystem /usr/include/libavformat -Werror=shift-negative-value -Werror=dangling-else -Werror=parentheses -Werror=delete-non-virtual-dtor -Werror=write-strings -std=c++17 -MD -MT lib/xsound/CMakeFiles/xsound.dir/avi.cpp.o -MF CMakeFiles/xsound.dir/avi.cpp.o.d -o CMakeFiles/xsound.dir/avi.cpp.o -c /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp: In member function ‘int AVIFile::open(char*, int, int)’:
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:85:19: error: ‘avcodec_alloc_context3’ was not declared in this scope; did you mean ‘avio_alloc_context’?
   85 |         pCodecCtx=avcodec_alloc_context3(NULL);
      |                   ^~~~~~~~~~~~~~~~~~~~~~
      |                   avio_alloc_context
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:90:15: error: ‘avcodec_parameters_to_context’ was not declared in this scope; did you mean ‘avcodec_parameters_copy’?
   90 |         ret = avcodec_parameters_to_context(pCodecCtx, pFormatCtx->streams[videoStream]->codecpar);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               avcodec_parameters_copy
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:100:46: error: invalid use of incomplete type ‘struct AVCodecContext’
  100 |         pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
      |                                              ^~
In file included from /usr/include/libavformat/avformat.h:313,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.h:15,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:10:
/usr/include/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:107:12: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
  107 |         if(avcodec_open2(pCodecCtx, pCodec, NULL)<0) {
      |            ^~~~~~~~~~~~~
      |            avio_open2
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:118:26: error: invalid use of incomplete type ‘struct AVCodecContext’
  118 |         width = pCodecCtx->width;
      |                          ^~
In file included from /usr/include/libavformat/avformat.h:313,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.h:15,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:10:
/usr/include/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:119:27: error: invalid use of incomplete type ‘struct AVCodecContext’
  119 |         height = pCodecCtx->height;
      |                           ^~
In file included from /usr/include/libavformat/avformat.h:313,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.h:15,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:10:
/usr/include/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp: In member function ‘void AVIFile::draw()’:
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:147:51: error: ‘avcodec_send_packet’ was not declared in this scope; did you mean ‘avcodec_get_name’?
  147 |                                         int ret = avcodec_send_packet(pCodecCtx, &packet);
      |                                                   ^~~~~~~~~~~~~~~~~~~
      |                                                   avcodec_get_name
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:152:47: error: ‘avcodec_receive_frame’ was not declared in this scope; did you mean ‘avcodec_profile_name’?
  152 |                                         ret = avcodec_receive_frame(pCodecCtx, pFrame);
      |                                               ^~~~~~~~~~~~~~~~~~~~~
      |                                               avcodec_profile_name
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:179:33: error: ‘avcodec_close’ was not declared in this scope; did you mean ‘avio_close’?
  179 |                                 avcodec_close(pCodecCtx);
      |                                 ^~~~~~~~~~~~~
      |                                 avio_close
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:191:43: error: ‘avcodec_alloc_context3’ was not declared in this scope; did you mean ‘avio_alloc_context’?
  191 |                                 pCodecCtx=avcodec_alloc_context3(NULL);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~
      |                                           avio_alloc_context
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:196:39: error: ‘avcodec_parameters_to_context’ was not declared in this scope; did you mean ‘avcodec_parameters_copy’?
  196 |                                 ret = avcodec_parameters_to_context(pCodecCtx, pFormatCtx->streams[videoStream]->codecpar);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                       avcodec_parameters_copy
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:205:70: error: invalid use of incomplete type ‘struct AVCodecContext’
  205 |                                 pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
      |                                                                      ^~
In file included from /usr/include/libavformat/avformat.h:313,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.h:15,
                 from /home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:10:
/usr/include/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:212:36: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
  212 |                                 if(avcodec_open2(pCodecCtx, pCodec, NULL)<0) {
      |                                    ^~~~~~~~~~~~~
      |                                    avio_open2
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp: In member function ‘void AVIFile::close()’:
/home/gigas/documents/repos/vangers-git/src/vangers/lib/xsound/avi.cpp:237:9: error: ‘avcodec_close’ was not declared in this scope; did you mean ‘avio_close’?
  237 |         avcodec_close(pCodecCtx);
      |         ^~~~~~~~~~~~~
      |         avio_close
make[2]: *** [lib/xsound/CMakeFiles/xsound.dir/build.make:90: lib/xsound/CMakeFiles/xsound.dir/avi.cpp.o] Error 1
make[2]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make[1]: *** [CMakeFiles/Makefile2:260: lib/xsound/CMakeFiles/xsound.dir/all] Error 2
make[1]: Leaving directory '/home/gigas/documents/repos/vangers-git/src/vangers/build'
make: *** [Makefile:91: all] Error 2

Arch repos have ffmpeg version 5.0 as default, can this be the cause of failure?

@Gigas002
Copy link
Author

Gigas002 commented Mar 28, 2022

I've managed to build the package, specifying the cmake prefix: cmake -DCMAKE_PREFIX_PATH="/usr/lib/ffmpeg4.4;/usr/include/ffmpeg4.4" ... The game doesn't run yet but at least there's some progress

@Gigas002
Copy link
Author

I'm using gog version of game, here's start.sh (I've replaced vangers_eng64.bin with my vangers build from master branch and commented out local lib_path64="$CURRENT_DIR/lib64") output:

Running Vangers
Set locale. Result:C
"VANGERS: One For The Road" by K-D Lab (SDL Version)
Release (ENG)
XGR_Screen::init
SDL_CreateWindowAndRenderer
SDL_SetWindowTitle
Load and set icon
SDL_SetRenderDrawColor
SDL_RenderClear
SDL_RenderPresent
SDL_SetHint
XGR32_ScreenSurface = SDL_CreateRGBSurface
SDL_SetSurfacePalette
SDL_CreateTexture sdlTexture
SDL_ShowCursor
window show
window hidden
window show
window focus gained
Joystick not found
Set locale. Result:C
ScriptFile::load_bscriptresource/iscreen/oftr.scb file.
Start load decomp trees
Abort: iObject not found... code:1 val:-1

@caiiiycuk
Copy link
Contributor

Скорее всего binary scripts устарел... Нужно что бы данные совпадали с версией игры. Либо нужно собирать без BINARY_SCRIPT и с датой которая лежит в репозитории.

@caiiiycuk
Copy link
Contributor

Лучше спрашивать тут https://t.me/joinchat/Ee_27BvYQvEqndJE4lyKIg

@Gigas002
Copy link
Author

Скорее всего binary scripts устарел... Нужно что бы данные совпадали с версией игры. Либо нужно собирать без BINARY_SCRIPT и с датой которая лежит в репозитории.

Спасибо, добавил -DBINARY_SCRIPT=OFF и все заработало!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants