Skip to content

Instantly share code, notes, and snippets.

@Patola
Created December 18, 2024 03:55
Show Gist options
  • Save Patola/38320fadbfec56a4df483971d405dafd to your computer and use it in GitHub Desktop.
Save Patola/38320fadbfec56a4df483971d405dafd to your computer and use it in GitHub Desktop.
openmw-vr-git build attempt
[4:51] [4540] [patola@risadinha openmw-vr-git]% makepkg -si
==> Making package: openmw-vr 0.48.0-1 (Wed Dec 18 04:52:00 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found openmw-vr-0.48.0.tar.gz
-> Found OpenXR-SDK_4_OpenMW-VR_Nix.tar.gz
==> Validating source files with sha256sums...
openmw-vr-0.48.0.tar.gz ... Passed
OpenXR-SDK_4_OpenMW-VR_Nix.tar.gz ... Passed
==> Extracting sources...
-> Extracting openmw-vr-0.48.0.tar.gz with bsdtar
bsdtar: Failed to set default locale
-> Extracting OpenXR-SDK_4_OpenMW-VR_Nix.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Configuring OpenMW...
-- Enabling OpenGL support
-- Enabling Vulkan support
-- Presentation backend selected for hello_xr, loader_test, conformance: xlib
-- BUILD_WITH_XLIB_HEADERS: ON
-- BUILD_WITH_XCB_HEADERS: ON
-- BUILD_WITH_WAYLAND_HEADERS: ON
-- Found glslc: /usr/bin/glslc
-- OpenXR 1.1.43
-- Found and will use pre-generated xr_generated_dispatch_table.h in source tree
-- Found and will use pre-generated xr_generated_dispatch_table.c in source tree
-- Found and will use pre-generated xr_generated_dispatch_table_core.h in source tree
-- Found and will use pre-generated xr_generated_dispatch_table_core.c in source tree
-- Found and will use pre-generated xr_generated_loader.hpp in source tree
-- Found and will use pre-generated xr_generated_loader.cpp in source tree
-- Found FFmpeg_AVCODEC 61.26.100
-- Found FFmpeg_AVFORMAT 61.9.100
-- Found FFmpeg_AVUTIL 59.50.100
-- Found FFmpeg_SWSCALE 8.12.100
-- Found FFmpeg_SWRESAMPLE 5.4.100
-- Checking if Bullet uses double precision
-- Bullet uses double precision
-- Found LIBUNSHIELD
-- Checking if OSG supports multiview
Osg does not support multiview, disabling use of GL_OVR_multiview
CMake Warning (dev) at CMakeLists.txt:451 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/include (found suitable version "1.86.0", minimum required is "1.6.2") found components: system filesystem program_options iostreams regex
CMake Warning (dev) at CMakeLists.txt:454 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /usr/include (found suitable version "1.86.0", minimum required is "1.77.0") found components: atomic
-- Found MyGUI 3.4.3
-- Found SDL2 2.30.10
-- Found LuaJit
-- Configuring done (1.9s)
-- Generating done (0.2s)
-- Build files have been written to: /dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/build
[ 0%] Built target generate_openxr_header
[ 0%] Built target xr_global_generated_files
[ 1%] Built target smhasher
[ 1%] Built target local_tinyxml
[ 1%] Built target osgQt
[ 1%] Building CXX object extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/videostate.cpp.o
[ 1%] Built target libopenxr_loader.so.1.1
[ 1%] Building CXX object extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/audiodecoder.cpp.o
[ 2%] Built target oics
[ 4%] Built target openxr_loader
[ 4%] Building CXX object components/CMakeFiles/components.dir/resource/scenemanager.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/bsa/bsa_file.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/vfs/bsaarchive.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/vfs/manager.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/vfs/filesystemarchive.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/vfs/registerarchives.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/resource/keyframemanager.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/resource/imagemanager.cpp.o
[ 4%] Building CXX object components/CMakeFiles/components.dir/resource/bulletshapemanager.cpp.o
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/bulletshape.cpp.o
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/niffilemanager.cpp.o
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/multiobjectcache.cpp.o
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘void Video::MovieAudioDecoder::setupFormat()’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:112:50: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channel_layout’; did you mean ‘ch_layout’?
112 | uint64_t inputChannelLayout = mAudioContext->channel_layout;
| ^~~~~~~~~~~~~~
| ch_layout
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:75: error: ‘AVCodecContext’ {aka ‘struct AVCodecContext’} has no member named ‘channels’
114 | inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
| ^~~~~~~~
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:30: error: ‘av_get_default_channel_layout’ was not declared in this scope
114 | inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:127:33: error: ‘swr_alloc_set_opts’ was not declared in this scope; did you mean ‘swr_alloc_set_opts2’?
127 | mAudioResampler->mSwr = swr_alloc_set_opts(mAudioResampler->mSwr,
| ^~~~~~~~~~~~~~~~~~
| swr_alloc_set_opts2
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘int Video::MovieAudioDecoder::synchronize_audio()’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:161:21: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
161 | av_get_channel_layout_nb_channels(mOutputChannelLayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘int Video::MovieAudioDecoder::audio_decode_frame(AVFrame*, int&)’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:207:61: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
207 | if(av_samples_alloc(&mDataBuf, nullptr, av_get_channel_layout_nb_channels(mOutputChannelLayout),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:224:46: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
224 | int result = frame->nb_samples * av_get_channel_layout_nb_channels(mOutputChannelLayout) *
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘size_t Video::MovieAudioDecoder::read(char*, size_t)’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:301:23: error: ‘av_get_channel_layout_nb_channels’ was not declared in this scope
301 | * av_get_channel_layout_nb_channels(mOutputChannelLayout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/build.make:107: extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/audiodecoder.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/resourcesystem.cpp.o
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/stats.cpp.o
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/animation.cpp.o
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp: In member function ‘virtual void Bsa::BSAFile::readHeader()’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp:190:10: error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
190 | std::sort(mFiles.begin(), mFiles.end(), [](const FileStruct& left, const FileStruct& right) {
| ^~~~
| qsort
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp: In member function ‘virtual void Bsa::BSAFile::writeHeader()’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp:214:10: error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
214 | std::sort(mFiles.begin(), mFiles.end(), [](const FileStruct& left, const FileStruct& right) {
| ^~~~
| qsort
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp: In member function ‘void Bsa::BSAFile::addFile(const std::string&, std::istream&)’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/bsa/bsa_file.cpp:304:18: error: ‘rotate’ is not a member of ‘std’
304 | std::rotate(mFiles.begin(), mFiles.begin() + 1, mFiles.end());
| ^~~~~~
[ 5%] Building CXX object components/CMakeFiles/components.dir/resource/foreachbulletobject.cpp.o
make[2]: *** [components/CMakeFiles/components.dir/build.make:233: components/CMakeFiles/components.dir/bsa/bsa_file.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/videostate.cpp: In member function ‘void Video::VideoState::init(std::unique_ptr<std::basic_istream<char> >&&, const std::string&)’:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/videostate.cpp:730:44: error: invalid conversion from ‘int (*)(void*, uint8_t*, int)’ {aka ‘int (*)(void*, unsigned char*, int)’} to ‘int (*)(void*, const uint8_t*, int)’ {aka ‘int (*)(void*, const unsigned char*, int)’} [-fpermissive]
730 | AVIOContext *ioCtx = avio_alloc_context(nullptr, 0, 0, this, istream_read, istream_write, istream_seek);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void*, uint8_t*, int) {aka int (*)(void*, unsigned char*, int)}
In file included from /usr/include/libavformat/avformat.h:319,
from /dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/videostate.hpp:27,
from /dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/extern/osg-ffmpeg-videoplayer/videostate.cpp:1:
/usr/include/libavformat/avio.h:404:25: note: initializing argument 6 of ‘AVIOContext* avio_alloc_context(unsigned char*, int, int, void*, int (*)(void*, uint8_t*, int), int (*)(void*, const uint8_t*, int), int64_t (*)(void*, int64_t, int))’
404 | int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/build.make:93: extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/videostate.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1882: extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/resource/stats.cpp:17:
/dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/myguiplatform/myguidatamanager.hpp:47:24: error: conflicting return type specified for ‘virtual const std::string& osgMyGUI::DataManager::getDataPath(const std::string&) const’
47 | const std::string& getDataPath(const std::string& _name) const override;
| ^~~~~~~~~~~
In file included from /dados/t/openmw-vr-git/src/openmw-770584c5112e46be1a00b9e357b0b7f6b449cac5/components/myguiplatform/myguidatamanager.hpp:4:
/usr/include/MYGUI/MyGUI_DataManager.h:51:37: note: overridden function is ‘virtual std::string MyGUI::DataManager::getDataPath(const std::string&) const’
51 | virtual std::string getDataPath(const std::string& _name) const = 0;
| ^~~~~~~~~~~
make[2]: *** [components/CMakeFiles/components.dir/build.make:429: components/CMakeFiles/components.dir/resource/stats.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2008: components/CMakeFiles/components.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
[4:54] [4541] [patola@risadinha openmw-vr-git]%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment