[Interest] Qt6 on Ubuntu 22

Nuno Santos nuno.santos at imaginando.pt
Thu Dec 29 20:04:02 CET 2022


Yes, that was the problem. I have new one though…

19:00:54: Starting /home/nsantos/workspace/build-test-Desktop-Debug/apptest...
QML debugging is enabled. Only use this in a safe environment.
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QQmlApplicationEngine failed to load component
qrc:/test/main.qml: module "QtQml.WorkerScript" is not installed
19:00:55: /home/nsantos/workspace/build-test-Desktop-Debug/apptest exited with code 255

It says worker script is not installed but it seems to be installed:

nsantos at nuno-ubuntu:/usr/lib/x86_64-linux-gnu/cmake/Qt6$ sudo apt install libqt6qmlworkerscript6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libqt6qmlworkerscript6 is already the newest version (6.2.4+dfsg-3ubuntu1).
libqt6qmlworkerscript6 set to manually installed.
The following packages were automatically installed and are no longer required:
  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58 libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0
  libchromaprint1 libcodec2-1.0 libdav1d5 libflashrom1 libflite1 libftdi1-2 libgme0 libgsm1 libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libmfx1 libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0
  libpostproc55 librabbitmq4 librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0 libva-drm2
  libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 pocketsphinx-en-us
  va-driver-all vdpau-driver-all
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
nsantos at nuno-ubuntu:/usr/lib/x86_64-linux-gnu/cmake/Qt6$

Any ideas?



> On 29 Dec 2022, at 17:11, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On Thursday, 29 December 2022 11:31:15 -03 Nuno Santos wrote:
>> [ 66%] Building CXX object
>> CMakeFiles/appqt6-test.dir/appqt6-test_qmltyperegistrations.cpp.o
>> /home/nsantos/workspace/build-qt6-test-Desktop-Debug/appqt6-test_qmltypereg
>> istrations.cpp:17:23: error: variable has incomplete type 'void'
>> Q_QMLTYPE_EXPORT void qml_register_types_qt6-test()
> Most likely, your target name has a dash (qt6-test). Use an identifier-like 
> target name.
> This can be fixed in the Qt scripts of course, but it won't benefit you now.
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Cloud Software Architect - Intel DCAI Cloud Engineering
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

More information about the Interest mailing list