Hi! I package rosegarden for Arch Linux.
When building 20.06 I am running into the following problem during build:
[ 23%] Building CXX object src/CMakeFiles/rosegardenprivate.dir/gui/editors/guitar/FingeringListBoxItem.cpp.o
cd /build/rosegarden/src/rosegarden-20.06/build/src && /usr/bin/c++ -DBUILD_DEBUG -DDEBUG -DHAVE_ALSA -DHAVE_LIBJACK -DHAVE_LIBSNDFILE -DHAVE_LIRC -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_URL_CAST_FROM_STRING -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DROSEGARDENP
RIVATE_LIB_MAKEDLL -DSTABLE -DWANT_TIMING -Drosegardenprivate_EXPORTS -I/build/rosegarden/src/rosegarden-20.06/build/src -I/build/rosegarden/src/rosegarden-20.06/src -I/build/rosegarden/src/rosegarden-20.06/build/src/rosegardenprivate_autogen/include -I/usr/include/raptor2 -isystem /usr/include/qt -isystem /usr/includ
e/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtNetwork -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Woverloaded-virtual
-Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -W -Wpointer-arith -fno-check-new -fno-common -fvisibility=hidden -Wsuggest-override -fPIC -fPIC -std=gnu++11 -o CMakeFiles/rosegardenprivate.dir/gui/editors/guitar/
FingeringListBoxItem.cpp.o -c /build/rosegarden/src/rosegarden-20.06/src/gui/editors/guitar/FingeringListBoxItem.cpp
/build/rosegarden/src/rosegarden-20.06/src/gui/widgets/Panner.cpp: In member function ‘virtual void Rosegarden::Panner::paintEvent(QPaintEvent*)’:
/build/rosegarden/src/rosegarden-20.06/src/gui/widgets/Panner.cpp:138:18: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
138 | QPainterPath path;
| ^~~~
The full build output can be found in attachment.
I'm building with
10.1.03.17.35.15.05.15.0If you require more specific information, please do let me know!
Hm, I tried to have the includes available with the following patch:
This way the build succeeds, but now all tests fail:
Can you test the attached patch against the original source? Thanks.
@tedfelix thanks for the reply.
Your attached patch still breaks the build (the panner stuff is built before the thornstyle things):
For the record: My above mentioned patch works, breaks all the tests, but seems to lead to a functioning rosegarden!
Thanks for testing. I missed the original post which shows the issue in Panner. Attached is my second attempt at cleaning up the affected files, Panner and ThornStyle. Please test and let me know how it goes. Will be interesting to see if this fixes the tests. Thanks.
@tedfelix no problem!
The build succeeds now, but the tests still fail:
Oh... I think I now need to run it via
xfvb-runto make it work!See test log in attachment.
Okay, using
xvfb-runmakes most of the tests pass.There's still a last one that is related to
XDG_RUNTIME_DIRnot being set and defaulting to some non-existing path by default:These seem to be quite recent changes.
The directory permissions for
XDG_RUNTIME_DIRseem very strict (i.e. has to be7700, else the test fails before even running).However, even after
and then running the tests, the
TestNotationViewSelectiontest fails (see attachment).Any hints? :)
Anyhow, the build succeeds so I will skip this last failing test somehow and push the new version.
Thanks!
Sorry, yeah. I didn't even know there was something like xvfb. From the output my only guess is that something about xvfb makes it not 100% compatible. If you run it on a desktop it should test out fine.