hello,
i'm trying to cmake dcmtk 3.6.4 on windows 10 cross compiling to linux ARM.
this is the error i get:
CMake Warning at CMake/dcmtkTryRun.cmake:78 (message):
Emulation for your target platform is not available, please fill in the
required configure test results manually.
Call Stack (most recent call first):
CMake/dcmtkTryRun.cmake:89 (DCMTK_TRY_RUN_CROSS)
CMake/GenerateDCMTKConfigure.cmake:1361 (DCMTK_TRY_RUN)
CMakeLists.txt:53 (INSPECT_FUNDAMENTAL_ARITHMETIC_TYPES)
You need an arith.h file for your target plaftorm that must be placed inside the build directory (config subdirectory I would think). Best case would be to compile config/tests/arith.cc by hand and run that on your target platform to generate arith.h.
i'm too new for that, so i don't understand why cmake can do this...
you say that compiling arith.cc will generate arith.h file? (just compile? no make?)
and then what? how can i tell cmake to continue with the configuration?
Hi there,
I'll certainly post if I figure this out. In my case, building for linux and windows from within VS 2019 is more complicated. When you change to the linux build, it copies all files over to the linux subsytem with rsync before you actually to the build. And I can't seem to intervene.
Cross compiling via cmake is working fine, on different systems. VS 2019 cross-compiling within the same solution to different systems is still a little fragile, it'd seem. i.e., if I use cmake within the WSL (ubuntu) on my windows PC, I can compile just fine.