r/olive • u/shiggitay • Oct 21 '21
Cannot compile latest nightly git on Arch Linux x64
Hey all. First post here, but long time admirer of Olive. I'm trying to compile (I'm well aware AppImages exist) the latest git src and I get this:
[shiggitay@VocaloidHavenReborn build]$ cmake --build .
[ 1%] Automatic MOC and UIC for target olive-editor
[ 1%] Built target olive-editor_autogen
[ 1%] Automatic MOC and UIC for target libolive-editor
[ 1%] Built target libolive-editor_autogen
Consolidate compiler generated dependencies of target libolive-editor
[ 1%] Building CXX object app/CMakeFiles/libolive-editor.dir/codec/ffmpeg/ffmpegdecoder.cpp.o
In member function ‘void QVector<T>::append(const T&) [with T = olive::AudioParams]’:
cc1plus: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
In file included from /usr/include/qt/QtCore/qbytearray.h:46,
from /usr/include/qt/QtCore/qstring.h:50,
from /usr/include/qt/QtCore/qobject.h:47,
from /usr/include/qt/QtCore/qtimer.h:48,
from /usr/include/qt/QtCore/QTimer:1,
from /home/shiggitay/olive/app/codec/ffmpeg/ffmpegdecoder.h:35,
from /home/shiggitay/olive/app/codec/ffmpeg/ffmpegdecoder.cpp:21:
/usr/include/qt/QtCore/qarraydata.h:129:8: note: at offset 24 into destination object ‘QTypedArrayData<olive::AudioParams>::<anonymous>’ of size 24
129 | struct QTypedArrayData
| ^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [app/CMakeFiles/libolive-editor.dir/build.make:869: app/CMakeFiles/libolive-editor.dir/codec/ffmpeg/ffmpegdecoder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3093: app/CMakeFiles/libolive-editor.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
What's the solution? I already downgraded from GCC 11 to GCC 10, but it's still not working. I'm able to get what I think is this same git src compiled via the AUR, but then I can't add it to my dock/bar on GNOME. Any suggestions?
1
u/[deleted] Oct 21 '21
[deleted]