Skip to content
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

装任何conan包都报错 #3646

Closed
heheda123123 opened this issue Apr 18, 2023 · 4 comments
Closed

装任何conan包都报错 #3646

heheda123123 opened this issue Apr 18, 2023 · 4 comments
Labels

Comments

@heheda123123
Copy link
Contributor

Xmake 版本

dev

操作系统版本和架构

windows 11

描述问题

提示 ERROR: Unable to find 'xmake_generator/0.1.0@bincrafters/testing' in remotes
conan版本 1.59.0

PS C:\Users\Administrator\temp\testpocosql> xrepo install conan::poco/1.12.4
note: install or modify (m) these packages (pass -y to skip confirm)?
in conan:
  -> conan::poco/1.12.4 latest [vs_runtime:"MT"]
please input: y (y/n/m)
y
  => installing conan::poco/1.12.4 .. (1/conan) ⠋
PS C:\Users\Administrator\temp\testpocosql> xrepo install -v conan::poco/1.12.4
xmake f -c --require=n
checking for platform ... windows
checking for architecture ... x64
checking for Microsoft Visual Studio (x64) version ... 2022
xmake require -v -j 18 --extra={system=false} conan::poco/1.12.4
checking for unzip ... no
checking for 7z ... C:\Users\Administrator\xmake\winenv\bin\7z
checking for git ... ok
checking for gzip ... no
checking for conan::poco/1.12.4 ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in conan:
  -> conan::poco/1.12.4 latest [vs_runtime:"MT"]
please input: y (y/n/m)
y
checking for conan ... ok
conan install . --build=missing -s os=Windows -s arch=x86_64 -s build_type=Release -s "compiler=Visual Studio" -s compiler.version=17 -s compiler.runtime=MT
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MT
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

strawberryperl/5.32.1.1: Not found in local cache, looking in remotes...
strawberryperl/5.32.1.1: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [2.25k]
Downloading conan_export.tgz completed [0.39k]
Decompressing conan_export.tgz completed [0.00k]
strawberryperl/5.32.1.1: Downloaded recipe revision 0
nasm/2.15.05: Not found in local cache, looking in remotes...
nasm/2.15.05: Trying with 'conancenter'...
Downloading conanmanifest.txt completed [0.22k]
Downloading conanfile.py completed [3.88k]
Downloading conan_export.tgz completed [0.38k]
Decompressing conan_export.tgz completed [0.00k]
nasm/2.15.05: Downloaded recipe revision 0
xmake_generator/0.1.0@bincrafters/testing: Not found in local cache, looking in remotes...
xmake_generator/0.1.0@bincrafters/testing: Trying with 'conancenter'...
ERROR: Unable to find 'xmake_generator/0.1.0@bincrafters/testing' in remotes
error: execv(conan install . --build=missing -s os=Windows -s arch=x86_64 -s build_type=Release -s "compiler=Visual Studio" -s compiler.version=17 -s compiler.runtime=MT) failed(1)
  => install conan::poco/1.12.4 latest .. failed
error: install failed!
error: execv(xmake require -v -j 18 --extra={system=false} conan::poco/1.12.4) failed(-1)
PS C:\Users\Administrator\temp\testpocosql>

期待的结果

正确处理conan包。
是不是conan版本的问题?现在降级成了 1.59.0

工程配置

No response

附加信息和错误日志

No response

@waruqi
Copy link
Member

waruqi commented Apr 18, 2023

看下 #3633

@heheda123123
Copy link
Contributor Author

看下 #3633

那个也是我发的,那个issue后面我说可以了,但是当时貌似没跑完,只是看到没报编译器版本的错误就C-c了。
而且现在这个报错也不一样。难道是 xmake_generator 包被移除了?

@waruqi
Copy link
Member

waruqi commented Apr 18, 2023

你可以删了 build .xmake 再试试

@heheda123123
Copy link
Contributor Author

可以了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants