[Ves] KiwiViewer compilation issue on Windows 7 x64 / success
Joachim Pouderoux
joachim.pouderoux at kitware.com
Mon Nov 26 03:47:46 EST 2012
Hello Michael,
Nice to ear I am not the only one to be able to compile VES/Wiki under
Windows :)
I will try write a wiki entry to describe the requirements and the
different steps of the compilation process by the end of the week.
Cheers,
Joachim
2012/11/26 Michael Hopf <m.hopf at web.de>
> Hello Joachim,****
>
> ** **
>
> Many thanks for your weekend activities on this issue. After your fix and
> few modifications on my side, I could compile the KiwiViewer. J****
>
> Here my points:****
>
> ** **
>
> A)****
>
> Changed in configure.bat to my own Android NDK path because it’s currently
> hard coded****
>
> rem set ANDROID_NDK=c:/tools/android-ndk-r8****
>
> set ANDROID_NDK=c:/android-ndk-r8c****
>
> ** **
>
> B)****
>
> I had to call the script in "C:\Program Files (x86)\Microsoft Visual
> Studio 11.0\VC\bin\vcvars32.bat"****
>
> in the Visual Studio installation to set the some vars, otherwise nmake
> failed with following error below:****
>
> ** **
>
> CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage****
>
> CMake Error: your C compiler: "cl" was not found. Please set
> CMAKE_C_COMPILER to a valid compiler****
>
> path or name.****
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed***
> *
>
> ** **
>
> This issue isn’t related to the source code but maybe a hint for a Q&A
> section of the documentation.****
>
> ** **
>
> C)****
>
> Changed in configure_ant.bat the target ID ****
>
> REM %ANDROID% update project --name KiwiViewer --path %app_dir% --target
> android-14****
>
> %ANDROID% update project --name KiwiViewer --path %app_dir% --target
> android-15****
>
> ** **
>
> ** **
>
> That’s all. I’m really happy to have it runnable. Many thanks for your
> great support. J****
>
> ** **
>
> Greeting, Michael****
>
> ** **
>
> *Von:* Joachim Pouderoux [mailto:joachim.pouderoux at kitware.com]
> *Gesendet:* Sonntag, 25. November 2012 13:04
> *An:* Michael Hopf
> *Betreff:* Re: AW: KiwiViewer compilation issue on Windows 7 x64****
>
> ** **
>
> For your information, I have just recompiled it from a fresh git clone of
> VES (patches are now automatically applied and bat files were commited so
> you have nothing else to do) on a windows8-64 with VC++2012/nmake, the
> latest android sdk and ndk (8c) and it worked like a charm! :)
> Joachim****
>
>
> Le 23 nov. 2012 à 15:34, Michael Hopf <m.hopf at web.de> a écrit :****
>
> Hi Joachim,****
>
> ****
>
> Thanks for you hint. I change the tools.bat a bit to use (for the first
> time) hard coded paths.****
>
> ****
>
> set ADB=C:\android-sdk\platform-tools\adb.exe****
>
> set ANDROID=C:\android-sdk\tools\android.bat****
>
> set ANT=C:\apache-ant-1.8.2\bin\ant.bat****
>
> set CMAKE=C:\cmake-2.8.10.1-win32-x86\bin\cmake.exe****
>
> set ANDROID_NDK=C:\android-ndk-r8c-windows\android-ndk-r8c****
>
> set
> ANDROID_STANDALONE_TOOLCHAIN=C:\android-ndk-r8c-windows\android-ndk-r8c\toolchains
> ****
>
> ****
>
> ****
>
> rem for /f "tokens=*" %%a in ('where /F adb.exe') do ( set ADB=%%a )****
>
> echo/%%ADB%%=%ADB%****
>
> ****
>
> rem for /f "tokens=*" %%a in ('where /F android.bat') do ( set ANDROID=%%a
> )****
>
> echo/%%ANDROID%%=%ANDROID%****
>
> ****
>
> rem for /f "tokens=*" %%a in ('where /F ant.bat') do ( set ANT=%%a )****
>
> echo/%%ANT%%=%ANT%****
>
> ****
>
> rem for /f "tokens=*" %%a in ('where /F cmake.exe') do ( set CMAKE=%%a )**
> **
>
> echo/%%CMAKE%%=%CMAKE%****
>
> ****
>
> ****
>
> Now, cmake moved a bit forward but is not able to find the VTK. ****
>
> After executing
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>configure_cmake.bat I get
> this error:****
>
> ****
>
> CMake Error at
> C:/cmake-2.8.10.1-win32-x86/share/cmake-2.8/Modules/FindVTK.cmake:135
> (message):****
>
> VTK not found. Set the VTK_DIR cmake cache entry to the directory****
>
> containing VTKConfig.cmake. This is either the root of the build tree,
> or****
>
> PREFIX/lib/vtk for an installation. For VTK 4.0, this is the location of
> ****
>
> UseVTK.cmake. This is either the root of the build tree or****
>
> PREFIX/include/vtk for an installation.****
>
> Call Stack (most recent call first):****
>
> jni/CMakeLists.txt:4 (find_package)****
>
> ****
>
> The configure_cmake.bat script set the environment variable VTK_DIR to
> path
> C:\MyProject\KiwiViewer\VES\Apps\Android\CMakeBuild\build\CMakeExternals\Build\vtk
> ****
>
> This path is exists but it’s empty.****
>
> ****
>
> Do you know what could cause this error?****
>
> Many many thanks again for your support. J****
>
> ****
>
> Greeting, Michael****
>
> ****
>
> ****
>
> Here my current log output:****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>configure_cmake.bat****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>call ".\tools.bat"****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>goto MAIN****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> ADB=C:\android-sdk\platform-tools\adb.exe****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> ANDROID=C:\android-sdk\tools\android.bat****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> ANT=C:\apache-ant-1.8.2\bin\ant.bat****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> CMAKE=C:\cmake-2.8.10.1-win32-x86\bin\cmake.exe****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> ANDROID_NDK=C:\android-ndk-r8c-windows\android-ndk****
>
> -r8c****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> ANDROID_STANDALONE_TOOLCHAIN=C:\android-ndk-r8c-wi****
>
> ndows\android-ndk-r8c\toolchains****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>rem for /f "tokens=*" %a in
> ('where /F adb.exe') do (****
>
> set ADB=%a )****
>
> ****
>
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>echo/%ADB%=C:\android-sdk\platform-tools\adb.exe
> ****
>
> %ADB%=C:\android-sdk\platform-tools\adb.exe****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>rem for /f "tokens=*" %a in
> ('where /F android.bat') d****
>
> o ( set ANDROID=%a )****
>
> ****
>
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>echo/%ANDROID%=C:\android-sdk\tools\android.bat
> ****
>
> %ANDROID%=C:\android-sdk\tools\android.bat****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>rem for /f "tokens=*" %a in
> ('where /F ant.bat') do (****
>
> set ANT=%a )****
>
> ****
>
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>echo/%ANT%=C:\apache-ant-1.8.2\bin\ant.bat
> ****
>
> %ANT%=C:\apache-ant-1.8.2\bin\ant.bat****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>rem for /f "tokens=*" %a in
> ('where /F cmake.exe') do****
>
> ( set CMAKE=%a )****
>
> ****
>
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>echo/%CMAKE%=C:\cmake-2.8.10.1-win32-x86\bin\cmake.exe
> ****
>
> ****
>
> %CMAKE%=C:\cmake-2.8.10.1-win32-x86\bin\cmake.exe****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> app_dir=C:\MyProject\KiwiViewer\VES\Apps\Android\K****
>
> iwi****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> build_dir=C:\MyProject\KiwiViewer\VES\Apps\Android****
>
> \Kiwi****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>call :setAbsPath source_dir
> C:\MyProject\KiwiViewer\VE****
>
> S\Apps\Android\Kiwi/../../..****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>setlocal****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> __absPath=C:\MyProject\KiwiViewer\VES****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>endlocal && set
> source_dir=C:\MyProject\KiwiViewer\V****
>
> ES****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>goto :eof****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>call :setAbsPath
> cmakeexternals C:\MyProject\KiwiViewe****
>
> r\VES\Apps\Android\Kiwi/../CMakeBuild/build/CMakeExternals****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>setlocal****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> __absPath=C:\MyProject\KiwiViewer\VES\Apps\Android****
>
> \CMakeBuild\build\CMakeExternals****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>endlocal && set
> cmakeexternals=C:\MyProject\KiwiView****
>
> er\VES\Apps\Android\CMakeBuild\build\CMakeExternals****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>goto :eof****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> VTK_DIR=C:\MyProject\KiwiViewer\VES\Apps\Android\C****
>
> MakeBuild\build\CMakeExternals/Build/vtk-android****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> VES_DIR=C:\MyProject\KiwiViewer\VES\Apps\Android\C****
>
> MakeBuild\build\CMakeExternals/Build/ves-android****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>set
> TOOLCHAIN=C:\MyProject\KiwiViewer\VES/CMake/toolch****
>
> ains/android.toolchain.cmake****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>mkdir
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi****
>
> A subdirectory or file C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi
> already exists.****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>cd
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>C:\cmake-2.8.10.1-win32-x86\bin\cmake.exe
> -DCMAKE_TOOL****
>
> CHAIN_FILE=C:\MyProject\KiwiViewer\VES/CMake/toolchains/android.toolchain.cmake
> -DANDROID_NATIVE_API****
>
> _LEVEL=8
> -DVTK_DIR=C:\MyProject\KiwiViewer\VES\Apps\Android\CMakeBuild\build\CMakeExternals/Build/vt
> ****
>
> k-android
> -DVES_DIR=C:\MyProject\KiwiViewer\VES\Apps\Android\CMakeBuild\build\CMakeExternals/Build/v
> ****
>
> es-android C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi -G "NMake
> Makefiles"****
>
> CMake Warning at
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:318
> (message):****
>
> ****
>
> Could not uniquely determine machine name for compiler from****
>
>
> C:/android-ndk-r8c-windows/android-ndk-r8c/toolchains/arm-linux-androideabi-clang3.1/prebuilt/wind
> ****
>
> ows.****
>
> Call Stack (most recent call first):****
>
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:481
> (__DETECT_TOOLCHAIN_MACHI****
>
> NE_NAME)****
>
> CMakeFiles/2.8.10.1/CMakeSystem.cmake:1 (include)****
>
> CMakeLists.txt:2 (project)****
>
> ****
>
> ****
>
> CMake Warning at
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:318
> (message):****
>
> ****
>
> Could not uniquely determine machine name for compiler from****
>
>
> C:/android-ndk-r8c-windows/android-ndk-r8c/toolchains/llvm-3.1/prebuilt/windows.
> ****
>
> Call Stack (most recent call first):****
>
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:481
> (__DETECT_TOOLCHAIN_MACHI****
>
> NE_NAME)****
>
> CMakeFiles/2.8.10.1/CMakeSystem.cmake:1 (include)****
>
> CMakeLists.txt:2 (project)****
>
> ****
>
> ****
>
> CMake Warning at
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:318
> (message):****
>
> ****
>
> Could not uniquely determine machine name for compiler from****
>
>
> C:/android-ndk-r8c-windows/android-ndk-r8c/toolchains/mipsel-linux-android-clang3.1/prebuilt/windo
> ****
>
> ws.****
>
> Call Stack (most recent call first):****
>
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:481
> (__DETECT_TOOLCHAIN_MACHI****
>
> NE_NAME)****
>
> CMakeFiles/2.8.10.1/CMakeSystem.cmake:1 (include)****
>
> CMakeLists.txt:2 (project)****
>
> ****
>
> ****
>
> CMake Warning at
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:318
> (message):****
>
> ****
>
> Could not uniquely determine machine name for compiler from****
>
>
> C:/android-ndk-r8c-windows/android-ndk-r8c/toolchains/x86-clang3.1/prebuilt/windows.
> ****
>
> Call Stack (most recent call first):****
>
> C:/MyProject/KiwiViewer/VES/CMake/toolchains/android.toolchain.cmake:481
> (__DETECT_TOOLCHAIN_MACHI****
>
> NE_NAME)****
>
> CMakeFiles/2.8.10.1/CMakeSystem.cmake:1 (include)****
>
> CMakeLists.txt:2 (project)****
>
> ****
>
> ****
>
> CMake Error at
> C:/cmake-2.8.10.1-win32-x86/share/cmake-2.8/Modules/FindVTK.cmake:135
> (message):****
>
> VTK not found. Set the VTK_DIR cmake cache entry to the directory****
>
> containing VTKConfig.cmake. This is either the root of the build tree,
> or****
>
> PREFIX/lib/vtk for an installation. For VTK 4.0, this is the location of
> ****
>
> UseVTK.cmake. This is either the root of the build tree or****
>
> PREFIX/include/vtk for an installation.****
>
> Call Stack (most recent call first):****
>
> jni/CMakeLists.txt:4 (find_package)****
>
> ****
>
> ****
>
> -- Configuring incomplete, errors occurred!****
>
> ****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>****
>
> ****
>
> ****
>
> *Von:* Joachim Pouderoux [mailto:joachim.pouderoux at kitware.com]
> *Gesendet:* Freitag, 23. November 2012 09:30
> *An:* Michael Hopf
> *Betreff:* Re: KiwiViewer compilation issue on Windows 7 x64****
>
> ****
>
> Hi Michael,****
>
> ****
>
> I don't take a long time to analyze you problem but I see that somewhere
> in your log :****
>
> C:\MyProject\KiwiViewer\VES\Apps\Android\Kiwi>(set
> CMAKE="C:\cygwin\bin\cmake.exe" )****
>
>
> Actually, the tools.bat script automaticcaly search for ADB, CMAKE and
> other tools in the PATH using the 'where' batch command.
> So if you want to override these settings, you need to modify this script
> a little bit to return your own values.
> I the future I will change the script to only search for the variables
> value if they are not already set and thus not override the user's presets.
>
> Regards,
> --
> *Joachim Pouderoux*****
>
> *PhD, R&D Enginee*r
> *Kitware SAS <http://www.kitware.fr>*****
>
> ** **
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2793 / Virus Database: 2629/5893 - Release Date: 11/13/12
> Internal Virus Database is out of date.****
> ------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2793 / Virus Database: 2629/5909 - Release Date: 11/21/12*
> ***
>
> ------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2793 / Virus Database: 2629/5912 - Release Date: 11/22/12*
> ***
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2793 / Virus Database: 2629/5912 - Release Date: 11/22/12*
> ***
>
--
*Joachim Pouderoux*
*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20121126/fbe7e0dc/attachment.html>
More information about the Ves
mailing list