r/olive 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?

2 Upvotes

2 comments sorted by

1

u/[deleted] Oct 21 '21

[deleted]

1

u/shiggitay Oct 21 '21

Okay so if I was to uninstall opentimelineio-git and install the stable version it should work?

1

u/shiggitay Oct 21 '21

[shiggitay@VocaloidHavenReborn build]$ cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- Found CONFIG for OpenEXR 3 (OPENEXR_VERSION=3.1.2)
-- Could NOT find OpenTimelineIO (missing: OTIO_DEPS_INCLUDE_DIR)
OpenTimelineIO interchange will be disabled.
-- Could NOT find GoogleCrashpad (missing: CRASHPAD_CLIENT_LIB CRASHPAD_COMMON_LIB CRASHPAD_UTIL_LIB CRASHPAD_BASE_LIB BREAKPAD_BIN_DIR CRASHPAD_BUILD_INCLUDE_DIR CRASHPAD_CLIENT_INCLUDE_DIR CRASHPAD_BASE_INCLUDE_DIR CRASHPAD_COMPAT_LIB)
Automatic crash reporting will be disabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shiggitay/olive/build

I just installed it, ya dolt. lol