by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:57
    kassane closed #956
  • 13:57
    kassane commented #956
  • 13:33
    waruqi edited #941
  • 12:52
    waruqi commented #961
  • 12:50
    waruqi commented #961
  • 12:50
    waruqi commented #961
  • 10:54
    paul-reilly commented #961
  • 10:49
    paul-reilly commented #961
  • 10:49
    paul-reilly commented #961
  • 10:25
    paul-reilly commented #961
  • 08:22
    waruqi commented #956
  • Sep 21 14:55
    waruqi commented #956
  • Sep 21 14:20
    kassane commented #956
  • Sep 21 14:19
    kassane commented #956
  • Sep 21 13:56
    waruqi commented #964
  • Sep 21 13:41
    tim-lebedkov commented #964
  • Sep 21 12:57
    kassane commented #956
  • Sep 21 12:55
    kassane commented #956
  • Sep 21 12:12
    waruqi closed #967
  • Sep 21 12:11
    waruqi closed #968
ruki
@waruqi
welcome to xmake group!
Biswapriyo Nath
@Biswa96
Is it possible to cross compile xmake without using xmake?
ruki
@waruqi

Is it possible to cross compile xmake without using xmake?

@Biswa96 You can try to export CC=, LD= CFLAGS= and run make build

Or you can add a new custom platform config, e.g. https://github.com/xmake-io/xmake/blob/master/core/plat/linux/prefix.mak and run make build
Biswapriyo Nath
@Biswa96
It does not work. I want to build for Windows ARM using llvm-mingw toolchain which uses clang for cross compilation.
ruki
@waruqi
xmake on windows arm?
I currently do not have this environment to try it out. Maybe a few code changes are required.
You can submit a feature request issue on github.
Biswapriyo Nath
@Biswa96

xmake on windows arm?

Yes. If I have time I will try to do it.

ruki
@waruqi
You can try CC=aarch64-w64-mingw32-gcc LD=aarch64-w64-mingw32-g++ make build ARCH=arm64, but there will still be some Luajit compilation errors, it seems that mingw-gcc does not support arm gas syntax. Maybe we need to modify luajit to support it.
Currently, I don't have much time to try this, you can also try it yourself first, or submit an issue to github.
xmcfirer
@xmcfirer
我认为,dlang应该在windows上应该优先使用ldc2,dmd在windows上根本无法有效与其它语言协作。
王茂斌
@skyfireitdiy
有人在吗?
请教一个问题,如果我想一个工程编译不同体系架构的target,通常的做法是怎样的?
```
toolchain("mytoolchain")
    set_sdkdir("...")
然后xmake -f --toolchain=mytoolchain吗?
f
Justa
@Justa1986
先点个赞,找了一圈构建系统最后发现xmake最简洁惊艳
xmake,我想导入做组件化构建,这里会用到很多第三方库,看xmake官方介绍已经完美支持autotools(已完全对接xmake的交叉编译环境),是否有示例入下门?
ruki
@waruqi

我认为,dlang应该在windows上应该优先使用ldc2,dmd在windows上根本无法有效与其它语言协作。

这个自己可以指定 --dc=ldc2 切的,或者只装 ldc2 不装 dmd 就行了

toolchain("mytoolchain")
    set_sdkdir("...")

然后xmake -f --toolchain=mytoolchain吗?

嗯,是的,也可以直接在特定 target 中通过 set_toolchains 指定。

xmake,我想导入做组件化构建,这里会用到很多第三方库,看xmake官方介绍已经完美支持autotools(已完全对接xmake的交叉编译环境),是否有示例入下门?

可以看下 xmake 的官方文档 https://xmake.io/#/zh-cn/getting_started ,也可以关注微信公众号 tboox-os 里面有一些 入门教程的 文章,或者到 tboox.org 上也能看到一些入门文章