Permalink
Browse files

add documentation to workaround GLEWDIR bug

  • Loading branch information...
donbright committed May 29, 2012
1 parent 26b3c36 commit 056f6c6131bfc5067bcac7b0e71a0ac5aa2f5753
Showing with 6 additions and 4 deletions.
  1. +1 −0 glew.pri
  2. +5 −4 scripts/linux-build-dependencies.sh
View
@@ -5,6 +5,7 @@ glew {
!isEmpty(GLEW_DIR) {
QMAKE_INCDIR += $$GLEW_DIR/include
QMAKE_LIBDIR += $$GLEW_DIR/lib
+ QMAKE_LIBDIR += $$GLEW_DIR/lib64
message("GLEW location: $$GLEW_DIR")
}
@@ -129,7 +129,8 @@ build_glew()
tar xzf glew-$version.tgz
cd glew-$version
mkdir -p $DEPLOYDIR/lib/pkgconfig
- make GLEW_DEST=$DEPLOYDIR install
+ GLEW_DEST=$DEPLOYDIR make -j$NUMCPU
+ GLEW_DEST=$DEPLOYDIR make install
}
build_opencsg()
@@ -189,11 +190,11 @@ mkdir -p $SRCDIR $DEPLOYDIR
#build_boost 1.47.0
# NB! For CGAL, also update the actual download URL in the function
#build_cgal 4.0
-#build_glew 1.7.0
+build_glew 1.7.0
build_opencsg 1.3.2
echo "Now do this:"
-echo "export LD_LIBRARY_PATH=$BASEDIR/lib"
-echo "OPENSCAD_LIBRARIES=$BASEDIR qmake-qt4"
+echo "export LD_LIBRARY_PATH=$DEPLOYDIR/lib:$DEPLOYDIR/lib64"
+echo "GLEWDIR=$DEPLOYDIR OPENSCAD_LIBRARIES=$DEPLOYDIR qmake-qt4"
echo "make"

0 comments on commit 056f6c6

Please sign in to comment.