xmake-io / xrepo

🗂️ A cross-platform C/C++ package manager based on Xmake
https://xrepo.xmake.io
Apache License 2.0
354 stars 18 forks source link

xrepo search 找不到boost #11

Closed Binary-Song closed 3 years ago

Binary-Song commented 3 years ago

描述问题

Windows10上执行

xrepo search boost

发现输出只有1行: image

裸连和挂梯子都没用

期待的结果

输出boost包的信息

错误信息

PS D:\Projects\xiaoxun_cpp_backend> xrepo search -vD boost
xmake f -c -v -D
checking for platform ... windows
checking for architecture ... x64
checking for vswhere.exe ... C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
checking for cl.exe ... C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2019
checkinfo: cannot runv(dmd.exe --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2.exe --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc.exe --version), No such file or directory
checking for gdc ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checking for link.exe ... C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
configure
{
    host = windows
    ndk_stdcxx = true
    arch = x64
    buildir = build
    clean = true
    ccache = true
    plat = windows
    mode = release
    vs = 2019
    kind = static
}
xmake require --search -v -D boost
configure
{
    ndk_stdcxx = true
    buildir = build
    host = windows
    clean = true
    mode = release
    vs = 2019
    plat = windows
    kind = static
    ccache = true
    arch = x64
}
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Program Files\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
The package names:
PS D:\Projects\xiaoxun_cpp_backend>
The package names:

相关环境

请提供编译和运行环境信息,下面是一些必须填写的基础信息,便于我们针对性排查问题:

waruqi commented 3 years ago

我这里可以,暂时无法复现,可以更新下 repo 试试,xrepo update-repo

image

Binary-Song commented 3 years ago

update 显示有错误:

D:\Projects\xiaoxun_cpp_backend\build\Debug>xrepo update-repo    
updating repositories .. error: fatal: not a git repository (or any of the parent directories): .git

error: execv(xmake repo --update) failed(-1)
D:\Projects\xiaoxun_cpp_backend\build\Debug>xrepo update-repo 
updating repositories .. error: fatal: not a git repository (or any of the parent directories): .git

error: execv(xmake repo --update) failed(-1)
D:\Projects\xiaoxun_cpp_backend\build\Debug>xrepo update-repo -vD
xmake repo --update -v -D
updating repositories .. 
pulling repository(build-artifacts): https://gitlab.com/xmake-mirror/build-artifacts.git to C:\Users\O5\AppData\Local\.xmake\repositories\build-artifacts ..
git pull origin main
From https://gitlab.com/xmake-mirror/build-artifacts
 * branch            main       -> FETCH_HEAD
Already up to date.
pulling repository(xmake-repo): https://gitlab.com/tboox/xmake-repo.git to C:\Users\O5\AppData\Local\.xmake\repositories\xmake-repo ..
git pull origin master
fatal: not a git repository (or any of the parent directories): .git
error: @programdir\core\main.lua:279: @programdir\core\sandbox\modules\os.lua:392: execv(git pull origin master) failed(128)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:821]: in function 'raise'
    [@programdir\core\sandbox\modules\os.lua:392]: in function 'runv'
    [@programdir\core\sandbox\modules\os.lua:289]: in function 'vrunv'
    [@programdir\modules\devel\git\pull.lua:89]: in function 'pull'
    [@programdir\plugins\repo\main.lua:110]: in function 'task'
    [@programdir\plugins\repo\main.lua:134]: in function '_update'
    [@programdir\plugins\repo\main.lua:230]:
    [C]: in function 'load'
    [@programdir\core\base\task.lua:519]: in function 'run'
    [@programdir\core\main.lua:277]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:365]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:821: in function 'raise'
        @programdir\core\main.lua:279: in function 'cotask'
        @programdir\core\base\scheduler.lua:365: in function <@programdir\core\base\scheduler.lua:362>
error: @programdir\core\main.lua:279: @programdir\core\sandbox\modules\os.lua:392: execv(xmake repo --update -v -D) failed(-1)
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:821]: in function 'raise'
    [@programdir\core\sandbox\modules\os.lua:392]: in function 'vexecv'
    [@programdir\modules\private\xrepo\action\update-repo.lua:70]: in function 'update_repository'
    [@programdir\modules\private\xrepo\action\update-repo.lua:75]: in function 'action'
    [@programdir\modules\private\xrepo\main.lua:196]: in function 'func'
    [@programdir\plugins\lua\main.lua:123]:
    [C]: in function 'load'
    [@programdir\core\base\task.lua:519]: in function 'run'
    [@programdir\core\main.lua:277]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:365]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:821: in function 'raise'
        @programdir\core\main.lua:279: in function 'cotask'
        @programdir\core\base\scheduler.lua:365: in function <@programdir\core\base\scheduler.lua:362>
D:\Projects\xiaoxun_cpp_backend\build\Debug>

麻烦帮忙看一下,谢谢!

waruqi commented 3 years ago

删了 C:\Users\O5\AppData\Local.xmake\repositories\xmake-repo 目录

再试下

Binary-Song commented 3 years ago

问题解决了,谢谢!

klarkxy commented 2 years ago

删了 C:\Users\O5\AppData\Local.xmake\repositories\xmake-repo 目录

再试下

想问下我能自定义这个xmake-repo的路径么?不太想在C盘里塞太多东西

waruqi commented 2 years ago

https://xmake.io/#/zh-cn/guide/configuration?id=xmake_globaldir