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

xmake依赖vcpkg编译失败 #903

Closed
sandunder opened this issue Jul 29, 2020 · 2 comments
Closed

xmake依赖vcpkg编译失败 #903

sandunder opened this issue Jul 29, 2020 · 2 comments
Labels
Milestone

Comments

@sandunder
Copy link

sandunder commented Jul 29, 2020

xmake -vD 后的错误:
checking for the architecture ... x64
checking for the Microsoft Visual Studio (x64) version ... 2019
finding boost-dynamic-bitset from vcpkg ..
finding boost-multiprecision from vcpkg ..
note: try installing these packages (pass -y to skip confirm)?
in vcpkg:
-> vcpkg::boost-dynamic-bitset latest
-> vcpkg::boost-multiprecision latest
please input: y (y/n)
y
installing boost-dynamic-bitset from vcpkg ..
finding boost-dynamic-bitset from vcpkg ..

error: @programdir\actions\require\impl\action\install.lua:191: fetch vcpkg::boost-dynamic-bitset-latest failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:792]: in function 'raiselevel'
[@programdir\core\sandbox\modules\utils.lua:181]: in function 'assert'
[@programdir\actions\require\impl\action\install.lua:191]:
[C]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:121]: in function 'try'
[@programdir\actions\require\impl\action\install.lua:127]: in function 'install'
[@programdir\actions\require\impl\package.lua:619]: in function 'jobfunc'
[@programdir\modules\private\async\runjobs.lua:185]:
[C]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:121]: in function 'try'
[@programdir\modules\private\async\runjobs.lua:182]: in function 'cotask'
[@programdir\core\base\scheduler.lua:317]:

=> install vcpkg::boost-dynamic-bitset latest .. failed
error: @programdir\modules\private\async\runjobs.lua:207: @programdir\actions\require\impl\action\install.lua:250: install failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:792]: in function 'raise'
[@programdir\actions\require\impl\action\install.lua:250]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:127]: in function 'try'
[@programdir\actions\require\impl\action\install.lua:127]: in function 'install'
[@programdir\actions\require\impl\package.lua:619]: in function 'jobfunc'
[@programdir\modules\private\async\runjobs.lua:185]:
[C]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:121]: in function 'try'
[@programdir\modules\private\async\runjobs.lua:182]: in function 'cotask'
[@programdir\core\base\scheduler.lua:317]:

stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:792: in function 'raise'
@programdir\modules\private\async\runjobs.lua:207: in function 'catch'
@programdir\core\sandbox\modules\try.lua:127: in function 'try'
@programdir\modules\private\async\runjobs.lua:182: in function 'cotask'
@programdir\core\base\scheduler.lua:317: in function <@programdir\core\base\scheduler.lua:315>
xmake.lua:
add_rules("mode.debug", "mode.release")
add_requires("vcpkg::boost-dynamic-bitset","vcpkg::boost-multiprecision")
target("boost_test")
add_cxflags("/EHsc")
set_optimize("fastest")
set_kind("binary")
set_languages("c99","c++17")
add_files("src/*.cpp")
add_packages("vcpkg::boost-dynamic-bitset","vcpkg::boost-multiprecision")

@waruqi
Copy link
Member

waruqi commented Jul 29, 2020

你更新到dev分支版本,再试试。xmake update -s dev

然后追加-c,强制清下之前的检测缓存

xmake update -s dev
xmaek f -c

@sandunder
Copy link
Author

解决问题了,谢谢👌👍

@waruqi waruqi closed this as completed Jul 29, 2020
@waruqi waruqi added the bug label Jul 29, 2020
@waruqi waruqi added this to the v2.3.7 milestone Jul 29, 2020
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