-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译 Android 端时出错, #107
Comments
编译器要开C++14
发件人: ***@***.***>
发送时间: 2023年11月4日 12:33
收件人: ***@***.***>
抄送: ***@***.***>
主题: [TianZerL/Anime4KCPP] 编译 Android 端时出错, (Issue #107)
我直接 clone 的 Anime4KCPP<https://github.com/TianZerL/Anime4KCPP> 项目,然后修改了 CMakeLists.txt 中的配置
OpenCV 是从 https://opencv.org/releases/ 下载的最新的 Android 版的。
OpenCL 的 so 文件是从手机导出的,头文件是从这里下载的 https://github.com/ProjectPhysX/OpenCL-Wrapper/tree/master/src/OpenCL/include/CL
eigen 下载自这里 :https://gitlab.com/libeigen/eigen/-/releases/3.4-rc1
使用 AndroidStudio build 时,出错,log 如下
D:/WorkSpace/Android_Studio_workspace/Anime4KCPP_Android/app/src/main/cpp/Anime4KCore/src/ACCreator.cpp:40:9: error: no member named 'make_unique' in namespace 'std'
D:/WorkSpace/Android_Studio_workspace/Anime4KCPP_Android/app/src/main/cpp/Anime4KCore/include\ACRegister.hpp:83:27: note: expanded from macro 'PROCESSOR_CASE_UP'
D:/WorkSpace/Android_Studio_workspace/Anime4KCPP_Android/app/src/main/cpp/Anime4KCore/include\ACRegister.hpp:33:20: note: expanded from macro 'PROCESSORS'
D:/WorkSpace/Android_Studio_workspace/Anime4KCPP_Android/app/src/main/cpp/Anime4KCore/include\ACRegister.hpp:62:77: note: expanded from macro '\
请问该如何解决啊,还需要提供其他什么信息吗?
―
Reply to this email directly, view it on GitHub<#107>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJ2GNBAHEMZPDPVJQDJCSWLYCXAPNAVCNFSM6AAAAAA65JXYEKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TOMJWGI2TAMQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
你好,build.gradle 已经设置了
|
clang的编译参数里-std=c++14被后面的-std=gnu++11覆盖了,应该你的项目配置里自动传的参数。 |
您好,十分抱歉,又来打扰,我反复确认了,分别在两台 Windows 10 以及一台 Ubuntu 20.04上使用 AndroidStudio rebuild,都会提示上面到错误。 整体错误提示如下:
|
我直接 clone 的 Anime4KCPP 项目,然后修改了 CMakeLists.txt 中的配置
OpenCV 是从 https://opencv.org/releases/ 下载的最新的 Android 版的。
OpenCL 的 so 文件是从手机导出的,头文件是从这里下载的 https://github.com/ProjectPhysX/OpenCL-Wrapper/tree/master/src/OpenCL/include/CL
eigen 下载自这里 :https://gitlab.com/libeigen/eigen/-/releases/3.4-rc1
使用 AndroidStudio build 时,出错,log 如下
请问该如何解决啊,还需要提供其他什么信息吗?
The text was updated successfully, but these errors were encountered: