[Ves] Issues with CMake in VES build- Android and iOS

Jon Chmura jon.chmura at me.com
Wed Mar 26 12:19:55 EDT 2014


Hi,

Working fine for me now on master branch.
Thanks!

Jon Chmura
jon.chmura at me.com




On Mar 26, 2014, at 9:09 AM, ves-request at public.kitware.com wrote:

> Send Ves mailing list submissions to
> 	ves at public.kitware.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://public.kitware.com/cgi-bin/mailman/listinfo/ves
> or, via email, send a message with subject or body 'help' to
> 	ves-request at public.kitware.com
> 
> You can reach the person managing the list at
> 	ves-owner at public.kitware.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ves digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Issues with CMake in VES build- Android and iOS
>      (Aashish Chaudhary)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 26 Mar 2014 09:09:08 -0400
> From: Aashish Chaudhary <aashish.chaudhary at kitware.com>
> To: Sebastien HO <sho at traceparts.com>
> Cc: "ves at public.kitware.com" <ves at public.kitware.com>
> Subject: Re: [Ves] Issues with CMake in VES build- Android and iOS
> Message-ID:
> 	<CAEw35Z9YZCubgs3Pmq=hWnrsiMaZhw2QUaSV++QPQy8QAiYeXg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I have merged the branches into master. If you and other update to current
> master then it should fix the build problem.
> 
> git fetch origin
> 
> git checkout master && git reset --hard origin/master
> 
> 
> - Aashish
> 
> 
> 
> On Wed, Mar 26, 2014 at 8:59 AM, Aashish Chaudhary <
> aashish.chaudhary at kitware.com> wrote:
> 
>> Sebastien,
>> 
>> Do this:
>> 
>> cd ves_src_dir
>> git remote add stage git://vtk.org.stage/VES.git
>> git fetch stage
>> git checkout --track stage/next
>> 
>> Thanks,
>> 
>> 
>> 
>> On Wed, Mar 26, 2014 at 5:47 AM, Sebastien HO <sho at traceparts.com> wrote:
>> 
>>> Hi Casey,
>>> 
>>> 
>>> 
>>> I am facing same problem : I have tried to download the latest cmake
>>> night built (3.0.2014035) but I am getting same issue.  I may misunderstand
>>> your solution proposal, can you detail how to update the toolchain?
>>> 
>>> 
>>> 
>>> Here what I get with latest cmake build:
>>> 
>>> ...
>>> 
>>> CMake Error: Could not find cmake module file:
>>> /Users/sho/Documents/Developement/ves-build/CMakeExternals/Build/vtk-ios-device/CMakeFiles/3.0.20140325-g21061/CMakeCXXCompiler.cmake
>>> 
>>> CMake Error: Could not find cmake module file:
>>> /Users/sho/Documents/Developement/ves-build/CMakeExternals/Build/vtk-ios-simulator/CMakeFiles/3.0.20140325-g21061/CMakeCXXCompiler.cmake
>>> 
>>> CMake Error at CMakeLists.txt:3 (project):
>>> 
>>>  No CMAKE_C_COMPILER could be found.
>>> 
>>> 
>>> 
>>>  Tell CMake where to find the compiler by setting the CMake cache entry
>>> 
>>>  CMAKE_C_COMPILER to the full path to the compiler, or to the compiler
>>> name
>>> 
>>>  if it is in the PATH.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> CMake Error at CMakeLists.txt:3 (project):
>>> 
>>>  No CMAKE_CXX_COMPILER could be found.
>>> 
>>> 
>>> 
>>>  Tell CMake where to find the compiler by setting the CMake cache entry
>>> 
>>>  CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler
>>> 
>>>  name if it is in the PATH.
>>> 
>>> 
>>> 
>>> 
>>> 
>>> -- Configuring incomplete, errors occurred!
>>> 
>>> make[2]: ***
>>> [CMakeExternals/Stamp/libarchive-ios-device/libarchive-ios-device-configure]
>>> Error 1
>>> 
>>> make[1]: *** [CMakeFiles/libarchive-ios-device.dir/all] Error 2
>>> 
>>> make[1]: *** Waiting for unfinished jobs....
>>> 
>>> -- Configuring incomplete, errors occurred!
>>> 
>>> -- Configuring incomplete, errors occurred!
>>> 
>>> make[2]: ***
>>> [CMakeExternals/Stamp/vtk-ios-simulator/vtk-ios-simulator-configure] Error 1
>>> 
>>> make[2]: ***
>>> [CMakeExternals/Stamp/vtk-ios-device/vtk-ios-device-configure] Error 1
>>> 
>>> make[1]: *** [CMakeFiles/vtk-ios-simulator.dir/all] Error 2
>>> 
>>> make[1]: *** [CMakeFiles/vtk-ios-device.dir/all] Error 2
>>> 
>>> HEAD is now at fef0a34... Add user specified include and link directories
>>> 
>>> [ 37%] No configure step for 'curl-download'
>>> 
>>> [ 38%] No build step for 'curl-download'
>>> 
>>> [ 39%] No install step for 'curl-download'
>>> 
>>> [ 39%] Completed 'curl-download'
>>> 
>>> [ 42%] Built target curl-download
>>> 
>>> make: *** [all] Error 2
>>> 
>>> ...
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> 
>>> 
>>> S?bastien
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> *De :* Ves [mailto:ves-bounces at public.kitware.com] *De la part de* Casey
>>> Goodlett
>>> *Envoy? :* mardi 25 mars 2014 21:22
>>> *? :* Jon Chmura
>>> *Cc :* ves
>>> *Objet :* Re: [Ves] Issues with CMake in VES build- Android and iOS
>>> 
>>> 
>>> 
>>> Checkout the current version of next branch.  That should have the update.
>>> 
>>> 
>>> 
>>> On Tue, Mar 25, 2014 at 4:25 PM, Jon Chmura <jon.chmura at me.com> wrote:
>>> 
>>> Casey,
>>> 
>>> 
>>> 
>>> I'm not sure how to update the toolchain files.
>>> 
>>> 
>>> 
>>> Jon
>>> 
>>> 
>>> 
>>> On Mar 25, 2014, at 4:16 PM, Casey Goodlett <casey.goodlett at kitware.com>
>>> wrote:
>>> 
>>> 
>>> 
>>> Jon,
>>> 
>>> I think the issue is that you need the xcode 5.1 update to the toolchain
>>> files.  Have you tried this yet?
>>> 
>>> Thanks
>>> 
>>> 
>>> 
>>> On Tue, Mar 25, 2014 at 4:17 PM, Jon Chmura <jon.chmura at me.com> wrote:
>>> 
>>> HI all,
>>> 
>>> We installed CMake via the OSX .dmg. Version 2.8.12.2
>>> 
>>> Jon Chmura
>>> 
>>> On Mar 25, 2014, at 12:00 PM, ves-request at public.kitware.com wrote:
>>> 
>>>> Send Ves mailing list submissions to
>>>>      ves at public.kitware.com
>>>> 
>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>      http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>> or, via email, send a message with subject or body 'help' to
>>>>      ves-request at public.kitware.com
>>>> 
>>>> You can reach the person managing the list at
>>>>      ves-owner at public.kitware.com
>>>> 
>>>> When replying, please edit your Subject line so it is more specific
>>>> than "Re: Contents of Ves digest..."
>>>> 
>>>> 
>>>> Today's Topics:
>>>> 
>>>>  1. Re: Issues with CMake in VES build- Android and iOS - more
>>>>     info (Casey Goodlett)
>>>> 
>>>> 
>>>> ----------------------------------------------------------------------
>>>> 
>>>> Message: 1
>>>> Date: Tue, 25 Mar 2014 11:19:31 -0400
>>>> From: Casey Goodlett <casey.goodlett at kitware.com>
>>>> To: DEB63 at pitt.edu
>>>> Cc: ves <ves at public.kitware.com>
>>>> Subject: Re: [Ves] Issues with CMake in VES build- Android and iOS -
>>>>      more    info
>>>> Message-ID:
>>>>      <
>>> CAOqyOuGaM7atdODybhYGYAhOP6jzgz5Oi6kWHm_ykBgtN3WB-w at mail.gmail.com>
>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>> 
>>>> How did you install cmake?
>>>> 
>>>> Can you start providing a dashboard build of VES?
>>>> 
>>>> I'll try to reproduce this on my xcode 5.1
>>>> 
>>>> Thank you
>>>> 
>>>> 
>>>> On Tue, Mar 25, 2014 at 9:48 AM, <DEB63 at pitt.edu> wrote:
>>>> 
>>>>> Hi again.
>>>>> 
>>>>> Some  more information about this build issue.  After trying this on an
>>>>> older Mac, the build worked fine.  The only thing that I could find
>>> that
>>>>> appeared to be different between the two systems was the xcode
>>> versions.
>>>>> On the >older< setup/computer (that seems to build VES fine)>>>
>>>>>    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>>>>> On the >newer< setup/computer (that will not build VES)>>>
>>>>>    Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
>>>>> 
>>>>> I am also on the same development team as Jon Chmura, who wrote the
>>>>> original post regarding the new build issue with VES and iOS.  We have
>>>>> been discussing this.
>>>>> 
>>>>> Dave Busch
>>>>> deb63 at pitt.edu
>>>>> 
>>>>> ---------------------------- Original Message
>>> ----------------------------
>>>>> Subject: [Ves] [Fwd: Issues with CMake in VES build] - Additional build
>>>>> issue with Android
>>>>> From:    DEB63 at pitt.edu
>>>>> Date:    Tue, March 25, 2014 08:21
>>>>> To:      ves at public.kitware.com
>>>>> 
>>> --------------------------------------------------------------------------
>>>>> 
>>>>> Hi
>>>>> 
>>>>> I am getting similar issues when trying to build VES for Android, when
>>>>> following the same steps we have done in the past to build VES.  What
>>>>> follows is an example of these errors.  Note that this is with a fresh
>>>>> download of android-ndk-r8b...
>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>> daveb::dbox { ~ }-> git clone git://vtk.org/VES.git
>>>>> Cloning into 'VES'...
>>>>> remote: Counting objects: 9923, done.
>>>>> remote: Compressing objects: 100% (3103/3103), done.
>>>>> remote: Total 9923 (delta 6674), reused 9830 (delta 6614)
>>>>> Receiving objects: 100% (9923/9923), 26.38 MiB | 2.84 MiB/s, done.
>>>>> Resolving deltas: 100% (6674/6674), done.
>>>>> Checking connectivity... done.
>>>>> daveb::dbox { ~ }-> cd VES
>>>>> daveb::dbox { ~/VES }-> cd apps
>>>>> daveb::dbox { ~/VES/apps }-> cd Android
>>>>> daveb::dbox { ~/VES/apps/Android }-> cd CMakeBuild
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild }-> ls
>>>>> configure.cmake
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild }-> ls
>>>>> configure.cmake
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild }-> cmake -P
>>> configure.cmake
>>>>> -- Found PythonInterp: /usr/bin/python (found version "2.7.5")
>>>>> -- Found Git: /usr/bin/git (found version "1.8.5.2 (Apple Git-48)")
>>>>> -- Configuring done
>>>>> -- Generating done
>>>>> -- Build files have been written to:
>>>>> /Users/daveb/VES/Apps/Android/CMakeBuild/build
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild }-> cd build
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild/build }-> make -j4
>>>>> Scanning dependencies of target vtk-host
>>>>> Scanning dependencies of target eigen
>>>>> [  3%] [  6%] Creating directories for 'eigen'
>>>>> Creating directories for 'vtk-host'
>>>>> [  9%] [ 12%] Performing download step (download, verify and extract)
>>> for
>>>>> 'eigen'
>>>>> Performing download step (download, verify and extract) for 'vtk-host'
>>>>> -- downloading...
>>>>> .
>>>>> .
>>>>> .   (thenI eventually get these errors after a while) >>>
>>>>> .
>>>>> .
>>>>> 
>>>>> ...Scanning dependencies of target ProcessShader
>>>>> Scanning dependencies of target vtkHashSource
>>>>> [100%] [100%] Building CXX object
>>>>> 
>>> Utilities/MaterialLibrary/CMakeFiles/ProcessShader.dir/ProcessShader.cxx.o
>>>>> Building CXX object
>>>>> Utilities/HashSource/CMakeFiles/vtkHashSource.dir/vtkHashSource.cxx.o
>>>>> Linking CXX executable ../../bin/vtkHashSource-6.0
>>>>> [100%] Built target vtkHashSource
>>>>> Linking CXX executable ../../bin/vtkProcessShader-6.0
>>>>> [100%] Built target ProcessShader
>>>>> Scanning dependencies of target vtkCompileTools
>>>>> [100%] Built target vtkCompileTools
>>>>> [ 45%] No install step for 'vtk-host'
>>>>> [ 48%] Completed 'vtk-host'
>>>>> [ 48%] Built target vtk-host
>>>>> Scanning dependencies of target vtk-android
>>>>> [ 51%] Creating directories for 'vtk-android'
>>>>> [ 54%] No download step for 'vtk-android'
>>>>> [ 57%] [ 60%] No patch step for 'vtk-android'
>>>>> No update step for 'vtk-android'
>>>>> [ 63%] Performing configure step for 'vtk-android'
>>>>> loading initial cache file
>>>>> /Users/daveb/VES/CMake/toolchains/TryRunResults.cmake
>>>>> CMake Error at
>>>>> /Users/daveb/VES/CMake/toolchains/android.toolchain.cmake:704
>>> (message):
>>>>> Could not find any working toolchain in the NDK.  Probably your
>>> Android
>>>>> NDK
>>>>> is broken.
>>>>> Call Stack (most recent call first):
>>>>> /Applications/CMake
>>>>> 
>>> 2.8-12.app/Contents/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:93
>>>>> (include)
>>>>> CMakeLists.txt:3 (project)
>>>>> 
>>>>> 
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_C_COMPILER_ENV_VAR
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_C_COMPILER
>>>>> CMake Error: Could not find cmake module file:
>>>>> 
>>>>> 
>>> /Users/daveb/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-android/CMakeFiles/
>>>>> 2.8.12.2/CMakeCCompiler.cmake
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_CXX_COMPILER_ENV_VAR
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_CXX_COMPILER
>>>>> CMake Error: Could not find cmake module file:
>>>>> 
>>>>> 
>>> /Users/daveb/VES/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-android/CMakeFiles/
>>>>> 2.8.12.2/CMakeCXXCompiler.cmake
>>>>> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
>>>>> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
>>>>> -- Configuring incomplete, errors occurred!
>>>>> make[2]: *** [CMakeExternals/Stamp/vtk-android/vtk-android-configure]
>>>>> Error 1
>>>>> make[1]: *** [CMakeFiles/vtk-android.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>> daveb::dbox { ~/VES/apps/Android/CMakeBuild/build }->
>>>>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>> 
>>>>> Dave Busch
>>>>> deb63 at pitt.edu
>>>>> 
>>>>> 
>>>>> 
>>>>> ---------------------------- Original Message
>>> ----------------------------
>>>>> Subject: [Ves] Issues with CMake in VES build
>>>>> From:    "Jon Chmura" <jon.chmura at me.com>
>>>>> Date:    Mon, March 24, 2014 12:41
>>>>> To:      ves at public.kitware.com
>>>>> 
>>> --------------------------------------------------------------------------
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> We're are currently not able to build the Kiwi viewer app from master.
>>>>> We are getting the following error.
>>>>> 
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_C_COMPILER_ENV_VAR
>>>>> CMake Error: Could not find cmake module file:
>>>>> 
>>>>> 
>>> /Users/jonc/Developer/mobile/schlab/VES/Apps/iOS/build/CMakeExternals/Build/vtk-ios-device/CMakeFiles/
>>>>> 2.8.12.2/CMakeCCompiler.cmake
>>>>> CMake Error: Error required internal CMake variable not set, cmake may
>>> be
>>>>> not be built correctly.
>>>>> Missing variable is:
>>>>> CMAKE_CXX_COMPILER_ENV_VAR
>>>>> CMake Error: Could not find cmake module file:
>>>>> 
>>>>> 
>>> /Users/jonc/Developer/mobile/schlab/VES/Apps/iOS/build/CMakeExternals/Build/vtk-ios-device/CMakeFiles/
>>>>> 2.8.12.2/CMakeCXXCompiler.cmake
>>>>> -- Configuring incomplete, errors occurred!
>>>>> CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not
>>> found.
>>>>> Please set CMAKE_C_COMPILER to a valid compiler path or name.
>>>>> CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
>>>>> found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or
>>> name.
>>>>> -- Configuring incomplete, errors occurred!
>>>>> make[2]: ***
>>>>> [CMakeExternals/Stamp/vtk-ios-simulator/vtk-ios-simulator-configure]
>>> Error
>>>>> 1
>>>>> make[2]: ***
>>>>> [CMakeExternals/Stamp/vtk-ios-device/vtk-ios-device-configure] Error 1
>>>>> make[1]: *** [CMakeFiles/vtk-ios-simulator.dir/all] Error 2
>>>>> make[1]: *** Waiting for unfinished jobs....
>>>>> make[1]: *** [CMakeFiles/vtk-ios-device.dir/all] Error 2
>>>>> 
>>>>> We were able to build successfully in the past.  This issue may be new
>>> to
>>>>> OSX Mavericks.  We had been using compiled .framework files for the
>>> past
>>>>> few months so we haven't had the need to rebuild from scratch until
>>> now.
>>>>> I verified that gcc and g++ are installed.  I tried setting the
>>>>> environment variables manually but the same error still occurs. We also
>>>>> tried it with a fresh install of CMake on another machine and it failed
>>>>> with the same error.
>>>>> 
>>>>> Jon Chmura
>>>>> jon.chmura at me.com
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Ves mailing list
>>>>> Ves at public.kitware.com
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>>> _______________________________________________
>>>>> Ves mailing list
>>>>> Ves at public.kitware.com
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>>> 
>>>>> _______________________________________________
>>>>> Ves mailing list
>>>>> Ves at public.kitware.com
>>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> --
>>>> Casey B. Goodlett, Ph.D.
>>>> R&D Engineer
>>>> Kitware, Inc. - North Carolina Office
>>>> http://www.kitware.com
>>>> (919) 969-6990 x310
>>>> -------------- next part --------------
>>>> An HTML attachment was scrubbed...
>>>> URL: <
>>> http://public.kitware.com/pipermail/ves/attachments/20140325/c5f08457/attachment-0001.html
>>>> 
>>>> 
>>>> ------------------------------
>>>> 
>>>> Subject: Digest Footer
>>>> 
>>>> _______________________________________________
>>>> Ves mailing list
>>>> Ves at public.kitware.com
>>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>> 
>>>> 
>>>> ------------------------------
>>>> 
>>>> End of Ves Digest, Vol 26, Issue 16
>>>> ***********************************
>>> 
>>> _______________________________________________
>>> Ves mailing list
>>> Ves at public.kitware.com
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Casey B. Goodlett, Ph.D.
>>> R&D Engineer
>>> Kitware, Inc. - North Carolina Office
>>> http://www.kitware.com
>>> (919) 969-6990 x310
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> Casey B. Goodlett, Ph.D.
>>> R&D Engineer
>>> Kitware, Inc. - North Carolina Office
>>> http://www.kitware.com
>>> (919) 969-6990 x310
>>> 
>>> _______________________________________________
>>> Ves mailing list
>>> Ves at public.kitware.com
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>> 
>>> 
>> 
>> 
>> --
>> | Aashish Chaudhary
>> | R&D Engineer
>> | Kitware Inc.
>> | www.kitware.com
>> 
> 
> 
> 
> -- 
> | Aashish Chaudhary
> | R&D Engineer
> | Kitware Inc.
> | www.kitware.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://public.kitware.com/pipermail/ves/attachments/20140326/91452583/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
> 
> 
> ------------------------------
> 
> End of Ves Digest, Vol 26, Issue 23
> ***********************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140326/4a29cddc/attachment-0003.html>


More information about the Ves mailing list