ruki

Results 1751 comments of ruki

> 目前 xrepo 对 cross 平台支持似乎不是特别好,我看了一下(用到的依赖包里)on_install 如果带有平台参数(linux/windows/mingw)几乎没有一个是考虑了 cross 平台的。 这话说的,支持 cross 的包,没有一千,几百个还是有的,可以到 https://xrepo.xmake.io/#/packages/cross 上面看,全是支持 cross 的。 不能光看 on_install 的参数。。`on_install(function (package))` 这种没平台限制,全平台支持的包也都多了去了,都全平台了,cross 当然也支持。 没有的提 pr 过来,加上支持就行了,如果加了 `cross` 包还是编译不过不支持,那你设置成 linux + cross...

> 当然,所以我限定了“带有平台参数”。问题是这样的带有平台参数的包很多,大多数又不考虑 cross , -p linux 又可以编译😂... 所以,这种提个 pr 过来改进下包不就完事了么 > 我觉得测试交叉平台的包意义不是很大,交叉链也太多了,测试不完的... 还有的厂商定制交叉链... ci 过一遍,只能能提前规避 90% 以上的问题,否则 issues 还不得打爆,我哪有时间天天处理这种问题。 > 如果说为了节约资源弄一个 cross 平台个人认为还是欠考虑了,github ci并行有限制,但是作业可以排队的。 不光是 ci 资源,还有人力资源。ci 跪了,还不是得维护者去修,就一个 cross 平台,我们都修的累死累活了。。特么要...

> 还有就是目前的问题是 cmake 的依赖包会传递交叉链参数(散装的toolchain),但 autoconf 的依赖包不会传相应参数给 configure... 包安装,散装参数一概不支持,请走 `--toolchain` 和 set_toolchain 切工具链。

> 最后确认一下,意思是 cmake 支持 --cross 提供的“散装参数”是bug,autoconf 不支持是正常的? 目前对包的安装,不管是 cmake,meson/autoconf ,我都没对散装 cross 进行支持,只支持 toolchain ,这里面考虑的东西太多了。 - 不光要处理 `--cross`, 还有 `--ld/--cxx/--cc/--ldflags` 等一堆散装参数 - 还要处理 package buildhash ,确保没有兼容性冲突,走 toolchain 就不会有这个问题 - 还得处理包的 package:tool()...

> > 目前对包的安装,不管是 cmake,meson/autoconf ,我都没对散装 cross 进行支持,只支持 toolchain ,这里面考虑的东西太多了。 > > 额... 看[这里](https://github.com/xmake-io/xmake/issues/5530#issuecomment-2316569399),cmake 是支持的。 那是因为你指定了 -a arm64 ,正好触发到了 cross 平台,https://github.com/xmake-io/xmake/blob/87630c8cf33105cc8c000e73cb7b67a2decfe02d/xmake/modules/package/tools/cmake.lua#L906 但这并不是特意支持,只是碰巧切进去了而已。。如果你没设置 arch ,仅仅设置 --cross=, -ld 散装设置参数,照样不行。。 而且光这里进去,上面提到的那些点不处理,后期还会遇到各种问题。。不是说 碰巧偶尔几个包可以,就说明支持了。

you can open a pr to add `add_extsources` or on_fetch to improve to find system library for glfw package. e.g. `add_extsources("pkgconfig::glfw3")` https://github.com/xmake-io/xmake-repo/blob/8822e12a8bd9a85bb34b13bacbe1a0899968c964/packages/g/glfw/xmake.lua#L23 and you can refer other packages in xmake-repo

> can u try https://github.com/Arthapz/xmake/tree/fix-module-scanning and confirm that the issue is fixed or not ? @refi64 Does it work now? and can you provide a reproducible problem project example?

I was able to reproduce it on my macOS. and I tried this patch https://github.com/Arthapz/xmake/tree/fix-module-scanning , it still does not work. ```console $ cd tests/projects/c++/modules/hello ruki:hello ruki$ rm -rf build/;...

full verbose logs ```console ruki:hello ruki$ rm -rf .xmake/ ruki:hello ruki$ rm -rf build/ ruki:hello ruki$ xmake f --toolchain=llvm -c -vD checking for platform ... macosx checking for architecture ......

thanks, I will try it in these days.