Hi Alejandro,

It seems that the STL is not found in your build.
By default the Android toolchains does not use the STL but it’s deployed with 
the NDK.
You can use and include/ link against stlport / gnustl. Both are available in 
the NDK.

Have a look at android-ndk/docs/CPLUSPLUS-SUPPORT.html
for more information.

Regards,
Eric

Von: Alejandro Vidal Domínguez [mailto:[email protected]]
Gesendet: Donnerstag, 28. Mai 2015 16:18
An: Markus Fangerau
Cc: [email protected]
Betreff: Re: [mitk-users] Build Android MITK

Good afternoon,

I’ve been trying to build MITK for Android following Markus instructions.

I compiled VTK 6.2 for Android and I managed to cross-compile ITK. On the other 
side I've reduced MITK to the Core and its dependencies (MitkCore, 
CppMicroServices, GDCM, mbilog and tinyxml).

I was having some problems with headers, such as:
/home/avidaldo/MITK/reducido-android-0508-b/build-android/ep/src/GDCM/Source/Common/gdcmException.h:17:19:
 fatal error: cassert: No such file or directory
#include <cassert>

In file included from 
/home/avidaldo/MITK/reducido-android-0508-b/build-android/ep/src/tinyxml/tinyxmlparser.cpp:28:0:
/home/avidaldo/MITK/reducido-android-0508-b/build-android/ep/src/tinyxml/tinyxml.h:59:19:
 fatal error: string: No such file or directory
 #include <string>

CMake Error at Modules/CppMicroServices/CMakeLists.txt:312 (message):
 The header file "unordered_map" is not available.


which I avoided by crosscopiled apart also GDCM, tinyxml and CppMicroservices 
and tried to build Mitk using -DGDCM_DIR, -Dtinyxml_DIR and 
-DCppMicroServices_DIR.

In CppMicroServices, I used the native “usResourceCompiler” as you said (if I 
understood correctly) and it worked.

Currently, I’m dealing with this error:


CMake Error at Modules/Core/CMakeLists.txt:36 (message):
 Core target MitkCore does not exist
CMake Error at Modules/Core/CMakeLists.txt:57 (target_compile_definitions):
 Cannot specify compile definitions for target "MitkCore" which is not built
 by this project.
Call Stack (most recent call first):
 Modules/Core/CMakeLists.txt:64 (_itk_create_factory_register_manager)

which I’m having troubles to solve.


I would like to know if I’m following the right strategy.

Thanks in advance. Any piece of advice would be appreciate.

--
Alejandro Vidal

On Tue, Mar 24, 2015 at 10:52 AM, Markus Fangerau 
<[email protected]<mailto:[email protected]>> wrote:
Hi Raul,

Yes, you can do that, but be prepared for a lot of fiddling with Cmake scripts.

You need a working cross-compiled build of ITK and VTK. With the same toolchain 
file you should be able to compile at least a subset of MITK (we do the core 
with minimal dependencies as a custom build). You also require a MITK build for 
the host system (like ITK/VTK does) for providing a runnable MicroServices 
resource compiler executable.
At last you can combine that build process to a single superbuild.

Regards,
Markus

-------- Ursprüngliche Nachricht --------
Von: Raúl Blanco <[email protected]<mailto:[email protected]>>
Datum:
An: [email protected]<mailto:[email protected]>
Betreff: [mitk-users] Build Android MITK
Hi,

I am doing research on building MITK Android or iOS. Currently VTK, in his last 
release candidate, build allows for android thanks to OpenGL ES 2. Some people 
claim that built ITK for android. My question is: Can I join ITK and VTK for 
Android and build a version of MITK? Is there any way?
I know of the existence of MITK pocket, but I'd do a similar project from 
scratch.

Best regards.

Raul



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to