Skip to content

Commit

Permalink
fix broken compilation of lib openjp2
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-g committed Dec 14, 2020
1 parent 1edf87e commit e741fa5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion converter/build-apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ build_jpeg() {
JPEG_SHARED_LIBS=OFF
;;
linux) SYSTEM_NAME=Linux ;;
mac) SYSTEM_NAME=Darwin ;;
mac)
# warning: dirty hack to compile lib openjp2 on Mac
sed '1 a #include <unistd.h>'
SYSTEM_NAME=Darwin ;;
esac
cmake -DCMAKE_SYSTEM_NAME="$SYSTEM_NAME" -DBUILD_THIRDPARTY=1 \
-DCMAKE_INSTALL_PREFIX="$ARCHSRCDIR/deps" \
Expand Down

0 comments on commit e741fa5

Please sign in to comment.