Compile QCAD on Linux(UBUNTU) from source code (Community Edition)

Download the source code from github:

$git clone


gcc version 4
libglu1-mesa-dev (Ubuntu)
libfreetype6-dev (Ubuntu)
libfontconfig1-dev (Ubuntu)
libssl-dev (Ubuntu)
libdbus-1-dev (Ubuntu)
libsm-dev (Ubuntu)

You need to have Qt4 (4.8.4) on your system. if it is not there then  use
Download and install Qt 4.8.4:

Download the tar.gz file from

Extract the tar.gz file:
$tar xfvz qt-everywhere-opensource-src-4.8.4.tar.gz

Configure Qt:
$cd qt-everywhere-opensource-src-4.8.4$./configure -fast -opensource -release -no-qt3support -fontconfig -dbus \ -sm -qt-libpng -qt-libjpeg -qt-libmng -qt-zlib -openssl -opengl desktop \ -xrender -webkit -confirm-license

Compile Qt:

Add ~/opt/qt-everywhere-opensource-src-4.8.4/bin to your PATH environment variable:
$export PATH=~/opt/qt-everywhere-opensource-src-4.8.4/bin:$PATH

Configure QCAD:
$cd ~/qcad
$qmake -r       or     $qmake
Compile QCAD:
Launch QCAD:
$cd release
$LD_LIBRARY_PATH=. ./qcad-bin
and enjoy 🙂
Note: execute QCAD with $LD_LIBRARY_PATH=. ./qcad-bin    instead of   $./qcad-bin 
My experience:
When I execute with  $./qcad-bin , I got error during executing,
./qcad-bin: error while loading shared libraries:
 cannot open shared object file: No such file or directory
Above problem solved by manually coping the shared libraries (shown in error)
(like:,,,,,,,,, )
from your QCAD package to   /usr/lib/ .
OR   You can alternatively set LD_LIBRARY_PATH:
>>Lots of Warnings are in source code.
Compilation Time on my system is:
real 32m33.085s
user 31m9.857s
sys 1m33.970s
For more information, visit:

About Jasleen Kaur

Hi, I am Jasleen kaur, a Computer Science Student.
This entry was posted in QCAD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s