[ SOLVED ] Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post your question about installing or upgrading QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Post one question per topic.

Post Reply
John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

[ SOLVED ] Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Fri Nov 29, 2024 9:04 am

Hi Andrew

I can't seem to get the snapshot to run.. this is what I've tried below:-

Set QT_PLUGIN_PATH Environment Variable:

Command: export QT_PLUGIN_PATH=/usr/lib/qt5/plugins
Result: No change, QCAD still fails to load the xcb plugin.

Force the xcb Platform Plugin:

Command: ./qcad -platform xcb
Result: Still encountered the same error.

Tested Alternative Platform Plugins:

Commands:
./qcad -platform minimal
./qcad -platform offscreen
Result: No change, QCAD still fails to start.

Reinstalled Qt Platform Plugins:

Command: sudo apt install --reinstall qt5-qmake qtbase5-dev qt5-qtdbus libqt5xcbqpa5
Result: QCAD still fails to load the xcb plugin.

Verified Installation of X11 Dependencies:

Command: sudo apt install libx11-dev libxext-dev libxcb1-dev libxrender-dev libxrandr-dev
Result: No change, QCAD still fails to start.

Checked for the Presence of libqxcb.so Plugin:

Command: find / -name "libqxcb.so" 2>/dev/null
Result: Plugin Found: /usr/lib/x86_64-linux-gnu/qt6/plugins/platforms/libqxcb.so

Here's the output after running the basic execution ./qcad from the terminal..

Code: Select all

QCAD version  3.31.2.4
19:02:23: Info:    Could not load the Qt platform plugin "xcb" in "" even though it was found.
Fatal:    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, xcb, minimal, eglfs, offscreen, minimalegl, vkkhrdisplay, vnc, wayland, wayland-egl.

./qcad: line 13: 46393 Aborted                 (core dumped) QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR:$DIR/plugins" "$binary" -platform xcb "$@"

QCAD has unexpectedly quit.

Please use the offscreen or minimal platform plugin for headless systems
(without a running X11 server):
./qcad -platform offscreen

In addition, you might have to override the default Qt style
to prevent the loading of a native desktop style (such as GTK):
./qcad -style plastique
Am I doing something wrong?

OS: Linux Mint 22 x86_64
Kernel: 6.8.0-49-generic
Uptime: 4 hours, 48 mins
Packages: 3381 (dpkg)
Shell: bash 5.2.21
Resolution: 1920x1080, 1920x1080
DE: Cinnamon
Mutter (Muffin)
Theme: cinnamon (Mint-Y)
Theme: Mint-X [GTK2/3]
Icons: Mint-X [GTK2/3]
Terminal: gnome-terminal
CPU: Intel i7-4770 (8) @ 3.900GHz
GPU: NVIDIA Quadro K2000
GPU: Intel HD Graphics
Memory: 3413MiB / 31983MiB

Cheers
John
Last edited by John Hyslop on Thu Dec 05, 2024 5:27 am, edited 1 time in total.
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Fri Nov 29, 2024 9:33 am

Hi Andrew

It looks like the package manager in Linux Mint doesn’t support Qt6 by default, and the packages available are for Qt5. To use the Qt6-specific build of QCAD, I would need to manually download and install the required Qt6 packages. However, I'm not keen on doing this as it might interfere with other applications I rely on.

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
andrew
Site Admin
Posts: 8774
Joined: Fri Mar 30, 2007 6:07 am

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by andrew » Fri Nov 29, 2024 10:27 am

Thanks for the feedback.

Installing Qt 6 (or any version of Qt for that matter) is not required at all since these libraries are all bundled (locally) with QCAD. A QCAD installation does not affect your installation in any way. All QCAD files and libraries are installed into a single directory (the QCAD installation directory) and not littered all over your system.

This is likely a problem with the plugin locations which have changed in Qt. For some reason this does not affect Ubuntu 22.04 where we test Linux snapshots.

Could you try 3.31.2.6 from your download link instead? This might need more iterations. Linux deployment is hard as it's not really one platform but thousands of individual platforms (combinations of hardware, distribution, window manager, X11/Wayland and different versions of all of the above).

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Sat Nov 30, 2024 1:58 am

Hi Andrew

I tried the following from the terminal, still no go:-
./qcad
./qcad -platform offscreen
./qcad -style plastique

The output is the same for all three:-

Code: Select all

QCAD version  3.31.2.6
11:51:21: Info:    Could not load the Qt platform plugin "xcb" in "" even though it was found.
Fatal:    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, xcb, minimal, eglfs, offscreen, minimalegl, vkkhrdisplay, vnc, wayland, wayland-egl.

./qcad: line 13: 50121 Aborted                 (core dumped) QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR:$DIR/plugins" "$binary" -platform xcb "$@"

QCAD has unexpectedly quit.

Please use the offscreen or minimal platform plugin for headless systems
(without a running X11 server):
./qcad -platform offscreen

In addition, you might have to override the default Qt style
to prevent the loading of a native desktop style (such as GTK):
./qcad -style plastique

Regarding Linux Mint:-
Linux Mint is built on top of Ubuntu, meaning it uses the same Ubuntu repositories and package management system (APT, deb packages). This means that software available for Ubuntu can generally be installed on Linux Mint as well.
Linux Mint also benefits from the regular updates and security patches that Ubuntu provides.

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Sun Dec 01, 2024 5:48 am

Hi Andrew

I’ve tested running ./qcad and ./qcad -platform offscreen in the terminal with X11 completely disabled (i.e., no graphical system running), and I’m providing my findings below. The tests were done on a live Linux Mint 22 USB (via Ventoy).

Here are my observations:

./qcad and ./qcad -platform offscreen tested in headless mode. [still not running]
I’ve attached the relevant log files for your review.

Additionally, I tested the same setup on Ubuntu Mate 22.04 (also via Ventoy), and it ran without any errors.

I hope these logs are helpful.
logs.zip
(3.81 KiB) Downloaded 897 times
Cheers
John

PS: Linux Mint reached the #1 spot on DistroWatch last week!
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
andrew
Site Admin
Posts: 8774
Joined: Fri Mar 30, 2007 6:07 am

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by andrew » Tue Dec 03, 2024 8:18 am

Can you please check if all dependencies for the XCB platform plugin are installed?

Code: Select all

ldd platforms/libqxcb.so

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Wed Dec 04, 2024 6:44 am

Hi Andrew

From the terminal run inside the qcadcam snapshot directory

Code: Select all

:~/opt/qcadcam-3.31.2.6-pro-linux-qt6-x86_64$ ldd platforms/libqxcb.so
platforms/libqxcb.so: /lib/x86_64-linux-gnu/libQt6Core.so.6: version `Qt_6.6' not found (required by platforms/libqxcb.so)
	linux-vdso.so.1 (0x00007fff38fd3000)
	libQt6XcbQpa.so.6 => /lib/x86_64-linux-gnu/libQt6XcbQpa.so.6 (0x000071792c457000)
	libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x000071792c44d000)
	libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x000071792c404000)
	libxcb-cursor.so.0 => not found
	libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x000071792c3fd000)
	libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x000071792c3f5000)
	libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x000071792c3f0000)
	libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x000071792c3df000)
	libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x000071792c3d8000)
	libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x000071792c3d3000)
	libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x000071792c3ca000)
	libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x000071792c3be000)
	libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x000071792c3af000)
	libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x000071792c3aa000)
	libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x000071792c38c000)
	libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x000071792c363000)
	libQt6OpenGL.so.6 => /lib/x86_64-linux-gnu/libQt6OpenGL.so.6 (0x000071792c2c6000)
	libQt6Gui.so.6 => /lib/x86_64-linux-gnu/libQt6Gui.so.6 (0x000071792ba00000)
	libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x000071792c23d000)
	libQt6Core.so.6 => /lib/x86_64-linux-gnu/libQt6Core.so.6 (0x000071792b400000)
	libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x000071792c238000)
	libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x000071792b2c3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x000071792c233000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x000071792c22c000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000071792b000000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000071792c143000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000071792b9d2000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000071792ac00000)
	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x000071792aeb7000)
	libSM.so.6 => /lib/x86_64-linux-gnu/libSM.so.6 (0x000071792c137000)
	libICE.so.6 => /lib/x86_64-linux-gnu/libICE.so.6 (0x000071792b9b6000)
	libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x000071792b9ae000)
	libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x000071792c131000)
	libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x000071792b9a6000)
	libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x000071792b979000)
	libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x000071792b967000)
	libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x000071792b916000)
	libQt6DBus.so.6 => /lib/x86_64-linux-gnu/libQt6DBus.so.6 (0x000071792ab4b000)
	libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x000071792b290000)
	libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x000071792ae7f000)
	libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x000071792aa3e000)
	libmd4c.so.0 => /lib/x86_64-linux-gnu/libmd4c.so.0 (0x000071792b27e000)
	libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x000071792a972000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000071792ae63000)
	libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x000071792a8ba000)
	libicui18n.so.74 => /lib/x86_64-linux-gnu/libicui18n.so.74 (0x000071792a400000)
	libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x000071792a000000)
	libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x000071792ae4e000)
	libb2.so.1 => /lib/x86_64-linux-gnu/libb2.so.1 (0x000071792ae30000)
	libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x000071792a82e000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x000071792a774000)
	/lib64/ld-linux-x86-64.so.2 (0x000071792c520000)
	libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x000071792a366000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x000071792ae26000)
	libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x000071792a75e000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x000071792a33b000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x000071792a2ec000)
	libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x000071792a2c6000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x000071792ae12000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x000071792a750000)
	libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x0000717928200000)
	libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x000071792a270000)
	libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x000071792a261000)
	libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x0000717928120000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x000071792a23e000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x000071792a231000)
	libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x0000717927fd8000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x000071792a20f000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x0000717929fce000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x0000717929fa9000)


Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
andrew
Site Admin
Posts: 8774
Joined: Fri Mar 30, 2007 6:07 am

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by andrew » Wed Dec 04, 2024 9:17 am

This would definitely be a problem:

Code: Select all

libxcb-cursor.so.0 => not found
Try installing the package libxcb-cursor0 in the way you usually install packages, for example:

Code: Select all

sudo apt install libxcb-cursor0
Or at:

https://community.linuxmint.com/softwar ... cb-cursor0

John Hyslop
Premier Member
Posts: 520
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by John Hyslop » Thu Dec 05, 2024 5:25 am

Hi Andrew

That's it.. :)
Thanks

Cheers
John
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

User avatar
andrew
Site Admin
Posts: 8774
Joined: Fri Mar 30, 2007 6:07 am

Re: [ SOLVED ] Snapshot qcadcam-3.31.2.4-pro-linux-qt6-x86_64 Not Running

Post by andrew » Thu Dec 05, 2024 8:43 am

Great, thanks for letting me know!

Post Reply

Return to “QCAD Installation and Upgrades”