[PATCH] fix qcad-3.4.3.0 build error

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
chris2553
Registered Member
Posts: 2
Joined: Thu Nov 14, 2013 11:30 am

[PATCH] fix qcad-3.4.3.0 build error

Post by chris2553 » Thu Nov 14, 2013 1:03 pm

I get a build error building qcad-3.4.3.0 against glibc-2.18 with the latest snapshot of gcc-4.8. The patch below allows the build to complete:

--- qcad-3.4.3.0/src/core/RThread.cpp~ 2013-11-14 10:00:17.679657179 +0000
+++ qcad-3.4.3.0/src/core/RThread.cpp 2013-11-14 10:06:59.823645297 +0000
@@ -18,6 +18,8 @@
*/
#include <QDebug>

+#include <stdint.h>
+
#include "RThread.h"

RThread::RThread(QObject * parent) :

chris2553
Registered Member
Posts: 2
Joined: Thu Nov 14, 2013 11:30 am

Re: [PATCH] fix qcad-3.4.3.0 build error

Post by chris2553 » Thu Nov 14, 2013 1:10 pm

Doh! should also have reported that the error is because intptr_t is undefined.

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

Re: [PATCH] fix qcad-3.4.3.0 build error

Post by andrew » Thu Nov 14, 2013 1:12 pm

Thanks for the patch!

It's committed and pushed:
https://github.com/qcad/qcad/commit/d01 ... 9863c6c769

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”