Having trouble installing or compiling FreeCAD? Get help here.
-
dubstar-04
- Posts: 698
- Joined: Mon Mar 04, 2013 8:41 pm
- Location: Chester, UK
-
Contact:
Post
by dubstar-04 »
Basic Shell Script to help installing the Assembly branch.
Code: Select all
#!/bin/sh
# FreeCAD Assembly -- Downloads, builds and installs the FreeCAD assembly branch
echo "--------------------------------------------------\n
---------- Initialising FreeCAD Install ----------\n
--------------------------------------------------"
BUILDPATH=~ # Build in the users home directory
BUILDPREREQS="build-essential git-core cmake python python-matplotlib libtool libcoin60-dev libsoqt4-dev libxerces-c-dev libboost-dev \
libboost-filesystem-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev \
libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev oce-draw gfortran libeigen3-dev libqtwebkit-dev \
libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev libsimage-dev checkinstall python-pivy python-qt4 \
doxygen and libcoin60-doc libspnav-dev libopencascade-dev libopencascade-foundation-dev libboost-dev libboost-filesystem-dev \
libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev"
if [ ! -d ${BUILDPATH}/free-cad-code/ ];
then
echo "--------------------------------------------------\n
------------ installing build dependencies -----------\n
--------------------------------------------------"
# Install build prerequisites
# The next two lines can be commented out after the initial run.
sudo apt-get update
sudo apt-get install -y $BUILDPREREQS
#Download the FreeCAD source for the Assembly Branch
git clone git://git.code.sf.net/p/free-cad/code free-cad-code
cd free-cad-code/
git checkout jriegel/dev-assembly
mkdir Build && cd Build
else
echo "--------------------------------------------------\n
------------ Rebuilding existing clone -----------\n
--------------------------------------------------"
cd ${BUILDPATH}/free-cad-code/Build/
fi
cmake - DCMAKE_BUILD_TYPE=Debug ../
make -j4
./bin/FreeCAD
-
dubstar-04
- Posts: 698
- Joined: Mon Mar 04, 2013 8:41 pm
- Location: Chester, UK
-
Contact:
Post
by dubstar-04 »
Code: Select all
#!/bin/sh
# FreeCAD Assembly -- Downloads, builds and installs the FreeCAD assembly branch
# Updated for Ubuntu 13.10
echo "--------------------------------------------------\n
---------- Initialising FreeCAD Install ----------\n
--------------------------------------------------"
BUILDPATH=~ # Build in the users home directory
BUILDPREREQS="build-essential git-core cmake python python-matplotlib libtool libcoin80-dev libsoqt4-dev libxerces-c-dev libboost-dev \
libboost-filesystem-dev libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev \
libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev oce-draw gfortran libeigen3-dev libqtwebkit-dev \
libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev libsimage-dev checkinstall python-pivy python-qt4 \
doxygen and libcoin80-doc libspnav-dev liboce-foundation-dev liboce-ocaf-dev liboce-visualization-dev liboce-modeling-dev liboce-ocaf-lite-dev libboost-dev libboost-filesystem-dev \
libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev"
if [ ! -d ${BUILDPATH}/free-cad-code/ ];
then
echo "--------------------------------------------------\n
------------ installing build dependencies -----------\n
--------------------------------------------------"
# Install build prerequisites
# The next two lines can be commented out after the initial run.
sudo apt-get update
sudo apt-get install -y $BUILDPREREQS
#Download the FreeCAD source for the Assembly Branch
git clone git://git.code.sf.net/p/free-cad/code free-cad-code
cd free-cad-code/
git checkout jriegel/dev-assembly
mkdir Build && cd Build
else
echo "--------------------------------------------------\n
------------ Rebuilding existing clone -----------\n
--------------------------------------------------"
cd ${BUILDPATH}/free-cad-code/Build/
fi
cmake - DCMAKE_BUILD_TYPE=Debug ../
make -j4
./bin/FreeCAD