使用CMake在Android项目中构建FFTW的问题

时间:2019-10-30 03:19:31

标签: cmake android-ndk fftw

这是前一篇帖子的重新发布,该帖子由于不太集中而被关闭。因此希望这篇文章中的问题更加集中:)

我正在尝试使用CMAKE将FFTW添加到我的Android项目中,但是我没有这样做。如果有人成功将FFTW添加到了他们的Android项目中,我将不胜感激,尤其是通过cmake而不是ndk-build完成的帮助。

这是我目前在CMakeLists.txt文件中用于将FFTW添加到项目中的代码:

set(buildDir ${CMAKE_CURRENT_BINARY_DIR}/build)
add_subdirectory(C:/Users/reyna/Documents/HMC/Clinic/Test/fftw-3.3.8 ${buildDir})
set(
        FFTW3_DIR ${buildDir}
        CACHE PATH "Path to internally built FFTW3Config.cmake"
        FORCE
)

find_package(FFTW3 CONFIG REQUIRED)

我收到以下错误消息:

CMake Error at .cxx/cmake/debug/armeabi-v7a/build/FFTW3Config.cmake:13 (include):
The file
C:/Users/reyna/Documents/HMC/Clinic/AmazonAppTest/Test2/app/.cxx/cmake/debug/armeabi-v7a/build/FFTW3LibraryDepends.cmake
was generated by the export() command.  It may not be used as the argument
to the include() command.  Use ALIAS targets instead to refer to targets by
alternative names.
Call Stack (most recent call first):
CMakeLists.txt:69 (find_package)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
6 actionable tasks: 1 executed, 5 up-to-date

任何人都知道如何解决该错误吗?我不确定该如何处理,因为它似乎来自FFTW Cmake文件...
谢谢!

0 个答案:

没有答案