I spent some time today looking for CAD packages that work well on Linux.
I’ve used autocad before and it worked O.K. but took some getting used to. I was hoping for something that was similar but not necessarily as powerful – autocad-lite or similar.
After some searching and tossing out many would-be contenders I found that qcad was moderately well regarded – as opposed to almost every other free CAD package which were ‘in development’ or simply abysmal.
Determined to install it on Centos 5 I downloaded the community edition source codes (qcad-18.104.22.168-1-community.src) . The instructions that came with it were non-existent so I chose a basic approach.
Copy the downloaded file qcad-22.214.171.124-1-community.src.tar.gz to /usr/local/src
tar -xzf qcad-126.96.36.199-1-community.src.tar.gz
rm -f qcad-188.8.131.52-1-community.src.tar.gz
after a bit of poking around I found the scripts directory
This didn’t work due to an error
error: ISO C++ does not support ‘long long’
A bit of searching and I discovered a simple fix
then comment out lines 2 and 3 thus
#QMAKE_CXXFLAGS_DEBUG += -pedantic
#QMAKE_CXXFLAGS += -pedantic
It seems that the -pedantic causes problems handling long long.
Re-running the build script
I get an error
sh: ./release_translations.sh: No such file or directory
Building qcad binary failed
More searching and another easy fix
Finally it all built. But it wasn’t integrated with gnome or kde. How to make this happen will be another journal entry. For now start a terminal session
And then the qcad program starts up. On initial inspection it seems to be O.K. with no malformed windows/text or obscure start messages. The real problem is how to use it. I am sure there are tutorials, but there is nothing intuitive in the program – unlike other graphics packages I have used.
More information later when I figure this guy out.