Compiling Qcad with QT6 under Linux

Use this forum for all posts and questions about the free QCAD Community Edition version 3

Moderator: andrew

Post Reply
nagmat84
Newbie Member
Posts: 9
Joined: Fri Feb 11, 2011 12:05 pm

Compiling Qcad with QT6 under Linux

Post by nagmat84 » Sun Apr 06, 2025 4:46 pm

How do I compile Qcad with QT6 under Linux?

I read https://www.qcad.org/en/component/conte ... om-sources but this only contains instructions for QT6 under Windows or QT5 under Linux.

Specifically, I have the following questions:
  1. Do I also have to clone qtjsapi and qcadjsapi for Qt6 under Linux or is this Windows only?
  2. Which packages do I need as dependencies? (I am running Gentoo. I do not expect someone to know the Gentoo Packages, Debian packages would be fine, too. I will look up the corresponding Gentoo packages myself.)
  3. How do I set BUILD_QT6=ON? Are the CMake scripts actually necessary under Linux? The Linux instructions for Qt5 seem to use qmake and traditional make only.
  4. The instructions for Qt5 under Linux first list package dependencies for various distribution, but then step 2 asks to download Qt5 from the QT upstream website. This seems odd. Is the indentation wrong? I guess this is actually an alternative for step 1, right?

Matfie
Active Member
Posts: 38
Joined: Tue Aug 30, 2016 8:46 am

Re: Compiling Qcad with QT6 under Linux

Post by Matfie » Fri Apr 11, 2025 8:47 am

Hello

I updated QCAD for Qt6 for NetBSD recently (not Linux, but..), see https://cvsweb.netbsd.org/bsdweb.cgi/pk ... ?rev=1.127

1. Yes, I did that
2. If you run cmake it will tell you what it is missing - I used qtbase, qtdeclarative, qttools, qtsvg, qt5compat there are also some optional requirements
3. cmake -DBUILD_QT6=ON
4. perhaps the instructions are not yet updated

nagmat84
Newbie Member
Posts: 9
Joined: Fri Feb 11, 2011 12:05 pm

Re: Compiling Qcad with QT6 under Linux

Post by nagmat84 » Tue May 13, 2025 7:14 pm

Compilation and linking works, but qcad-bin crashes with

Code: Select all

CAD version  3.32.2
20:13:22: Debug:    loading plugins...
20:13:22: Debug:    loading static plugins...
Warning:  No script handler found...
Warning:  QThreadStorage: Thread 0x55efee092310 exited after QThreadStorage 8 destroyed
Warning:  QThreadStorage: Thread 0x55efee092310 exited after QThreadStorage 6 destroyed
Warning:  QThreadStorage: Thread 0x55efee092310 exited after QThreadStorage 1 destroyed

nagmat84
Newbie Member
Posts: 9
Joined: Fri Feb 11, 2011 12:05 pm

Re: Compiling Qcad with QT6 under Linux

Post by nagmat84 » Thu May 15, 2025 1:47 pm

I found the solution. I posted it in https://www.qcad.org/rsforum/viewtopic. ... 128#p48128

Post Reply

Return to “QCAD Community Edition”