macstrop icon indicating copy to clipboard operation
macstrop copied to clipboard

calligra build error: `ASSERT failure in : "Define not found office-document-settings"`

Open barracuda156 opened this issue 1 year ago • 5 comments

What to do about this one?

:info:build ASSERT failure in : "Define not found office-document-settings", file /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_kde_calligra/calligra/work/calligra-2.9.10/devtools/rng2cpp/rng2cpp.cpp, line 772
:info:build /opt/local/bin/g++-mp-14 -pipe -Os -DNDEBUG -fno-common -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -std=c++11 -arch ppc -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -single_module -multiply_defined suppress -Wl,-headerpad_max_install_names -compatibility_version 14.0.0 -current_version 14.0.0 -o ../../lib/libkoplugin.14.0.0.dylib -install_name /opt/local/lib/libkoplugin.14.dylib CMakeFiles/koplugin.dir/koplugin_automoc.cpp.o CMakeFiles/koplugin.dir/KoPluginLoader.cpp.o CMakeFiles/koplugin.dir/KoServiceLocator.cpp.o  -Wl,-rpath,/opt/local/lib /opt/local/lib/libkdecore.5.14.38.dylib /opt/local/libexec/qt4/lib/libQtDBus.dylib /opt/local/libexec/qt4/lib/libQtCore.dylib -framework Carbon
:info:build Sat Aug 31 01:22:33 36-25.wireless-city.scu.edu.tw rng2cpp[67050] <Error>: kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection
:info:build Sat Aug 31 01:22:33 36-25.wireless-city.scu.edu.tw rng2cpp[67050] <Error>: kCGErrorInvalidConnection : Set a breakpoint at CGErrorBreakpoint() to catch errors as they are returned
:info:build cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_kde_calligra/calligra/work/build/libs/koplugin && /opt/local/bin/cmake -E cmake_symlink_library ../../lib/libkoplugin.14.0.0.dylib ../../lib/libkoplugin.14.dylib ../../lib/libkoplugin.dylib
:info:build Sat Aug 31 01:22:33 36-25.wireless-city.scu.edu.tw rng2cpp[67050] <Error>: kCGErrorInvalidConnection : CGSGetCurrentCursorLocation: Invalid connection

barracuda156 avatar Aug 30 '24 17:08 barracuda156

Are you really serious about getting Calligra to work? I've been very tempted just to retire the port...

RJVB avatar Aug 30 '24 18:08 RJVB

It depends on how troublesome it is supposed to be :) Surely, an office package based on Qt is better than X11-based Abiword. But if it is a work for a month, then perhaps I can live without it.

Assuming it did build at some point on macOS with Qt4 in existing form of its portfile, it should be fairly trivial to get it to build again. What could have broken so badly? Okay, we got newer CMake with some changed policies and a newer compiler (in the worst case it can be hardcoded to an older version). Qt4 is the same, macOS 10.6 is the same.

barracuda156 avatar Aug 30 '24 18:08 barracuda156

Surely, an office package based on Qt is better than X11-based Abiword. But if it is a work for a month, then perhaps I can live without it.

I tried an older Abiword version the other day and yeah, I'd say it was worse than Calligra. But also a lot lighter.

Lots of dependencies have been upgraded of course, which could explain them not being found. The thing is that I'm just really not interested in going down a rabbit hole to get this to build again. Calligra has always lagged behind the concurrent Libre/OpenOffice (and probably even Apple Pages) versions at least in terms of functionality.

RJVB avatar Aug 30 '24 18:08 RJVB

Perhaps just leave it as-is then for the time-being? There is no urgency in removing something. I will probably give it a try, perhaps minimizing non-essential components. If it still fails, let it be, I will not spend too much of effort on it.

barracuda156 avatar Aug 30 '24 19:08 barracuda156

Yeah, if you don't mind I'd prefer that. I just checked, I didn't preserve my KDE4 calligra work dir so I can no longer use that as a reference to check which dependency versions I built it against.

RJVB avatar Aug 30 '24 21:08 RJVB