graphia icon indicating copy to clipboard operation
graphia copied to clipboard

Document build instructions for debian bullseye

Open jberryman opened this issue 4 years ago • 6 comments

I'm struggling a bit getting a build on bullseye, though I think it should be possible.

This is as far as I've gotten:

$ sudo apt install libqt5svg5-dev qtdeclarative5-dev qtbase5-dev
$ # cmake per README succeeds

At this point there are runtime errors when doing build/Graphia.

Looks like some progress installing some qt libraries:

$ sudo apt install qml-module-qtquick-layouts qml-module-qt-labs-platform qml-module-qtquick-controls qml-module-qtquick-dialogs

At this point I get:

$ build/Graphia 
QML debugging is enabled. Only use this in a safe environment.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
QQmlApplicationEngine failed to load component
qrc:/qml/main.qml:49:5: Type DocumentUI unavailable
qrc:/qml/DocumentUI.qml:1225:13: Type Transforms unavailable
qrc:/qml/Transform/Transforms.qml:42:5: Type CreateTransformDialog unavailable
qrc:/qml/Transform/CreateTransformDialog.qml:311:33: Type TransformParameter unavailable
qrc:/qml/Transform/TransformParameter.qml:221:5: Type TreeComboBox unavailable
qrc:/qml/Controls/TreeComboBox.qml:21:1: module "QtQuick.Controls" version 2.12 is not installed

I'd love to be able to build without messing around with a full Qt distribution

jberryman avatar Feb 02 '21 15:02 jberryman

Adding qml-module-qtquick-controls2 qml-module-qtquick-shapes to above and it seems to build and run.

...but I can't seem to load a gml file? After opening file graphia offers to open it with "generic" or "websearch", both of which don't work.

jberryman avatar Feb 03 '21 22:02 jberryman

I can have a look if you supply the gml file...

timangus avatar Feb 09 '21 18:02 timangus

graph.gml.tar.gz

Thanks. Does it look as though I'm building and launching graphia correctly?

jberryman avatar Feb 09 '21 20:02 jberryman

The gml file is malformed in at least 2 ways. Firstly, the root element should be called graph, not anonymous i.e.

graph
[
  ...
]

Not,

[
  ...
]

Secondly, your node and edge ids are larger than 32bit signed integers, which is not allowed for GML. There may be other issues, but I didn't look further. If you've got to the point where you can load a file, it looks at though you've successfully built Graphia.

timangus avatar Feb 18 '21 12:02 timangus

I just tested (am using Debian myself), and the current required packages are:

qt6-base-dev qt6-declarative-dev qt6-svg-dev qt6-webengine-dev libqt6quicklayouts6 libqt6labsqmlmodels6 libqt6quickcontrols2-6 libqt6quickdialogs2-6  libqt6quickdialogs2utils6 libqt6quickshapes6 libqt6webenginequick6

The related PR used QT5 libs, as it is from back in 2021.

With these packages installed, the cmake configure step succeeds, but I then get compile errors with current master. Should I open a new issue for them?

hoijui avatar Sep 10 '23 11:09 hoijui

With these packages installed, the cmake configure step succeeds, but I then get compile errors with current master. Should I open a new issue for them?

Yes, if you believe it's a problem with Graphia itself, as opposed to your configuration.

timangus avatar Sep 11 '23 11:09 timangus