I have been trying to cross-compile DCMTK 3.6.7 for Android on a Windows 11 PC. I am using the latest version of Android Studio and very recent versions of the Android SDK and Android NDK. I get to the point where I select the AVD, meaning that the emulator at least can be called from the build system. The problem stopping me is the following error:
Code: Select all
ANDROID_PLATFORM not set. Defaulting to minimum supported version
16.
Starting the Android device emulator...
C:/Users/stefa/AppData/Local/Android/Sdk/tools/emulator.exe -avd DCMTK -no-boot-anim -prop ro.emu.uuid=5ee377ea19dde4164502df73fa8192c5 >C:/Temp/dcmtk-3.6.7/build_android/CMakeFiles/android-emulator.log 2>&1 < /dev/null &
CMake Error at CMake/dcmtkUseAndroidSDK.cmake:342 (message):
Error starting Android emulator.
Call Stack (most recent call first):
CMake/dcmtkPrepare.cmake:284 (DCMTK_ANDROID_START_EMULATOR)
CMakeLists.txt:38 (include)
There where some indications that the DCMTK source came with a custom toolchain file but I could not find it. There are some git repositories with versions from about 8 years ago but that didn't seem right. I did test this one: https://github.com/pauldotknopf/DCMTK/b ... hain.cmake. It didn't even work running CMake Configure the first step.
Further more, the following versions are installed:
- Windows 11 Pro Insider Preview 25931.1000
- CMake 3.27.2
- Minimal SYStem 1.0.11
- Android Studio Giraffe 2022.3.1
- SDK Platform: Android 13.0 ("Tiramisu") API Level 33
- Android SDK Build-Tools 33.0.1
- NDK (Side by side) 21.3.6528147
- Android SDK Command-line Tools (latest) 11.0
I plan on trying some earlier versions and see if this helps. Also testing on a completely different computer just to rule out anything strange going on with this particular setup.
I have searched the forum and all other sources on internet. Nobody seem to have the exact same problem, so I am kind of stuck.
Thanks anyone in forehand helping me out.