From a2b4997796d60a75b28a80ff5d93419accd352a1 Mon Sep 17 00:00:00 2001 From: Mark Hillebrand Date: Tue, 27 Jun 2017 11:07:54 +0200 Subject: [PATCH] Tools/devInstall/Linux/install-swig.sh: added Moved and refreshed from bindings/python/swig_install.sh. Install location now is /usr/local/swig-*, which ./configure picks up automatically. Specify --without-alllang for SWIG build, which should suppress building tests and examples for specific languages. Windows: Update source setup links for SWIG --- .../CNTKLibraryCSEvalExamplesTest.csproj | 2 +- Tools/devInstall/Linux/README.md | 4 ++ Tools/devInstall/Linux/install-swig.sh | 48 +++++++++++++++++++ Tools/docker/CNTK-CPUOnly-Image/Dockerfile | 5 +- Tools/docker/CNTK-GPU-1bit-Image/Dockerfile | 5 +- Tools/docker/CNTK-GPU-Image/Dockerfile | 5 +- .../CNTKLibraryManagedDll.csproj | 4 +- .../csharp/Swig/CNTKLibraryCSBinding.vcxproj | 4 +- .../java/Swig/CNTKLibraryJavaBinding.vcxproj | 4 +- bindings/python/PythonBindings.vcxproj | 3 +- .../python/PythonBindings.vcxproj.filters | 3 +- bindings/python/swig_install.sh | 14 +----- configure | 5 +- 13 files changed, 75 insertions(+), 31 deletions(-) create mode 100644 Tools/devInstall/Linux/README.md create mode 100755 Tools/devInstall/Linux/install-swig.sh diff --git a/Tests/EndToEndTests/EvalClientTests/CNTKLibraryCSEvalExamplesTest/CNTKLibraryCSEvalExamplesTest.csproj b/Tests/EndToEndTests/EvalClientTests/CNTKLibraryCSEvalExamplesTest/CNTKLibraryCSEvalExamplesTest.csproj index d3f75d51f..61dbedeee 100644 --- a/Tests/EndToEndTests/EvalClientTests/CNTKLibraryCSEvalExamplesTest/CNTKLibraryCSEvalExamplesTest.csproj +++ b/Tests/EndToEndTests/EvalClientTests/CNTKLibraryCSEvalExamplesTest/CNTKLibraryCSEvalExamplesTest.csproj @@ -81,7 +81,7 @@ - + - \ No newline at end of file + diff --git a/bindings/csharp/Swig/CNTKLibraryCSBinding.vcxproj b/bindings/csharp/Swig/CNTKLibraryCSBinding.vcxproj index 4182679a1..9811cee49 100644 --- a/bindings/csharp/Swig/CNTKLibraryCSBinding.vcxproj +++ b/bindings/csharp/Swig/CNTKLibraryCSBinding.vcxproj @@ -126,9 +126,9 @@ - + - \ No newline at end of file + diff --git a/bindings/java/Swig/CNTKLibraryJavaBinding.vcxproj b/bindings/java/Swig/CNTKLibraryJavaBinding.vcxproj index 4d49dc1f5..e29c8dc43 100644 --- a/bindings/java/Swig/CNTKLibraryJavaBinding.vcxproj +++ b/bindings/java/Swig/CNTKLibraryJavaBinding.vcxproj @@ -128,10 +128,10 @@ - + - \ No newline at end of file + diff --git a/bindings/python/PythonBindings.vcxproj b/bindings/python/PythonBindings.vcxproj index f906bf1b8..4a4c7581c 100644 --- a/bindings/python/PythonBindings.vcxproj +++ b/bindings/python/PythonBindings.vcxproj @@ -145,10 +145,9 @@ - - \ No newline at end of file + diff --git a/bindings/python/PythonBindings.vcxproj.filters b/bindings/python/PythonBindings.vcxproj.filters index 565b610af..813a6ed78 100644 --- a/bindings/python/PythonBindings.vcxproj.filters +++ b/bindings/python/PythonBindings.vcxproj.filters @@ -106,7 +106,6 @@ cntk\io - cntk\losses @@ -363,4 +362,4 @@ cntk\ops\tests - \ No newline at end of file + diff --git a/bindings/python/swig_install.sh b/bindings/python/swig_install.sh index dba28dd31..ea3614e76 100755 --- a/bindings/python/swig_install.sh +++ b/bindings/python/swig_install.sh @@ -1,13 +1,3 @@ #!/bin/bash - -wget http://prdownloads.sourceforge.net/swig/swig-3.0.10.tar.gz - -tar xvfz swig-3.0.10.tar.gz - -pushd swig-3.0.10 - -./configure --without-java --without-perl5 --prefix=$(readlink -m ./root) - -make -j 4 - -make install +echo This script has moved to Tools/devInstall/Linux/install-swig.sh. +exit 1 diff --git a/configure b/configure index 3981df8b8..437f4cfdc 100755 --- a/configure +++ b/configure @@ -1015,8 +1015,9 @@ then swig_path=$(find_swig) if test x$swig_path = x then - echo 'Cannot locate SWIG (>= 3.0.10), which is required Python/Java support.' - echo Check bindings/python/swig_install.sh for build instructions. + echo 'Cannot locate SWIG (>= 3.0.10), which is required for Python/Java support.' + echo Please see https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Linux#optional-swig + echo for installation instructions. exit 1 fi fi