Difficulties compiling the source code

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

Moderator: andrew

Post Reply
Newbie Member
Posts: 3
Joined: Sun Sep 12, 2021 2:56 pm

Difficulties compiling the source code

Post by mangel » Thu Sep 23, 2021 4:54 pm

I am trying to compile the program from the github repository source code in Debian Gnu/Linux.

I had to modify some files to get it to compile without errors,
I don't really know what these changes do but at least this way it doesn't give an error and can be compiled.

in file: qcad/scripts/Help/ShowReadme/ShowReadme.js
- text.toPlainText() = qsTr("File \"%1\" doesn't exist.").arg(
+ text.plainText = qsTr("File \"%1\" doesn't exist.").arg(

in file: qcad/src/3rdparty/spatialindexnavel/src/tools/Tools.cc
- if (mktemp(tmpName) == 0)
+ if (mkstemp(tmpName) == 0)

Some files don't end up in the right place so I have also changed:

file qcad/src/customwidgets/customwidgets.pro
-DESTDIR = ../../plugins/designer
+DESTDIR = $$PWD/../../plugins/designer

file qcad/src/scripts/scripts.pro
-DESTDIR = ../../plugins
+DESTDIR = $$PWD/../../plugins

I have tested compile with QT Creator and QT version 5.15.2 , 5-13.2 and 5.8.0.
with 5.13.5 all right
with 5.13.2 dont work well, error when running: libqcadscripts.so: undefined symbol
with 5.8.0 all right but an error when click on open web page in help menu, but it is easily repaired linking ssl librarys in qcad directory
$ ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so libcrypto.so
$ ln -s /usr/lib/x86_64-linux-gnu/libssl.so libssl.so

Sorry for my poor English

Post Reply

Return to “QCAD Community Edition”