DCMTK for anndroid

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
de.wang.tang
Posts: 3
Joined: Mon, 2017-08-21, 08:24

DCMTK for anndroid

#1 Post by de.wang.tang »

linux compile DCMTK 3.6.1 , Under the bin folder,Generate so files.
Contains:
libofstd.so
libofstd.so.11
libofstd.so.3.6.1
....

android loadLibrary(ofstd)

01-27 00:35:22.705 5411-5411/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapplication, PID: 5411
java.lang.UnsatisfiedLinkError: dlopen failed: library "libofstd.so.11" not found
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: DCMTK for anndroid

#2 Post by Jan Schlamelcher »

You probably need to modify the environment variable LD_LIBRARY_PATH to include your /bin directory. Alternatively/additionaly you probably need to modify the java classpath/library path. It has been some time since I did something similiar using java, so google can probably help you better than I (google for java library path resp. classpath).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest