summaryrefslogtreecommitdiff
path: root/scripts/mingw-x-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-07-15 16:47:18 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-07-15 16:47:18 (GMT)
commitcd81cecc3a37de7f3585f5bfaa528f63fcdf5dd9 (patch)
tree71c6836cbe6c5b8a2763ddb926f51ee147265a3d /scripts/mingw-x-build-dependencies.sh
parenteb58394e748b3bcca05d85bdacf641f6581b240b (diff)
put .o files of cross into separate directory. handle git issue.
Diffstat (limited to 'scripts/mingw-x-build-dependencies.sh')
-rwxr-xr-xscripts/mingw-x-build-dependencies.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/mingw-x-build-dependencies.sh b/scripts/mingw-x-build-dependencies.sh
index 338051f..f60633b 100755
--- a/scripts/mingw-x-build-dependencies.sh
+++ b/scripts/mingw-x-build-dependencies.sh
@@ -45,9 +45,12 @@ echo NUMJOBS: $NUMJOBS
echo "Downloading MXE into " $MXEDIR
cd $BASEDIR
-git clone git://github.com/mxe/mxe.git
+if [ ! -e mxe ]; then
+ git clone git://github.com/mxe/mxe.git
+fi
cd $MXEDIR
+echo "make mpfr eigen opencsg cgal qt -j $NUMCPU JOBS=$NUMJOBS"
make mpfr eigen opencsg cgal qt -j $NUMCPU JOBS=$NUMJOBS
#make mpfr -j$NUMCPU JOBS=$NUMJOBS # for testing
echo 'make'
@@ -55,13 +58,16 @@ echo 'make'
echo "leaving" $MXEDIR
echo "entering $OPENSCADDIR"
cd $OPENSCADDIR
-if [ ! -e mingw-cross-env ]; then
- ln -s $MXEDIR mingw-cross-env
+if [ -e mingw-cross-env ]; then
+ rm ./mingw-cross-env
fi
+echo "linking mingw-cross-env directory"
+ln -s $MXEDIR/usr/i686-pc-mingw32/ ./mingw-cross-env
echo
echo "now copy/paste the following to cross-build openscad"
echo
+echo "export PATH=$MXEDIR/usr/bin:\$PATH"
echo "i686-pc-mingw32-qmake CONFIG+=mingw-cross-env openscad.pro"
echo "make"
echo
contact: Jan Huwald // Impressum