[Ves] problems building ves for android

Aashish Chaudhary aashish.chaudhary at kitware.com
Mon May 19 08:03:08 EDT 2014


On Mon, May 19, 2014 at 4:43 AM, Mohammad Khatami <mdkhatami at gmail.com>wrote:

> *Dear Aashish and Daniel,*
>
> *Finally it has been fixed and could build the kiwi app. The the problem
> was related to NDK version and cmake , I just downloaded ndk r8-b  instead
> of ndk r9-c and depends on the instruction you provided it works correctly
> now. I appreciate your help and thank you very much.*
>

Great. When you get a chance, can you try my other branch with r9-c?


> * I have one more question, is there any android edition for simple-kiwi?
> Because I noticed that it exists in ios folder.*
>

NO we don't but any contribution is welcome.

- Aashish


>
> *Best Regards,*
> *Mohammad*
>
>
> On 19 May 2014 02:59, Aashish Chaudhary <aashish.chaudhary at kitware.com>wrote:
>
>> I may have found the problem on Linux. Can you try this branch:
>> *android_cmake_fixes* from this remote: git://vtk.org/stage/VES.git
>>
>> Let me know if this fixes the problem you are having with the detection
>> problem you mentioned.
>>
>> Thanks,
>> Aashish
>>
>>
>> On Sun, May 18, 2014 at 7:52 PM, Daniel Fuentes <
>> daniel.fuentes at softwaredelcentro.com.ar> wrote:
>>
>>> Hi Mohammad, I did read this links
>>> http://www.kitware.com/blog/home/post/546
>>> and
>>> http://www.kitware.com/blog/home/post/642
>>>
>>> also see the readme files VES's:
>>>
>>> VES_SRC/Apps/Android/Kiwi/README.txt
>>> VES_SRC/Apps/Android/README.txt
>>>
>>> I haven't seen many changes since the last time I built it.
>>> So, I tried to build it using my known method.
>>>
>>> So, I tried to build it using my known method. It worked ok.
>>> Next, I list step by step that I did.
>>>
>>> I used tools:
>>>
>>> -Linux Debian Wheezy (64bits)
>>> -Java 7
>>> -Cmake 2.8.9
>>> -Android NDK r8b
>>> -Android SDK 22.3
>>>
>>> The steps on a console were:
>>>
>>> $ export ANDROID_SDK=/tmp/android_sdk_path
>>> $ export ANDROID_NDK=/tmp/android_ndk_path
>>>
>>> $ git clone git://vtk.org/stage/VES.git
>>> $ cd VES
>>> $ export VES_SRC=$PWD
>>> $ cd Apps/Android/CMakeBuild
>>> $ cmake -P configure.cmake
>>> $ cd build
>>> $ make -j8
>>> $ export
>>> VES_DIR=$VES_SRC/Apps/Android/CMakeBuild/build/CMakeExternals/Build/ves-android
>>> $ export
>>> VTK_DIR=$VES_SRC/Apps/Android/CMakeBuild/build/CMakeExternals/Build/vtk-android
>>> $ cd ../Kiwi/jni
>>> $ cp CMakeLists.txt CMakeLists.txt.prev
>>> $ echo "cmake_minimum_required(VERSION 2.8)" > CMakeLists.txt
>>> $ cat CMakeLists.txt.prev >> CMakeLists.txt
>>> $ cmake
>>> -DCMAKE_TOOLCHAIN_FILE=$VES_SRC/CMake/toolchains/android.toolchain.cmake
>>> -DANDROID_NATIVE_API_LEVEL=8 -DVTK_DIR=$VTK_DIR -DVES_DIR=$VES_DIR .
>>> $ make -j8
>>> $ mv libs ../
>>>
>>> At that point, you can import Kiwi as eclipse project, from the path
>>> VES_SRC/Apps/Android/Kiwi
>>>
>>> I tried to build it again, using the Android NDK r9d version without
>>> success. I had an error similar to you.
>>> The android toolchain script for cmake, didn't can detect the NDK
>>> properly.
>>> On your case, I think that the problem is the cmake version.
>>>
>>> Regards
>>> Daniel
>>> _______________________________________________
>>> Ves mailing list
>>> Ves at public.kitware.com
>>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>>
>>
>>
>>
>> --
>>
>>
>>
>> *| Aashish Chaudhary | Technical Leader         | Kitware Inc.
>> *
>> *| http://www.kitware.com/company/team/chaudhary.html
>> <http://www.kitware.com/company/team/chaudhary.html>*
>>
>> _______________________________________________
>> 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
>
>


-- 



*| Aashish Chaudhary | Technical Leader         | Kitware Inc.            *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20140519/8a3d5a66/attachment-0003.html>


More information about the Ves mailing list