Last active
August 29, 2015 14:10
-
-
Save treaded/f959b8f9027963047c0b to your computer and use it in GitHub Desktop.
開発環境準備#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- depends/install_mac.sh.bak 2014-12-07 18:24:35.000000000 +0900 | |
+++ depends/install_mac.sh 2014-12-02 20:53:22.000000000 +0900 | |
@@ -10,6 +10,7 @@ | |
LIBJPEG_SOURCE_DIR=$DEPENDS_DIR/libjpeg_turbo_src | |
LIBJPEG_INSTALL_DIR=$DEPENDS_DIR/libjpeg_turbo | |
LIBJPEG_VERSION=1.3.1 | |
+LIBUSB_SOURCE_DIR=$DEPENDS_DIR/libusb_src | |
wget https://downloads.sourceforge.net/project/libjpeg-turbo/$LIBJPEG_VERSION/libjpeg-turbo-$LIBJPEG_VERSION.tar.gz | |
tar xvf libjpeg-turbo-$LIBJPEG_VERSION.tar.gz | |
@@ -17,11 +18,14 @@ | |
cd $LIBJPEG_SOURCE_DIR | |
# libjpeg-turbo is missing some files config files (config.guess and config.sub) | |
-cp $LIBUSBX_SOURCE_DIR/config.guess ./ | |
-cp $LIBUSBX_SOURCE_DIR/config.sub ./ | |
-./configure --disable-dependency-tracking --host x86_64-apple-darwin --with-jpeg8 --prefix=$LIBJPEG_INSTALL_DIR | |
+cp $LIBUSB_SOURCE_DIR/config.guess ./ | |
+cp $LIBUSB_SOURCE_DIR/config.sub ./ | |
+#./configure --disable-dependency-tracking --host x86_64-apple-darwin --with-jpeg8 --prefix=$LIBJPEG_INSTALL_DIR | |
+./configure --disable-dependency-tracking --host x86_64-apple-darwin NASM=/usr/local/Cellar/nasm/`brew info --json=v1 nasm | jq -r '.[0]["installed"][0]["version"]'`/bin/nasm --with-jpeg8 --prefix=$LIBJPEG_INSTALL_DIR | |
+ | |
make && make install | |
+ | |
#get the missing cl.hpp from Khronos.org | |
cd /System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/ | |
[ -f cl.hpp ] || sudo wget http://www.khronos.org/registry/cl/api/1.2/cl.hpp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment