<div dir="ltr"><div>Finally I made it works by using nmake in a Visual Studio command prompt.<br></div>Sorry for this inconvience.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-28 12:04 GMT+01:00 Vincent Kaestle <span dir="ltr"><<a href="mailto:vincent.kaestle@gmail.com" target="_blank">vincent.kaestle@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've also tried something which works better :<br><ul><li>ninja</li><li>specific C&CXX compiler = MinGW/bin/mingw32-gcc.exe & MinGW/bin/mingw32-g++.exe</li>
<li>check VES_ANDROID_SUPERBUILD<br></li>

</ul><p>But build stops during build step for 'vtk-android' with this error :<br>FAILED : D:\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows-x86_64\lesvtkCommonCore.dirvtkAbstractArray.cxx.o: No such file or directory</p>

<p>Find attached the vtk-android/CMakeError.log file.<br></p></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-28 10:06 GMT+01:00 Vincent Kaestle <span dir="ltr"><<a href="mailto:vincent.kaestle@gmail.com" target="_blank">vincent.kaestle@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks,<br><br></div>But if I don't select toolchain, it uses the compiler of VS10 : VC/bin/cl.exe<br>

</div>And then I have an error during vtk-host build :<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.<br>Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe <br>Build flags: <br>Id flags: <br><br>The output was:<br>


Exit code 0xc0000135<br><br><br><br>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.<br>Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe <br>Build flags: <br>


Id flags: -c<br><br>The output was:<br>Exit code 0xc0000135<br><br><br><br>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.<br>Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe <br>


Build flags: <br>Id flags: -Aa<br><br>The output was:<br>Exit code 0xc0000135<br><br><br><br>Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":<br>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.<br>


Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe <br>Build flags: <br>Id flags: <br><br>The output was:<br>Exit code 0xc0000135<br><br><br><br>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.<br>


Compiler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe <br>Build flags: <br>Id flags: -c<br><br>The output was:<br>Exit code 0xc0000135<br><br><br><br>Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":<br>


Determining if the C compiler works failed with the following output:<br>Change Dir: D:/VES/VES_next/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-host/CMakeFiles/CMakeTmp<br><br>Run Build Command:nmake /NOLOGO  "cmTryCompileExec227739764\fast"<br>


    "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f CMakeFiles\cmTryCompileExec227739764.dir\build.make /nologo -L                  CMakeFiles\cmTryCompileExec227739764.dir\build<br><br>


    "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report D:\VES\VES_next\Apps\Android\CMakeBuild\build\CMakeExternals\Build\vtk-host\CMakeFiles\CMakeTmp\CMakeFiles 1<br><br>Building C object CMakeFiles/cmTryCompileExec227739764.dir/testCCompiler.c.obj<br>


<br>    C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe    -o CMakeFiles\cmTryCompileExec227739764.dir\testCCompiler.c.obj   -c D:\VES\VES_next\Apps\Android\CMakeBuild\build\CMakeExternals\Build\vtk-host\CMakeFiles\CMakeTmp\testCCompiler.c<br>


<br>NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : code retour '0xc0000135'<br><br>Stop.<br><br>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"' : code retour '0x2'<br>


<br>Stop.<br></blockquote><div><br></div><div><br>Please find attached a screenshot of CMake-Gui config. (I kept the same build directory, but I deleted its content and the cache before)<br></div><br></div><div class="gmail_extra">


<br><br><div class="gmail_quote">2014-03-27 18:19 GMT+01:00 Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span>:<div><div>
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">You first have to build superbuild. <div><br></div><div>- source code setting seems  right</div><div>- set build to some other directory </div><div>- you don't want to select toolchain </div><div>- check <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">VES_ANDROID_SUPERBUILD</span></div>



<div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">- configure</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">- generate</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>



</span></div><div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">exit and then run nmake</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, Mar 27, 2014 at 12:05 PM, Vincent Kaestle <span dir="ltr"><<a href="mailto:vincent.kaestle@gmail.com" target="_blank">vincent.kaestle@gmail.com</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hello,<br><br></div>I'm traying to build VES for Android on a Windows 7. I have some problems, you may help me.<br>



<br></div><div>What I did is :<ul><li>start CMake-Gui</li><li>set "source code" to VES root<br>
</li><li>set "build" to Apps/Android/CMakeBuild/build</li><li><b>configure</b> with NMake and select toolchain=CMake/toolchains/android.toolchain.cmake</li><li>check "VES_ANDROID_SUPERBUILD"</li><li><b>generate</b></li>




<li>then go to the build dir and launch <b>nmake</b></li></ul><p>During vtk-host build, it stopped because it didn't find the compiler. To solve it, I added in macro(compile_vtk proj) of ves-superbuild.cmake a CMAKE_ARGS : -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE}</p>




<p>Then I rebuilt, but I got an other error during vtk-host build :<br>Could not find a package configuration file provided by "<b>VTKCompileTools</b>" with any of the following names : <b>VTCompileToolsConfig.cmake</b> <b>vtkcompiletools-config.cmake</b>.</p>




<p>Do you think I'm in the wrong way ?</p><p>Thank you in advance,<br>Best,<br></p><p>Vi.<br></p></div></div>
<br></div></div>_______________________________________________<br>
Ves mailing list<br>
<a href="mailto:Ves@public.kitware.com" target="_blank">Ves@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ves" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ves</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    
</font></span></div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>