Search found 8 matches

by palmerc
Mon, 2017-01-02, 23:04
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

The script makes a large number of checks using CHECK_FUNCTION_EXISTS, but according to the documentation: This does not verify that any system header file declares the function, only that it can be found at link time (consider using CheckSymbolExists). I think you want to use CHECK_SYMBOL_EXISTS. I...
by palmerc
Mon, 2017-01-02, 15:02
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

I see the issue...

It seems we're getting hung up on getpwnam_r and getlogin_r not being available in pwd.h.

I just deleted the getpwnam and getlogin calls and everything compiles.

If you want I can clean this up and try to create a pull request for you.
by palmerc
Mon, 2017-01-02, 14:27
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

I have managed to get past the emulator issue. Required (in my case) - Waiting for adb shell getprop sys.boot_completed == 1 adb shell -o rw,remount rootfs adb shell mkdir /cache For some reason the /cache directory is getting created as a file and then erroring out when trying to redirect the resul...
by palmerc
Mon, 2017-01-02, 10:42
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

I've been working on getting this to compile on Linux (Ubuntu) since macOS seems to present issues. Couple of issues that would be nice to get a comment on... The CMake script is looking for the /cache directory to move files to/from in the compilation process. This is an issue since the script cont...
by palmerc
Thu, 2016-12-22, 16:21
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

While the specifics as to why you need to test for char signedness might go beyond some simple solution one easy fix for gcc and clang is to choose. -fsigned-char or -funsigned-char. In the case of the Android NDK you can rely on the fact that this will work. FYI ARM is unsigned by default. The reas...
by palmerc
Thu, 2016-12-22, 10:14
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

It is not just the unit tests that depend on the emulator though. There are currently two configuration checks that are run using the emulator to query the properties of the fundamental arithmetic types on the target architecture and whether char is signed or unsigned by default. You could of cours...
by palmerc
Thu, 2016-12-22, 10:05
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Re: Android Compilation

R13b is the latest version of the Android NDK toolchain. We have a version compiled for R9d but it is causing problems because it is so old and holding back the project generally.
by palmerc
Wed, 2016-12-21, 10:32
Forum: DCMTK - Installation
Topic: Android Compilation
Replies: 13
Views: 14747

Android Compilation

I'm looking for a way to cross-compile DCMTK with R13B (latest) for a variety of architectures. My current problem is the emulator. It fails to launch, doesn't even seem to try. The question is, can you build just the libraries and skip the unit tests? Seems a reasonable path, but I'm still digging ...