用 xamke 安装依赖时的问题 #5640
-
我想安装 opencv 作为依赖,但是总是显示下面的错误: xmake require opencv
error: attempt to index a nil value 在使用 fetch 参数时也会出现这个问题: xmake require --fetch opencv
error: attempt to index a nil value 另外我使用搜索是能正确找到这个包的: xmake require --search opencv
The package names:
opencv:
-> opencv-4.10.0: A open source computer vision library. (in xmake-repo)
-> opencv-mobile-4.10.0: The minimal opencv for Android, iOS, ARM Linux, Windows, Linux, MacOS, WebAssembly (in xmake-repo) 求大佬帮忙~ 另外我想问一下,下载的依赖能否像 npm 一样直接存放在项目目录中? |
Beta Was this translation helpful? Give feedback.
Answered by
star-hengxing
Sep 19, 2024
Replies: 1 comment 1 reply
-
出现错误可以用添加
set_policy("package.install_locally", true) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
batu1579
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
出现错误可以用添加
-vD
提供 log 方便分析,这里应该是 xmake bug,更新最新版本试试