Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:10
    waruqi edited #598
  • 02:10
    waruqi labeled #598
  • 02:09
    waruqi edited #598
  • 02:08
    waruqi edited #598
  • 02:06
    waruqi closed #596
  • 01:21
    L1MeN9Yu opened #598
  • Oct 17 16:05
    waruqi closed #595
  • Oct 17 13:20
    waruqi labeled #591
  • Oct 17 13:20
    waruqi unlabeled #591
  • Oct 17 13:19
    waruqi closed #591
  • Oct 17 10:09
    fasiondog opened #597
  • Oct 17 03:39
    fasiondog opened #596
  • Oct 17 02:13
    fasiondog closed #594
  • Oct 16 18:03
    1m188 closed #16
  • Oct 16 17:48
    1m188 edited #595
  • Oct 16 17:47
    1m188 edited #595
  • Oct 16 17:46
    1m188 edited #595
  • Oct 16 17:46
    1m188 edited #595
  • Oct 16 17:46
    1m188 edited #595
  • Oct 16 17:45
    1m188 opened #595
tboox_bot
@warrny
OpportunityLiu: 直接devenv /debugexe
waruqi: 因为 我基本不怎么用这块 。。好久没去完善了。。
CodeHz: 现在是2019,很可能改了(
waruqi: 嗯嗯 抽空可以改进下这块
tboox_bot
@warrny
waruqi:
waruqi: @OpportunityLiu vs2017我这也可以么 。。2019回头我也试试
tboox_bot
@warrny
waruqi: @OpportunityLiu 现在dev上你看看 还有什么其他问题么? 没有的话 我最近就封板了。。其他新特性和改进都放到2.2.9上去好了。
tboox_bot
@warrny
OpportunityLiu: $xmake create -l cuda -P x
$cd x
$xmake f -p linux
$xmake
[ 0%]: compiling.release src\main.cu
error: nvcc fatal : Cannot find compiler 'cl.exe' in PATH
$xmake -D -v
error: ...\xmake\actions\build\main.lua:75: cannot deserialize "{stdout=\"nvcc fatal "... : (deserializing data):4: '<eof>' expected near 'stack'
tboox_bot
@warrny
Bob:
tboox_bot
@warrny
waruqi: linux平台,不会去加 msvc toolchains的 path,找不到也正常,错误提示 vstool.runv 会raise({errors, stdout ...}) catch外面需要tostring处理的,这个得查下,哪里没处理到位。。你提个issues吧 (re @OpportunityLiu: $xmake create -l cuda -P x
$cd x
$xmake f -p linux
$xmake
[ 0%]: compiling.release src\main.cu
error: nvcc fatal : Cannot find compiler 'cl.exe' in PATH
$xmake -D -v
error: ...\xmake\actions\build\main.lua:75: cannot deserialize "{stdout=\"nvcc fatal "... : (deserializing data):4: '<eof>' expected near 'stack')
tboox_bot
@warrny
OpportunityLiu: 试图在deserialize一个类似 {stdout="",stderr=""}stack: ... 的字符串 (re @waruqi: linux平台,不会去加 msvc toolchains的 path,找不到也正常,错误提示 vstool.runv 会raise({errors, stdout ...}) catch外面需要tostring处理的,这个得查下,哪里没处理到位。。你提个issues吧)
OpportunityLiu: 所以它才会报 '<eof>' expected near 'stack'
OpportunityLiu: Forwarded from OpportunityLiu: 试图在deserialize一个类似 {stdout="",stderr=""}stack: ... 的字符串
tboox_bot
@warrny
waruqi: 恩 这个我知道,os.iorunv的时候 会抛 raise({errors=, stdout=,stderror=}) 然后 os.raiselevel里面去serialize 它,在utils.trycall 里面获取到errors后,再deseriablize 成 table 传递给 catch (errors)
waruqi:
waruqi: 这里 deserialize 的时候 似乎出错了。。可以看下这里的 errors 串内容
tboox_bot
@warrny
Tony:
tboox_bot
@warrny
waruqi: @OpportunityLiu 你这还有遇到其他问题么,这个版本没啥问题的话,这两天我就发版了。
tboox_bot
@warrny
OpportunityLiu: 感觉不太对。。。:
tboox_bot
@warrny
waruqi: xmake-release mirror里面忘记传了。。现在好了。。你再试试 (re @OpportunityLiu: )
tboox_bot
@warrny
OpportunityLiu: ➜ ~ xmake update -v -D
checking for the unzip ... /usr/bin/unzip
checking for the git ... /usr/bin/git
checking for the gzip ... /bin/gzip
checking for the tar ... /bin/tar
checking for the ping ... /bin/ping
pinging for the host(gitee.com) ... 33 ms
pinging for the host(gitlab.com) ... 218 ms
checking for the nmap ... no
pinging for the host(github.com) ... 65535 ms
/usr/bin/git ls-remote --refs https://gitee.com/tboox/xmake.git
update version v2.2.8 from official source ..
prepared to download to temp dir /tmp/.xmake1001/190827/xmakesrc/v2.2.8 ..
=> downloading https://gitee.com/tboox/xmake.git .. /usr/bin/git clone https://gitee.com/tboox/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8'...
remote: Enumerating objects: 51316, done.
remote: Counting objects: 100% (51316/51316), done.
remote: Compressing objects: 100% (17414/17414), done.
remote: Total 51316 (delta 35183), reused 46520 (delta 31660)
接收对象中: 100% (51316/51316), 16.31 MiB | 1.65 MiB/s, 完成.
处理 delta 中: 100% (35183/35183), 完成.
/usr/bin/git checkout v2.2.8
注意:正在检出 'v2.2.8'。
您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以通过另外
的检出分支操作丢弃在这个状态下所做的任何提交。
如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在检出命令添加
参数 -b 来实现(现在或稍后)。例如:
git checkout -b <新分支名>
HEAD 目前位于 6a2e390a update version
/usr/bin/git submodule update --init --recursive
子模组 'core/src/luajit/luajit'(https://gitee.com/xmake-io/xmake-core-luajit.git)已对路径 'core/src/luajit/luajit' 注册
子模组 'core/src/pdcurses/pdcurses'(https://gitee.com/xmake-io/xmake-core-pdcurses.git)已对路径 'core/src/pdcurses/pdcurses' 注册
子模组 'core/src/sv/sv'(https://gitee.com/xmake-io/xmake-core-sv.git)已对路径 'core/src/sv/sv' 注册
子模组 'core/src/tbox/tbox'(https://gitee.com/tboox/tbox.git)已对路径 'core/src/tbox/tbox' 注册
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/luajit/luajit'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/pdcurses/pdcurses'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/sv/sv'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/tbox/tbox'...
子模组路径 'core/src/luajit/luajit':检出 'd1ea93d1b5d175e29af653872ec5bb77f55241a5'
子模组路径 'core/src/pdcurses/pdcurses':检出 '46d2c800bee8b5c1a51a9dfbbbc77461e98b9ecb'
error: 服务器不允许请求未公开的对象 9a3cf7c8e589de4f70378824329882c4a047fffc
获取了子模组路径 'core/src/sv/sv',但是它没有包含 9a3cf7c8e589de4f70378824329882c4a047fffc。直接获取该提交失败。
/home/dps/.local/share/xmake/core/base/os.lua:719: execv(/usr/bin/git submodule update --init --recursive) failed(1)!
stack traceback:
[C]: in function 'error'
[/home/dps/.local/share/xmake/core/base/os.lua:719]: in function 'raise'
[./.local/share/xmake/core/sandbox/modules/os.lua:414]:
[./.local/share/xmake/core/sandbox/modules/os.lua:334]: in function 'vrunv'
[./.local/share/xmake/modules/devel/git/submodule/update.lua:71]: in function 'update'
[./.local/share/xmake/actions/update/main.lua:324]:
[C]: in function 'trycall'
[./.local/share/xmake/core/sandbox/modules/try.lua:121]: in function 'try'
[./.local/share/xmake/actions/update/main.lua:312]: in function 'download_task'
[./.local/share/xmake/actions/update/main.lua:353]:
[C]: in function 'load'
[/home/dps/.local/share/xmake/core/base/task.lua:508]: in function 'run'
[/home/dps/.local/share/xmake/core/main.lua:231]:
OpportunityLiu: => download https://gitee.com/tboox/xmake.git .. failed
=> downloading https://gitlab.com/tboox/xmake.git .. /usr/bin/git clone https://gitlab.com/tboox/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8'...
fatal: 不能读取当前工作目录: 没有那个文件或目录
/home/dps/.local/share/xmake/core/base/os.lua:719: execv(/usr/bin/git clone https://gitlab.com/tboox/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8) failed(128)!
stack traceback:
[C]: in function 'error'
[/home/dps/.local/share/xmake/core/base/os.lua:719]: in function 'raise'
[./.local/share/xmake/core/sandbox/modules/os.lua:414]:
[./.local/share/xmake/core/sandbox/modules/os.lua:334]: in function 'vrunv'
[./.local/share/xmake/modules/devel/git/clone.lua:74]: in function 'clone'
[./.local/share/xmake/actions/update/main.lua:321]:
[C]: in function 'trycall'
[./.local/share/xmake/core/sandbox/modules/try.lua:121]: in function 'try'
[./.local/share/xmake/actions/update/main.lua:312]: in function 'download_task'
[./.local/share/xmake/actions/update/main.lua:353]:
[C]: in function 'load'
[/home/dps/.local/share/xmake/core/base/task.lua:508]: in function 'run'
[/home/dps/.local/share/xmake/core/main.lua:231]:
=> download https://gitlab.com/tboox/xmake.git .. failed
=> downloading https://github.com/xmake-io/xmake.git .. /usr/bin/git clone https://github.com/xmake-io/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8'...
fatal: 不能读取当前工作目录: 没有那个文件或目录
/home/dps/.local/share/xmake/core/base/os.lua:719: execv(/usr/bin/git clone https://github.com/xmake-io/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8) failed(128)!
stack traceback:
[C]: in function 'error'
[/home/dps/.local/share/xmake/core/base/os.lua:719]: in function 'raise'
[./.local/share/xmake/core/sandbox/modules/os.lua:414]:
[./.local/share/xmake/core/sandbox/modules/os.lua:334]: in function 'vrunv'
[./.local/share/xmake/modules/devel/git/clone.lua:74]: in function 'clone'
[./.local/share/xmake/actions/update/main.lua:321]:
[C]: in function 'trycall'
[./.local/share/xmake/core/sandbox/modules/try.lua:121]: in function 'try'
[./.local/share/xmake/actions/update/main.lua:312]: in function 'download_task'
[./.local/share/xmake/actions/update/main.lua:353]:
[C]: in function 'load'
[/home/dps/.local/share/xmake/core/base/task.lua:508]: in function 'run'
[/home/dps/.local/share/xmake/core/main.lua:231]:
=> download https://github.com/xmake-io/xmake.git .. failed
error: /home/dps/.local/share/xmake/core/base/os.lua:719: download failed!
stack traceback:
[C]: in function 'error'
[/home/dps/.local/share/xmake/core/base/os.lua:719]: in function 'raise'
[./.local/share/xmake/actions/update/main.lua:346]: in function 'download_task'
[./.local/share/xmake/actions/update/main.lua:353]:
[C]: in function 'load'
[/home/dps/.local/share/xmake/core/base/task.lua:508]: in function 'run'
[/home/dps/.local/share/xmake/core/main.lua:231]:
OpportunityLiu: => download https://gitee.com/tboox/xmake.git .. failed
=> downloading https://gitlab.com/tboox/xmake.git .. /usr/bin/git clone https://gitlab.com/tboox/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8'...
tboox_bot
@warrny
waruqi: 你再试试,应该可以了,之前sv submodule 更新忘记提交到gitee了。。 (re @OpportunityLiu: ➜ ~ xmake update -v -D
checking for the unzip ... /usr/bin/unzip
checking for the git ... /usr/bin/git
checking for the gzip ... /bin/gzip
checking for the tar ... /bin/tar
checking for the ping ... /bin/ping
pinging for the host(gitee.com) ... 33 ms
pinging for the host(gitlab.com) ... 218 ms
checking for the nmap ... no
pinging for the host(github.com) ... 65535 ms
/usr/bin/git ls-remote --refs https://gitee.com/tboox/xmake.git
update version v2.2.8 from official source ..
prepared to download to temp dir /tmp/.xmake1001/190827/xmakesrc/v2.2.8 ..
=> downloading https://gitee.com/tboox/xmake.git .. /usr/bin/git clone https://gitee.com/tboox/xmake.git /tmp/.xmake1001/190827/xmakesrc/v2.2.8
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8'...
remote: Enumerating objects: 51316, done.
remote: Counting objects: 100% (51316/51316), done.
remote: Compressing objects: 100% (17414/17414), done.
remote: Total 51316 (delta 35183), reused 46520 (delta 31660)
接收对象中: 100% (51316/51316), 16.31 MiB | 1.65 MiB/s, 完成.
处理 delta 中: 100% (35183/35183), 完成.
/usr/bin/git checkout v2.2.8
注意:正在检出 'v2.2.8'。
您正处于分离头指针状态。您可以查看、做试验性的修改及提交,并且您可以通过另外
的检出分支操作丢弃在这个状态下所做的任何提交。
如果您想要通过创建分支来保留在此状态下所做的提交,您可以通过在检出命令添加
参数 -b 来实现(现在或稍后)。例如:
git checkout -b <新分支名>
HEAD 目前位于 6a2e390a update version
/usr/bin/git submodule update --init --recursive
子模组 'core/src/luajit/luajit'(https://gitee.com/xmake-io/xmake-core-luajit.git)已对路径 'core/src/luajit/luajit' 注册
子模组 'core/src/pdcurses/pdcurses'(https://gitee.com/xmake-io/xmake-core-pdcurses.git)已对路径 'core/src/pdcurses/pdcurses' 注册
子模组 'core/src/sv/sv'(https://gitee.com/xmake-io/xmake-core-sv.git)已对路径 'core/src/sv/sv' 注册
子模组 'core/src/tbox/tbox'(https://gitee.com/tboox/tbox.git)已对路径 'core/src/tbox/tbox' 注册
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/luajit/luajit'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/pdcurses/pdcurses'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/sv/sv'...
正克隆到 '/tmp/.xmake1001/190827/xmakesrc/v2.2.8/core/src/tbox/tbox'...
子模组路径 'core/src/luajit/luajit':检出 'd1ea93d1b5d175e29af653872ec5bb77f55241a5'
子模组路径 'core/src/pdcurses/pdcurses':检出 '46d2c800bee8b5c1a51a9dfbbbc77461e98b9ecb'
error: 服务器不允许请求未公开的对象 9a3cf7c8e589de4f70378824329882c4a047fffc
获取了子模组路径 'core/src/sv/sv',但是它没有包含 9a3cf7c8e589de4f70378824329882c4a047fffc。直接获取该提交失败。
/home/dps/.local/share/xmake/core/base/os.lua:719: execv(/usr/bin/git submodule update --init --recursive) failed(1)!
stack traceback:
[C]: in function 'error'
[/home/dps/.local/share/xmake/core/base/os.lua:719]: in function 'raise'
[./.local/share/xmake/core/sandbox/modules/os.lua:414]:
[./.local/share/xmake/core/sandbox/modules/os.lua:334]: in function 'vrunv'
[./.local/share/xmake/modules/devel/git/submodule/update.lua:71]: in function 'update'
[./.local/share/xmake/actions/update/main.lua:324]:
[C]: in function 'trycall'
[./.local/share/xmake/core/sandbox/modules/try.lua:121]: in function 'try'
[./.local/share/xmake/actions/update/main.lua:312]: in function 'download_task'
[./.local/share/xmake/actions/update/main.lua:353]:
[C]: in function 'load'
[/home/dps/.local/share/xmake/core/base/task.lua:508]: in function 'run'
[/home/dps/.local/share/xmake/core/main.lua:231]:)
tboox_bot
@warrny
liuxin1: PRSAT
tboox_bot
@warrny
twuid: xcapi
Alex Zelid
@zelid

Hello, I just started playing with xmake and linking simple dependencies like zlib
zlib got compiled but my target can't find neither zlib's includeno it's librarries

here is xmake.lua and c++ file:
https://gist.github.com/zelid/4d1eba93c4b24a9ba2b0379a50da367b

what is the right way to get zlib's includes and libs available for my target?

Alex Zelid
@zelid
my bad, extra character in the header name
ruki
@waruqi
@zelid ok, and you can use add_syslinks("pthread") instead of add_ldflags("-lpthread")
Ho Ming Tsui
@alantsui_gitlab
Do you have any telegram group? @waruqi
about XMake?
ruki
@waruqi
@alantsui_gitlab
chaodad
@chaodad

在编译arm的固件时遇到了链接脚本检查通不过的问题诶

checking for the flags (-nostdlib) ... ok
checking for the flags (-T./link.ld) ... no

加上', {force = true}'可以编译通过

ruki
@waruqi
是的 link flags是通过尝试链接来检测的 有可能存在一定的失败率 。加force就行了,回头检测失败 我加个提示好了