Skip to content

Commit

Permalink
* Add builds for linux-mips64el to presets for ARToolKitPlus, Chil…
Browse files Browse the repository at this point in the history
…itags, flandmark, OpenBLAS, and FFTW (pull #637)
  • Loading branch information
theaoqi authored and saudet committed Oct 22, 2018
1 parent 0cc6ee6 commit 9d76959
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions artoolkitplus/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ case $PLATFORM in
make -j4
make install
;;
linux-mips64el)
CC="$OLDCC -mabi=64" CXX="$OLDCXX -mabi=64" $CMAKE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=..
make -j4
make install
;;
macosx-*)
$CMAKE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=..
make -j4
Expand Down
5 changes: 5 additions & 0 deletions chilitags/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ case $PLATFORM in
make -j4
make install
;;
linux-mips64el)
CXX="g++ -mabi=64 -fPIC" $CMAKE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4
make install
;;
macosx-*)
CXX="clang++ -fPIC" $CMAKE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4
Expand Down
8 changes: 8 additions & 0 deletions fftw/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ case $PLATFORM in
make install-strip
fi
;;
linux-mips64el)
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads CC="$OLDCC -mabi=64"
make -j $MAKEJ V=0
make install-strip
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads CC="$OLDCC -mabi=64" --enable-float
make -j $MAKEJ V=0
make install-strip
;;
macosx-*)
patch -Np1 < ../../../fftw-macosx.patch
./configure --prefix=$INSTALL_PATH --disable-fortran --enable-shared --enable-threads --with-combined-threads --enable-sse2
Expand Down
6 changes: 6 additions & 0 deletions flandmark/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ case $PLATFORM in
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
linux-mips64el)
CC="$OLDCC -mabi=64" CXX="$OLDCXX -mabi=64" $CMAKE -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
macosx-*)
CXX="g++ -fpermissive" $CMAKE -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4 flandmark_static
Expand Down
7 changes: 7 additions & 0 deletions openblas/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ case $PLATFORM in
export BINARY=64
export TARGET=POWER5
;;
linux-mips64el)
export CC="$OLDCC -mabi=64"
export FC="$OLDFC -mabi=64"
export LDFLAGS="-Wl,-z,noexecstack"
export BINARY=64
export TARGET=MIPS
;;
linux-armhf)
export CC="arm-linux-gnueabihf-gcc"
export FC="arm-linux-gnueabihf-gfortran"
Expand Down

0 comments on commit 9d76959

Please sign in to comment.