Fetch the repository succeeded.
How to build and run FreeCAD under Linux========================================Prerequisites-------------To compile FreeCAD you will need, besides functioning Linuxand programming tools (like compiler), the following libraries:o Python (http://www.python.org), >= 2.5.xo boost (http://www.boost.org), >= 1.33.1o Qt (http://www.qtsoftware.com), >= 4.1.xo Coin3D (http://www.coin3d.org), >= 2.4.xo SoQt (http://www.coin3d.org), >= 1.2.xo Xerces-C++ (http://xml.apache.org/dist/xerces-c/), >= 2.6o zlib (http://www.zlib.net/)And for the some FreeCAD modules the additional librarieso OpenCascade (http://www.opencascade.org), >= 5.2o Eigen2 (http://eigen.tuxfamily.org/index.php?title=Main_Page), >= 2.0.5o ODE (http://www.ode.org), >= 0.10.xare required.Note: zlib might be already on your system, as this is a library that is usedby a lot of libraries, too.Note: All libraries listed above must be built as shared library. Refer to theirdocumentation to see how to do.Note: If possible you should enable thread support for the libraries. At least forQt thread support is strongly recommended, otherwise you will run into linkererrors at build time of FreeCAD.Note: The package for SoQt for Debian based systems may lack of the soqt.m4 macro file.You should download the file from www.coin3d.org and copy it to /usr/share/aclocal.Note: The package for SoQt (at least for older Debian based systems) is usually built to linkagainst Qt3. This, however, causes a segmentation fault when using with FreeCAD becauseit links against Qt4 and you get a mixup of Qt3 and Qt4 libraries.To fix this problem you must download the sources from www.coin3d.org and runconfigure with the 'with-qt=DIR' switch specifying the location of Qt4.Probably, it's best to 'make install' the newly built SoQt into a different directorythan the installed SoQt to avoid to corrupt your package database and/or to keep otherapplications working. When configuring FreeCAD you have to use the '--with-soqt=DIR'switch specifying the path of the newly installed SoQt.For newer Debian releases this already solved by a new package that links against Qt4.Note: For OpenCascade there does not exist an official .deb package for older Debian based systemsand many other distributions, so you have to download the latest version from www.opencascade.org.Install the package normally, be aware that the installer is a java program that requiresthe official java runtime edition from Sun, not the open-source java (gij) that is bundledwith Debian or Ubuntu. Install it if needed:sudo apt-get remove gijsudo apt-get install sun-java5-binBe careful, if you use gij java with other things like a browser plugin, they won't workanymore. Now start the installer withjava -jar setup.jarWith Debian Lenny this issue is solved. There is an OpenCascade package currently in thenon-free section.During the compilation some Python scripts get executed. So the Python interpreter hasto work properly.Optionally, you can build the Qt plugin that provides all custom widgets of FreeCADwe need for the Qt Designer. The sources are located under Tools/plugins/widget.So far, we don't provide a makefile but calling 'qmake plugin.pro' creates it andcalling 'make' will create the library libFreeCAD_widgets.so. To make known this libraryto your Qt Designer you have to copy the file to $QTDIR/plugin/designer.On our Wiki you'll find more information to build with different Linux distributions athttp://sourceforge.net/apps/mediawiki/free-cad/index.php?title=CompileOnUnixConfiguration-------------For the build process of FreeCAD we make use of configure scripts.To have an overview of all switches type in ./configure --help, first.You don't need any of these switches unless you have installed a library into a non-standardpath. In this case make use of the appropriate --with-XXX-include or --with-XXX-lib switches,please. (XXX stands for the corresponding library.)Of course, for above mentioned problem with SoQt you should use the '--with-soqt=DIR' switch.Note: To specify FreeCAD's root directory it is recommended to use only the '--prefix'switch from the configure script but not the --bindir, --libdir, ... switches, because at startupFreeCAD makes assumptions about where its module directories are installed.Installation & Running FreeCAD------------------------------Once you have built the sources successfully using 'make', with 'make install' you caninstall FreeCAD onto your machine whereever you want. FreeCAD's default root directoryis $HOME/FreeCAD, so you don't need root privileges therefore. To run FreeCAD go to$PREFIX/FreeCAD/bin and type in ./FreeCAD.Note: In the past there were a lot of problems that the Part workbench couldn't be loaded.The problem is that the system wasn't able to find the OpenCascade library files.To fix this problem you are strongly recommended to add the path of these librariesto LD_LIBRARY_PATH or even to add it to ld.so.conf and run ldconfig.So, just have fun!Werner Mayer <email@example.com>May 2010