-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
opencv: win下使用vcpkg::opencv,vcpkg已经成功安装了,但xmake check不到 #5402
Comments
Title: opencv: Use vcpkg::opencv under win. vcpkg has been successfully installed, but xmake cannot check. |
add_packages 要跟 add_requires 的包名一致 add_requires("vcpkg::opencv[contrib,freetype]", {alias = "opencv"}) |
他这里好像都没有到 add_packages的阶段,还在install的时候就寄了 |
那就自己调下这里,https://github.com/xmake-io/xmake/blob/dev/xmake/modules/package/manager/vcpkg/find_package.lua fetch 没找到安装后的包而已。 |
Then adjust it here yourself, https://github.com/xmake-io/xmake/blob/dev/xmake/modules/package/manager/vcpkg/find_package.lua fetch did not find the installed package. |
刚尝试调试了一下,发现xmake读取这个 infofile里的内容,但是里面只有这些内容,并没有 include,lib等文件夹。
|
那这种目前解析不了,先得确认库和头文件路径在哪。啥也没有 就没办法了。。 所以建议用 xmake-repo 的 opencv 包 |
This kind of problem cannot be parsed at present. You must first confirm where the library and header file paths are. If there is nothing, there is nothing we can do. . Therefore, it is recommended to use the opencv package of xmake-repo |
嗯,我改成 add_requires("vcpkg::opencv4[contrib,freetype]", {alias = "opencv"}),动态库倒是可以用,静态库好像是没有级联依赖 导致报一堆像libpng之类的其他依赖库未定义的错误 |
目前 vcpkg/conan 的级联依赖需要一个个声明,动态库自然都包含进去,而静态库需要手动链接 |
只有 xmake-repo 仓库的包才支持级联依赖。。三方包不支持 |
Only packages in the xmake-repo warehouse support cascading dependencies. . Third-party packages are not supported |
Xmake 版本
2.9.5
操作系统版本和架构
Windows11
描述问题
如题
期待的结果
解决
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: