[solved] QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

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
luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

[solved] QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Wed Sep 09, 2020 12:59 am

I've just upgraded my machine to Linux Mint version 20 (Ulyana) XFCE by doing a fresh install. After completing the install I reinstalled QCAD Pro 3.24.2 and attempted to run it from the start menu, but received no response. I did the same from the terminal and receive the following:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ QCAD version  3.24.2
Fatal:    This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
./qcad: line 9:  9467 Aborted                 (core dumped) LD_LIBRARY_PATH="$DIR" "$binary" "$@"

QCAD has unexpectedly quit.

Please use the offscreen 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
I checked for the xcb plugin and it is in fact installed on the system. I also tried the "./qcad -style plastique", but that produced the same result.

So I'm left needing some help understanding what the problem might be and how to fix it.

Thanks
Bill Lugg

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

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Wed Sep 09, 2020 6:59 am

Can you try:

Code: Select all

export QT_DEBUG_PLUGINS=1
./qcad
And post the output? Thanks.

luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Wed Sep 09, 2020 3:04 pm

Here are the results of your request:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ export QT_DEBUG_PLUGINS=1
luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ ./qcad
QCAD version  3.24.2
08:02:10: Debug:    QFactoryLoader::QFactoryLoader() checking directory path "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms" ...
08:02:10: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqlinuxfb.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 328961
}


08:02:10: Debug:    Got keys from plugin meta data ("linuxfb")
08:02:10: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqminimal.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 328961
}


08:02:10: Debug:    Got keys from plugin meta data ("minimal")
08:02:10: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqoffscreen.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 328961
}


08:02:10: Debug:    Got keys from plugin meta data ("offscreen")
08:02:10: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 328961
}


08:02:10: Debug:    Got keys from plugin meta data ("xcb")
08:02:10: Debug:    loaded library "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so"
Warning:  QLibraryPrivate::loadPlugin failed on "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so" : "Cannot load library /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so: (libSM.so.6: cannot open shared object file: No such file or directory)"
Fatal:    This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
./qcad: line 9:  4089 Aborted                 (core dumped) LD_LIBRARY_PATH="$DIR" "$binary" "$@"

QCAD has unexpectedly quit.

Please use the offscreen 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
FWIW, I noticed the statement that it couldn't find or load "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so" so I checked and found libqxcb.so in in the stated folder.

Thanks for looking...
Bill Lugg

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

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Wed Sep 09, 2020 7:53 pm

Thanks.

The key is:

libSM.so.6: cannot open shared object file: No such file or directory

libqxcb.so depends on libSM.so.6. You'll have to make sure that this is installed.

luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Thu Sep 10, 2020 12:32 am

libsm.s0.6 is installed. According the Synaptic version 1.2.3-1 is installed.

Bill Lugg

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

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Thu Sep 10, 2020 7:04 am

OK. Can you run an ldd on libxcb.so and post the output:

Code: Select all

cd ~/opt/qcad-3.24.2-pro-linux-x86_32/platforms
ldd libqxcb.so

luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Thu Sep 10, 2020 4:20 pm

Here you go:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32/platforms$ ldd libqxcb.so
	linux-gate.so.1 (0xf7f99000)
	libQt5XcbQpa.so.5 => not found
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7f58000)
	libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf7f53000)
	libXi.so.6 => /usr/lib/i386-linux-gnu/libXi.so.6 (0xf7f3e000)
	libSM.so.6 => not found
	libICE.so.6 => not found
	libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7f0f000)
	libfontconfig.so.1 => /usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7ec1000)
	libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7dfb000)
	libQt5DBus.so.5 => not found
	libgthread-2.0.so.0 => /usr/lib/i386-linux-gnu/libgthread-2.0.so.0 (0xf7df4000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7de9000)
	libglib-2.0.so.0 => /usr/lib/i386-linux-gnu/libglib-2.0.so.0 (0xf7ca7000)
	libXrender.so.1 => /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf7c9b000)
	libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf7c84000)
	libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7b35000)
	libQt5Gui.so.5 => not found
	libQt5Core.so.5 => not found
	libGL.so.1 => /usr/lib/i386-linux-gnu/libGL.so.1 (0xf7ac8000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7aa5000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf78c5000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf77c0000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf77a1000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75b3000)
	/lib/ld-linux.so.2 (0xf7f9a000)
	libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf75ad000)
	libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf75a5000)
	libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf7579000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf756f000)
	libpng16.so.16 => /usr/lib/i386-linux-gnu/libpng16.so.16 (0xf7530000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7512000)
	libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf7499000)
	libGLdispatch.so.0 => /usr/lib/i386-linux-gnu/libGLdispatch.so.0 (0xf741c000)
	libGLX.so.0 => /usr/lib/i386-linux-gnu/libGLX.so.0 (0xf73e0000)
	libbsd.so.0 => /usr/lib/i386-linux-gnu/libbsd.so.0 (0xf73c1000)
I checked Synaptic for the libraries identified as "not found". The only one that I couldn't find is libQt5XcbQpa.so.5, the others are all installed. I did some searching and found it's part of the libqt5gui5 package which is installed. So, they're all installed, but QCAD is not finding them.

Could it be that they're installed in a different location in This latest version of Mint and QCAD can't find them because of that? FWIW, I looked in /usr/lib for liSM as an example. I found it in /usr/lib/x86_64-linux-gnu and it was linked to libSM.so.6.0.1 which is also present in the folder. I also noted libQt5Core.so.5 and its link partner in the same folder.

HTH
Bill Lugg

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

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Fri Sep 11, 2020 6:53 am

I'd simply add the path to theses libraries to LD_LIBRARY_PATH either in your .bashrc or similar or in the QCAD startup script as follows:

In the launch script "qcad", change:

Code: Select all

QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR" "$binary" "$@"
to:

Code: Select all

QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR:/usr/lib/x86_64-linux-gnu" "$binary" "$@"
This should not be necessary, but it might be easier than figuring out what exactly is wrong.

luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Fri Sep 11, 2020 3:32 pm

Well, that didn't help either. I added the path to the libraries to LD_LIBRARY_PATH at line 9 og the qcad script and this was the result of running the script:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ ./qcad
QCAD version  3.24.2
Fatal:    This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
./qcad: line 9:  6292 Aborted                 (core dumped) LD_LIBRARY_PATH="$DIR:/usr/lib/x86_64-linux-gnu" "$binary" "$@"

QCAD has unexpectedly quit.

Please use the offscreen 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
I also noted that my line 9 looked different that what you provided so I copied the entire line and pasted it in place of line 9 in the script, but to no avail:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ ./qcad
QCAD version  3.24.2
Fatal:    This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
./qcad: line 9:  6310 Aborted                 (core dumped) QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR:/usr/lib/x86_64-linux-gnu" "$binary" "$@"

QCAD has unexpectedly quit.

Please use the offscreen 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
I also unstalled 3.24.2 using the script thinking something went awry in the installation. Before reinstalling I discovered I had a copy of 3.23.0 I could install and test, which I did. It installed and runs without a problem. However, when I uninstalled 3.23.0 and reinstalled 3.24.2 the result above are what happened. I can't imagine there was that much change at this level between 3.23 and 3.24 that would cause one version to work and the other to fail.

Thanks for the help.
Bill Lugg

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

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Fri Sep 11, 2020 8:48 pm

Can you try to delete the directory

plugins/xcbglintegrations

This is the only XCB related difference from 3.23 to 3.24.

If that doesn't work, you'd have to either stay with 3.23 for now, or:

To continue the search for the problem, you'd have to provide the debugging output again:

Code: Select all

export QT_DEBUG_PLUGINS=1
./qcad
The problem is that there are shared libraries cannot be found. These dependencies have to be solved, otherwise, QCAD will not run.

luggw1
Active Member
Posts: 34
Joined: Sat Oct 13, 2012 10:32 pm

Re: QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by luggw1 » Sat Sep 12, 2020 12:19 am

I looked for "plugins/xcbglintegrations" and couldn't find it, but found "xcbglintegrations" in the "opt/qcad-3.24.2-pro-linux-x86_32/" directory. If first deleted it. and ran QCAD, but no joy. Then I thought maybe the "xcbglintegrations" directory belonged in the plugins directory, so I placed it back in there and tried again but without success.

So, here is the debug output again with the change to the qcad script you suggested earlier:

Code: Select all

luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ export QT_DEBUG_PLUGINS=1
luggw1@tahoe:~/opt/qcad-3.24.2-pro-linux-x86_32$ ./qcad
QCAD version  3.24.2
17:05:36: Debug:    QFactoryLoader::QFactoryLoader() checking directory path "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms" ...
17:05:36: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqlinuxfb.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 328961
}


17:05:36: Debug:    Got keys from plugin meta data ("linuxfb")
17:05:36: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqminimal.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 328961
}


17:05:36: Debug:    Got keys from plugin meta data ("minimal")
17:05:36: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqoffscreen.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 328961
}


17:05:36: Debug:    Got keys from plugin meta data ("offscreen")
17:05:36: Debug:    QFactoryLoader::QFactoryLoader() looking at "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so"
Warning:  Found metadata in lib /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 328961
}


17:05:36: Debug:    Got keys from plugin meta data ("xcb")
17:05:36: Debug:    loaded library "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so"
Warning:  QLibraryPrivate::loadPlugin failed on "/home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so" : "Cannot load library /home/luggw1/opt/qcad-3.24.2-pro-linux-x86_32/platforms/libqxcb.so: (libSM.so.6: wrong ELF class: ELFCLASS64)"
Fatal:    This application failed to start because it could not find or load the Qt platform plugin "xcb".

Available platform plugins are: linuxfb, minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
./qcad: line 9: 13532 Aborted                 (core dumped) QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR:/usr/lib/x86_64-linux-gnu" "$binary" "$@"

QCAD has unexpectedly quit.

Please use the offscreen 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
I noticed this time we get a "wrong ELF class: ELFCLASS64" from libSM and the other library not found errors are gone.

I think I just discovered the problem. I must have downloaded the 32-bit version of QCAD 3.24 mistakenly and it won't load on my 64-bit machine. the install file for 3.23 is a 64-bit file so, of course it works.

Looks like I need to pay the money and get the latest version in 64-bit. I was looking to upgrade anyway, but was a little leery when I started having problems with 3.24. It just turns out it's the nut behind the keyboard.

Thanks for the help.
Bill Lugg

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

Re: [solved] QCad pro 3.24.2 won't run after fresh install of Linux Mint 20

Post by andrew » Mon Sep 14, 2020 9:11 am

Thanks for the update. I was half suspecting that this might be a 64bit Linux, but somehow would have expected a different error in that case. Anyway, good to know for future support requests.

Post Reply

Return to “QCAD Installation and Upgrades”