Skip to content

Commit

Permalink
Merge pull request #339 from thp/use-opencv-2
Browse files Browse the repository at this point in the history
Use OpenCV 2.4 (Fixes #336)
  • Loading branch information
thp authored Dec 30, 2017
2 parents 963affd + b456090 commit 23a5705
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/macos/build-macos
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cd $PSMOVEAPI_CHECKOUT
if [ ! -d $OPENCV_INSTALL_DIR ]; then
cd external
if [ ! -d opencv ]; then
git clone --depth 1 --branch 3.1.0 git://github.com/Itseez/opencv.git
git clone --depth 1 --branch 2.4 git://github.com/opencv/opencv.git
fi
cd opencv

Expand Down
4 changes: 2 additions & 2 deletions scripts/mingw64/cross-compile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
PSMOVEAPI_PLATFORM="$1"
shift

OPENCV_VERSION=3.1.0
OPENCV_VERSION=2.4
PSMOVEAPI_VERSION=$(git describe --tags)

MAKE_ARGS="$@"
Expand All @@ -35,7 +35,7 @@ fi
# Build OpenCV
if [ ! -d external/opencv ]; then
if [ ! -f ${OPENCV_VERSION}.zip ]; then
curl -O -L https://github.com/Itseez/opencv/archive/${OPENCV_VERSION}.zip
curl -O -L https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip
fi
unzip ${OPENCV_VERSION}.zip
mv opencv-${OPENCV_VERSION} external/opencv
Expand Down
2 changes: 1 addition & 1 deletion scripts/visualc/build_msvc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ IF !ERRORLEVEL! NEQ 0 (
REM Clone OpenCV
IF NOT EXIST %OPENCV_DIR% (
cd %PSMOVE_API_EXTERNAL_DIR%
git clone --depth 1 --branch 3.1.0 git://github.com/Itseez/opencv.git
git clone --depth 1 --branch 2.4 git://github.com/opencv/opencv.git
) ELSE (
echo.
echo OpenCV dir already exists; assuming it has been cloned already
Expand Down

0 comments on commit 23a5705

Please sign in to comment.