starting qcad using optirun (Linux Mint 19)

Discussions around the CAM Add-On of QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Indicate the post processor used.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
Tycho-X
Registered Member
Posts: 2
Joined: Fri Aug 21, 2020 7:43 am

starting qcad using optirun (Linux Mint 19)

Post by Tycho-X » Fri Aug 21, 2020 7:53 am

Hello,

i need qcad to run under "optirun" command (Linux Mint 19 with "BumbleBee") so it uses my NVIDIA GFX card instead of the built-in, slow INTEL GFX card. I tried to start qcad like this but without success:

Code: Select all

export QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH=/home/user/opt/qcadcam-3.25.0-pro-linux-qt5.14-x86_64/

optirun ./qcad-bin
Result is

Code: Select all

CAD version  3.25.0
14:52:37: 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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
FreeCAD and LibreCAD are working without problems with "optirun".

cheers....
/////////////////////////////////
To CNC Cut what no one has cut before

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

Re: starting qcad using optirun (Linux Mint 19)

Post by andrew » Mon Aug 24, 2020 10:14 am

The most likely culprit is the OpenGL plugin used for the 3D simulation. You can remove the file plugins/libqcadgles3d.so to remove this OpenGL dependency from QCAD.

You could also try to remove the Qt libraries from your QCAD installation directory, so your system libraries are used instead.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: starting qcad using optirun (Linux Mint 19)

Post by petevick » Mon Aug 24, 2020 11:19 am

andrew wrote:
Mon Aug 24, 2020 10:14 am
.....You could also try to remove the Qt libraries from your QCAD installation directory, so your system libraries are used instead.
Andrew, which files exactly are they ?
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: starting qcad using optirun (Linux Mint 19)

Post by andrew » Tue Aug 25, 2020 8:30 am

Andrew, which files exactly are they ?
libQt*
libicu*
plugins/imageformats
plugins/printsupport
plugins/sqldrivers
plugins/xcbglintegrations
platforms/*
platforminputcontexts/*

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: starting qcad using optirun (Linux Mint 19)

Post by petevick » Tue Aug 25, 2020 9:37 am

andrew wrote:
Tue Aug 25, 2020 8:30 am
Andrew, which files exactly are they ?
libQt*
libicu*
plugins/imageformats
plugins/printsupport
plugins/sqldrivers
plugins/xcbglintegrations
platforms/*
platforminputcontexts/*
thanks for that Andrew, unfortunately Qcad will not fire up after removing those files
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: starting qcad using optirun (Linux Mint 19)

Post by andrew » Tue Aug 25, 2020 10:01 am

You'd have to have Qt 5 installed (exact same version as the one that came with your QCAD package). This is certainly not the recommended way to run QCAD. If it works with the Qt that came with QCAD, I wouldn't recommend to go that route.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: starting qcad using optirun (Linux Mint 19)

Post by petevick » Tue Aug 25, 2020 10:05 am

I hear what you're saying Andrew, thanks
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

Post Reply

Return to “QCAD/CAM”