Today I did some testing on Ubuntu and Debian to see what’s needed to compile CADuntu on one of these distributions. As such, I installed Virtualbox on my MacBook and downloaded a fresh version of Debian 5.0.6, 64 bits and Ubuntu 10.10.
Compile Instructions for Ubuntu:
I installed Ubuntu 10.10 myself with default settings. Next thing you need to do is fire up a terminal.
Once you fired up the terminal, you need to install the qt4 development libraries, tools, compiler and subversion.
Commands to run:
sudo apt-get install g++ gcc make git-core subversion libqt4-dev qt4-qmake libqt4-qt3support qt4-dev-tools
Depending on what you already have installed apt will find out the dependencies and install the missing software on your computer.
Once you have a development environment on your computer, it’s time to create a source directory and download CADuntu from SVN.
Commands to run:
cd ~ mkdir source cd source svn co https://caduntu.svn.sourceforge.net/svnroot/caduntu caduntu
Checking out CADuntu from SVN will take anywhere between 5 seconds to 30 seconds or longer, depending on the speed of sourceforge and your internet connection speed. It should end with something like: Checked out revision 69. For you the number will properly be different and higher. Now you can run qmake (or qmake-qt4) to create a makefile.
Commands to run:
cd caduntu/trunc qmake-qt4
Time to compile! Simply run make:
Commands to run:
make
Compiling CADuntu might take a while, depending on the speed of your computer, but just let it run until it finishes. When it finishes, you will see the very last few lines showing something that translations where copied. See below screenshot.
To start CADuntu run the following commands (see above screenshot):
cd unix ./caduntu
For Debian users the process is exactly the same, except that Debian might not have sudo installed and thus you must install the qt4 libraries using a root account. When the libraries are installed, just quit your root account and login as a normal user, then follow the process from ‘checking out SVN’.
Cheers,
Ries van Twisk