You are not logged in.

#201 2022-01-16 15:34:00

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,372

Re: Weaver: qt6-webengine browser w/ minimal UI

I was able to build weaver using APKBUILD, but optional dependencies are generally uninstalled after package compilation, so those *-dev packages were not present when I tried this. So I installed optional dependencies for weaver "binutils-gold qt6-qtbase-dev qt6-qtwebengine-dev" , but compilation still failed

[^^]└───▶ g++ -I/usr/include/qt6/ -fPIC -lQt6WebEngineWidgets -lQt6Core -lQt6Widgets -o qt6webtest engine.c
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `main':
engine.c:(.text+0x48): undefined reference to `QApplication::QApplication(int&, char**, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x62): undefined reference to `QWebEngineView::QWebEngineView(QWidget*)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x9c): undefined reference to `QUrl::QUrl(QString const&, QUrl::ParsingMode)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xab): undefined reference to `QWebEngineView::setUrl(QUrl const&)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xb7): undefined reference to `QUrl::~QUrl()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xcf): undefined reference to `QWidget::show()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xd4): undefined reference to `QApplication::exec()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0xe3): undefined reference to `QApplication::~QApplication()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x11a): undefined reference to `QUrl::~QUrl()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text+0x13c): undefined reference to `QApplication::~QApplication()'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o:(.qtversion[qt_version_tag]+0x0): undefined reference to `qt_version_tag'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QString::QString(char const*)':
engine.c:(.text._ZN7QStringC2EPKc[_ZN7QStringC5EPKc]+0x45): undefined reference to `QString::fromUtf8(QByteArrayView)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QByteArrayView::QByteArrayView<char, true>(char const*, long long)':
engine.c:(.text._ZN14QByteArrayViewC2IcLb1EEEPKT_x[_ZN14QByteArrayViewC5IcLb1EEEPKT_x]+0x35): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text._ZN14QByteArrayViewC2IcLb1EEEPKT_x[_ZN14QByteArrayViewC5IcLb1EEEPKT_x]+0x61): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QtPrivate::QPodArrayOps<char16_t>::destroyAll()':
engine.c:(.text._ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv[_ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv]+0x32): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: engine.c:(.text._ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv[_ZN9QtPrivate12QPodArrayOpsIDsE10destroyAllEv]+0x63): undefined reference to `qt_assert(char const*, char const*, int)'
/usr/lib/gcc/x86_64-alpine-linux-musl/11.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/ccOgGELn.o: in function `QTypedArrayData<char16_t>::deallocate(QArrayData*)':
engine.c:(.text._ZN15QTypedArrayDataIDsE10deallocateEP10QArrayData[_ZN15QTypedArrayDataIDsE10deallocateEP10QArrayData]+0x1e): undefined reference to `QArrayData::deallocate(QArrayData*, long long, long long)'
collect2: error: ld returned 1 exit status

EDIT: I wasn't compiling weaver before, I did that only after sodface shared APKBUILD.

Last edited by Docbroke (2022-01-16 15:37:18)


Arch is home!
cwm rofi weaver clifm vis lizzy pass terminator
https://github.com/Docbroke

Offline

#202 2022-01-16 16:07:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,692
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

That's a linker issue.  You need to figure out where those libs are or what they are called on your alpine system as there is no pkgconfig .pc files distributed with qt6 webengine sources.  I'm really not equipped to help with that.  You just need the three shared libraries referred to on the example compiler line I provided, but I have no idea how that'd work in alpine.  You might want to look at the APKBUILD for weaver to see what Carl did as the linker flags needed for this test program are a very small subset of what is used for weaver.  That's the whole point of the test program.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#203 2022-02-08 08:31:25

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,372

Re: Weaver: qt6-webengine browser w/ minimal UI

with newer qt6-webengine, youtube works with weaver in allpine now. I am noticing occasionally unresponsive weaver window which needs restart of weaver. I have also noticed similar thing with telegram-desktop (on both arch and alpine) which also uses qt6. There is bug report https://github.com/telegramdesktop/tdes … sues/17296 for telegram, have you noticed similar thing with weaver?

I don't know how to reproduce this with weaver, yet. It is easy to reproduce with telegram though (as in linked bug report)

Last edited by Docbroke (2022-02-08 08:32:07)


Arch is home!
cwm rofi weaver clifm vis lizzy pass terminator
https://github.com/Docbroke

Offline

#204 2022-02-08 14:15:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,692
Website

Re: Weaver: qt6-webengine browser w/ minimal UI

Docbroke wrote:

I don't know how to reproduce this with weaver, yet.

If you can, let me know.  I don't use telegram.  From reading that bug report, I suspect there may be some interaction with the WM/compositor on whether or not symptoms would be detected.

Last edited by Trilby (2022-02-08 14:15:29)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB