#LINK_PUBLIC ${OPENGL_egl_LIBRARY}
LINK_PUBLIC "/opt/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/24/libEGL.so"
LINK_PRIVATE android
1.最终编译成功了,但是在qt中调用没有成功,下面是一些编译过程中的命令记录
cmake -DCMAKE_TOOLCHAIN_FILE=/root/android-ndk-r19c/build/cmake/android.toolchain.cmake -DANDROID_NDK=/root/android-ndk-r19c/ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DBUILD_SHARED_LIBS=OFF ../dcmtk-3.6.1
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DANDROID_NDK=/opt/android-ndk-r19c/ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_PLATFORM=24 -DBUILD_APPS=OFF -DBUILD_SHARED_LIBS=ON ../VTK
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DANDROID_NDK=/opt/android-ndk-r19c/ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_PLATFORM=24 -DBUILD_APPS=OFF -DBUILD_SHARED_LIBS=OFF ../dcmtk-3.6.5
D:\software\CMake\bin\cmake -DCMAKE_TOOLCHAIN_FILE=F:\learn\android\android-ndk-r19c\build\cmake\android.toolchain.cmake -DANDROID_NDK=F:\learn\android\android-ndk-r19c\ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_PLATFORM=24 -DBUILD_APPS=OFF -DBUILD_SHARED_LIBS=ON ../dcmtk-3.6.5
--platform=Android-24 --install-dir=/root --arch=arm
/opt/android-ndk-r19c/build/tools/make-standalone-toolchain.sh --platform=android-24 --install-dir=./android-toolchain --use-llvm
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DANDROID_NDK=/opt/android-ndk-r19c/ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_PLATFORM=24 -DBUILD_APPS=OFF -DBUILD_SHARED_LIBS=ON ../dcmtk-3.6.5
cmake -DCMAKE_TOOLCHAIN_FILE=/opt/dcmtk-3.6.1/CMake/android.toolchain.cmake -DANDROID_NDK==/opt/android-ndk-r19c/ -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI="armeabi-v7a" -DANDROID_NATIVE_API_LEVEL=24 -DBUILD_APPS=OFF -DBUILD_SHARED_LIBS=ON ../dcmtk-3.6.1
cmake -DCMAKE_TOOLCHAIN_FILE=G:/game/android-ndk-r16b/build/cmake/android.toolchain.cmake -DCMAKE_ANDROID_NDK=G:/game/android-ndk-r16b -DCMAKE_VERBOSE_MAKE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_VERSION=24 -DVTK_ANDROID_BUILD=ON -DANDROID_NATIVE_API_LEVEL=24 -DOPENGL_ES_VERSION=3.0 D:/mitk/MITK/Build/ep/src/VTK
G:/game/android-sdk-windows/tools/android.bat
G:/game/android-ndk-r16b
D:/mitk/android_viewer/apache-ant-1.9.15/bin/ant.bat
D:/mitk/android_viewer/install/VTK
G:/game/android-ndk-r16b/prebuilt/windows-x86_64/bin/make.exe
#LINK_PUBLIC ${OPENGL_egl_LIBRARY}
LINK_PUBLIC "/opt/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/24/libEGL.so"
E:\mitk\android_viewer\vtk-android\lib\libvtkIOImage-8.1.a(vtkImageReader2.cxx.o):vtkImageReader2.cxx:function std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> >::seekoff(long long, std::__ndk1::ios_base::seekdir, unsigned int): error: undefined reference to 'fseeko64'
E:\mitk\android_viewer\vtk-android\lib\libvtkIOImage-8.1.a(vtkImageReader2.cxx.o):vtkImageReader2.cxx:function std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> >::seekoff(long long, std::__ndk1::ios_base::seekdir, unsigned int): error: undefined reference to 'ftello64'
E:\mitk\android_viewer\vtk-android\lib\libvtkIOImage-8.1.a(vtkImageReader2.cxx.o):vtkImageReader2.cxx:function std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> >::seekpos(std::__ndk1::fpos<mbstate_t>, unsigned int): error: undefined reference to 'fseeko64'
E:\mitk\android_viewer\vtk-android\lib\libvtkIOImage-8.1.a(vtkImageReader2.cxx.o):vtkImageReader2.cxx:function std::__ndk1::basic_filebuf<char, std::__ndk1::char_traits<char> >::sync(): error: undefined reference to 'fseeko64'
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libEltDcmViewer.so] Error 1
18:44:04: 进程"F:\learn\android\android-ndk-r19c\prebuilt\windows-x86_64\bin\make.exe"退出,退出代码 2 。
Error while building/deploying project EltDcmViewer (kit: Android for armeabi-v7a (Clang Qt 5.13.0 for Android ARMv7))
When executing step "Make"