Compile error - Git master 2022-11-21
Hi there!
I get a compile error now with the latest git sources:
[ 67%] Building CXX object src/CMakeFiles/kdenliveLib.dir/project/cliptranscode.cpp.o
In file included from /ad/OS/aur/kdenlive-git/src/kdenlive/src/project/cliptranscode.cpp:14:
/ad/OS/aur/kdenlive-git/src/kdenlive/src/utils/KMessageBox_KdenliveCompat.h:20:1: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
20 | inline constexpr auto PrimaryAction = KMessageBox::Yes;
| ^~~~~~
/ad/OS/aur/kdenlive-git/src/kdenlive/src/utils/KMessageBox_KdenliveCompat.h:21:1: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
21 | inline constexpr auto SecondaryAction = KMessageBox::No;
| ^~~~~~
[ 68%] Building CXX object src/CMakeFiles/kdenliveLib.dir/project/invaliddialog.cpp.o
[ 68%] Building CXX object src/CMakeFiles/kdenliveLib.dir/project/projectmanager.cpp.o
In file included from /ad/OS/aur/kdenlive-git/src/kdenlive/src/project/projectmanager.cpp:33:
/ad/OS/aur/kdenlive-git/src/kdenlive/src/utils/KMessageBox_KdenliveCompat.h:20:1: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
20 | inline constexpr auto PrimaryAction = KMessageBox::Yes;
| ^~~~~~
/ad/OS/aur/kdenlive-git/src/kdenlive/src/utils/KMessageBox_KdenliveCompat.h:21:1: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
21 | inline constexpr auto SecondaryAction = KMessageBox::No;
| ^~~~~~
/ad/OS/aur/kdenlive-git/src/kdenlive/src/project/projectmanager.cpp: In member function ‘void ProjectManager::doOpenFile(const QUrl&, KAutoSaveFile*, bool)’:
/ad/OS/aur/kdenlive-git/src/kdenlive/src/project/projectmanager.cpp:644:52: error: ‘PrimaryAction’ is not a member of ‘KMessageBox::ButtonCode’
644 | if (answer == KMessageBox::ButtonCode::PrimaryAction) { // Open Backup
| ^~~~~~~~~~~~~
/ad/OS/aur/kdenlive-git/src/kdenlive/src/project/projectmanager.cpp:646:59: error: ‘SecondaryAction’ is not a member of ‘KMessageBox::ButtonCode’
646 | } else if (answer == KMessageBox::ButtonCode::SecondaryAction) { // Recover
| ^~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/kdenliveLib.dir/build.make:2590: src/CMakeFiles/kdenliveLib.dir/project/projectmanager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2518: src/CMakeFiles/kdenliveLib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
-> error making: kdenlive-git