Heeks / heekscad-old

/!\ Obsolete repository of HeeksCAD
http://heeks.net
Other
111 stars 47 forks source link

Error in INSTALL_UBUNTU.sh? #17

Closed slcole closed 12 years ago

slcole commented 13 years ago

I just compiled the code on a Debian6 system by cannibalizing the INSTALL_UBUNTU.sh script and had a problem with the following line during the libarea install

sudo ln -s .libs/area.so ${BUILDPATH}/heekscad/heekscnc/area.so

.libs/area.so ?

neomilium commented 12 years ago

Agreed with slcole, I purpose some enhancements:

--- INSTALL_UBUNTU.sh.orig  2012-02-27 18:28:40.000000000 +0100
+++ INSTALL_UBUNTU.sh   2012-02-27 18:28:15.000000000 +0100
@@ -6,6 +6,9 @@
   build-essential libwxgtk2.8 libwxgtk2.8-dev ftgl-dev \
   libgtkglext1-dev python-dev cmake libboost-python-dev"

+#MAKE_OPTS=" -j8" #For faster build on multi-core machines, uncomment this line and comment out the next
+MAKE_OPTS=""
+
 # Install build prerequisites
 # The next two lines can be commented out after the initial run.
 sudo apt-get update
@@ -17,22 +20,15 @@
 fi

 cd ${BUILDPATH}/heekscad/heekscnc/oce
-if [ -d build ]; then
-  cd build
-else
-  mkdir build
-  cd build
-fi
+mkdir -p build
+cd build
 cmake ..
-#make -j8
-make 
+make $MAKE_OPTS
 sudo make install

 cd ${BUILDPATH}/heekscad/
 cmake .
-
-#make package -j8  #For faster build on multi-core machines, uncomment this line and comment out the next
-make package 
+make $MAKE_OPTS package 
 sudo dpkg -i heekscad_*.deb

 # Install HeeksCNC
@@ -45,32 +41,17 @@

 # Install libarea
 # area.so is required for pocket operations.
-#Get the libarea files from the SVN repository, build, and install
 cd ${BUILDPATH}/heekscad/heekscnc/libarea/
-if [ -d build ]; then
-  cd build
-else
-  mkdir build
-  cd build
-fi
+mkdir -p build
 cmake ..
-#make -j8 #For faster build on multi-core machines, uncomment this line and comment out the next
-make 
+make $MAKE_OPTS
 sudo make install
-sudo ln -s .libs/area.so ${BUILDPATH}/heekscad/heekscnc/area.so
-

 # Install opencamlib
 cd ${BUILDPATH}/heekscad/heekscnc/opencamlib/
-if [ -d build]; then
-cd build
-else
-mkdir build
+mkdir -p build
 cd build
-fi
 cmake ../src
-
-#make -j8 package #For faster build on multi-core machines, uncomment this line and comment out the next
-make package
-sudo dpkg -i opencamlib_*.deb
+make $MAKE_OPTS package
+sudo dpkg -i opencamlib*.deb
ehb commented 12 years ago

Since the script is obsolete and about to vanish, this ticket can be closed.