[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help required: riseup-vpn



Each component of an upstream program has to design itself to use either Qt5 or Qt6.  When you are packaging it in Debian, you have to use whatever the upstream code is designed for.  Many programs are in the process of switching their code base from Qt5 to Qt6, which appears to be the case here.


README.md indicates that the upstream code requires Qt6 >= 6.6.


You need to make sure you have all of the components listed in the main CMakeLists.txt available in your Build-Depends.


https://salsa.debian.org/go-team/packages/riseup-vpn/-/blob/debian/sid/CMakeLists.txt?ref_type=heads


target_link_libraries(bitmask PRIVATE

    # Remove: L../../lib

    Qt::Core

    Qt::Gui

    Qt::Qml

    Qt::Quick

    Qt::QuickControls2

    Qt::Svg

    Qt::Widgets

    ${LIB_TO_INCLUDE}

    pthread

)


Most of these look like they are included in qt6-base-dev.


https://packages.debian.org/sid/amd64/qt6-base-dev/filelist


A bunch of others are in qt6-declarative-dev.


https://packages.debian.org/sid/amd64/qt6-base-dev/filelist


However, both of these packages are currently version 6.4 in unstable.  Version 6.6 is being worked on as we speak, but if upstream really does have a hard dependency on 6.6 it isn’t surprising that it doesn’t currently build.


Soren




On Saturday, May 4, 2024 5:26:06 AM MST Nilesh Patra wrote:

> Hi all,

>

> I am trying to update riseup-vpn to its latest version. I am seeing some

> confused mix of qt5 and qt6 - not really sure how qt updates for applications

> work. I tried to replace qt5 packages (builddeps) with its qt6 equivalents but

> I

> end up with:

> | ==============BUILD GUI===============

> | TARGET: bitmask-vpn

> | VENDOR_PATH: providers

> | [build.sh] VENDOR_PATH = providers

> | [+] Building BitmaskVPN

> | lrelease: could not find a Qt installation of ''

> | make[2]: *** [Makefile:151: build_gui] Error 1

> | make[2]: Leaving directory

> | '/<<PKGBUILDDIR>>/_build/src/0xacab.org/leap/bitmask-vpn'

> I was getting a different error with qt5:

> | /usr/lib/qt5/bin/qmlcachegen

> | --resource=/tmp/riseup-vpn_/_build/src/0xacab.org/leap/bitmask-vpn/gui/gui.

> | qrc -o release/gui_main_qml.cpp ../../gui/main.qml Error compiling qml file:

> | ../../gui/main.qml:0: error: Library import requires a version

> | ../../gui/main.qml:0: error: Library import requires a version

> | ../../gui/main.qml:0: error: Library import requires a version

> | ../../gui/main.qml:0: error: Library import requires a version

> | ../../gui/main.qml:0: error: Library import requires a version

>

> But given that the readme says to use qt6, I should not be using qt5 here. The

> versions from the qml file have been omitted in this release.

>

> I am also puzzled with different paths for the same binaries across qt

> versions for instance qmlcachegen is:

>

> qt6-declarative-dev-tools: /usr/lib/qt6/libexec/qmlcachegen

> qtdeclarative5-dev-tools: /usr/lib/qt5/bin/qmlcachegen

>

> Why is that?

>

> In any case, I am not sure how to proceed from here (the error with lrelease).

> Can anyone help out, please? My changes are available in salsa at:

> https://salsa.debian.org/go-team/packages/riseup-vpn

>

> I'd appreciate any pointers.

>

> Best,

> Nilesh



--

Soren Stoutner

soren@stoutner.com

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: