Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Mar 31 17:44
    nandra opened #132
  • Mar 31 12:48
    jackywu closed #738
  • Mar 31 12:33
    jackywu opened #738
  • Mar 31 04:29
    KB5201314 opened #30
  • Mar 30 11:26
    jococi opened #131
  • Mar 29 07:43
    waruqi closed #29
  • Mar 29 03:45
    waruqi closed #737
  • Mar 29 02:45
    conlay-cn opened #737
  • Mar 28 14:03
    bstaint closed #736
  • Mar 28 13:46
    waruqi unlabeled #736
  • Mar 28 13:45
    waruqi labeled #736
  • Mar 28 10:31
    waruqi labeled #736
  • Mar 28 09:57
    bstaint opened #736
  • Mar 28 03:57
    waruqi demilestoned #727
  • Mar 28 03:57
    waruqi milestoned #727
  • Mar 27 07:00
    playgithub closed #734
  • Mar 27 06:55
    playgithub closed #735
  • Mar 27 05:13
    playgithub opened #735
  • Mar 27 05:07
    playgithub opened #734
  • Mar 27 02:30
    waruqi labeled #695
ruki
@waruqi
@thenaquad_twitter You can use this xmake.lua and run xmake test to try it.
All test targets (with set_default(false)) will be not built by default, you can run xmake test or xmake build xxx_test or xmake --all to force to build these test targets.
Robert Butler
@lighth7015
how do I change xmake's built-in text (e.g. xmake f --config)?
ruki
@waruqi
@lighth7015 What text?
Armer song
@armersong
@waruqi 请问如何增加私有的conan仓库? xmake repo 增加失败
xmake repo -a cvte http://conan.opssee.com.cn:9300
error: 正克隆到 '/home/armers/projects/c++/xmake/conan-demo/.xmake/linux/x86_64/repositories/cvte'...
fatal: repository 'http://conan.opssee.com.cn:9300/' not found
ruki
@waruqi
@armersong 这个命令是用来添加xmake自己的私有仓库的,repo需要满足xmake自己的格式,具体参考xmake-repo,而conan的私有仓库 只能通过add_requires里面,传递参数到conan才行,具体conan包的使用 请看文档
另外这里我很少上,有问题尽量提github issues
Armer song
@armersong
收到。谢谢解答
kraigher
@kraigher
Hi, I am investigating different build systems and xmake is of interest. I am comparing it with premake (https://premake.github.io/) which is also LUA-based and seems superficially similar to xmake. Anyone here that has experience with both premake and xmake and could compare them? Why should I choose xmake over premake?
kraigher
@kraigher
I am not able to compile a file ending in .c as a C++ files. I read that add_files has a languages attribute but setting it seems to have no effect
Biswapriyo Nath
@Biswa96
Is there any build instruction to build xmake in Windows?
ruki
@waruqi
@kraigher add_files("*.c", {sourcekind = "cxx"})
@Biswa96 you need only run 'xmake' command in cmd to build projects.
ruki
@waruqi
if you want to build xmake, you can enter into core directory to build it. cd xmake/core xmake
Biswapriyo Nath
@Biswa96
I want to build xmake using GNU make or cmake. As per this msys2/MINGW-packages#6169.
make build
make build; make install
Biswapriyo Nath
@Biswa96

Some depends and makedepens can be added in PKGBUILD file. Example,

depends=('ncurses' 'readline' 'glibc' 'gcc-libs')

The compiled xmake binary has dependency on those .SO files (readelf -d).

ruki
@waruqi
ok
Biswapriyo Nath
@Biswa96
I'm not sure about it. Just asking.
ruki
@waruqi
I have improved xmake to compile it on mingw/msys/cygwin. It has been compiled successfully on msys/mingw for xmake/dev branch.
I am solving the compatibility issue of xmake on msys/mingw. I haven’t had time to improve PKGBUILD in these days, I will look at it later.
Biswapriyo Nath
@Biswa96
I thought xmake don't need any "real" code change because there is already a Windows build. OK, I'll check the dev branch.
Biswapriyo Nath
@Biswa96
Got this error:
make[3]: *** No rule to make target 'autogen/msys/jit/x86_64/lj_vm.o', needed by 'libluajitr.a'.  Stop.
make[2]: *** [/f/xmake/core/suffix.mak:305: DEP_PROS_luajit_all] Error 2
ruki
@waruqi

I thought xmake don't need any "real" code change because there is already a Windows build. OK, I'll check the dev branch.

It only support build xmake for msvc compiler. Some win api cannot process msys/mingw environments. e.g. GetEnvirnomentStrings cannot get all envs on msys, but getenv() ok.

and unix path, file system, ..

Got this error:

make[3]: *** No rule to make target 'autogen/msys/jit/x86_64/lj_vm.o', needed by 'libluajitr.a'.  Stop.
make[2]: *** [/f/xmake/core/suffix.mak:305: DEP_PROS_luajit_all] Error 2

please rununame command and let me look at it.

ruki
@waruqi
I feel the win api compatibility of msys/gcc is not particularly good. : (
Biswapriyo Nath
@Biswa96
uname here MINGW64_NT-10.0-19555
ruki
@waruqi
I forgot to submit some files, you can try pulling the dev branch again
Biswapriyo Nath
@Biswa96
It successfully compiled 🎉 BTW, did you add object files in dev branch in last commit?
ruki
@waruqi
yes.
Biswapriyo Nath
@Biswa96
One Q, why the package() step in PKGBUILD file is done with mkdir, cp like commands instead of make install?
ruki
@waruqi
Because when I wrote PKGBUILD, the make install script didn't exist, so I didn't replace it later.
Biswapriyo Nath
@Biswa96
OK, waiting for next release...
ruki
@waruqi
ok, I need to solve the compatibility issue of compiling xmake with msys/gcc. Currently xmake does not work well on msys. Please wait some time.
ruki
@waruqi
@Biswa96 I have published the release version (v2.3.1)
Biswapriyo Nath
@Biswa96
Also shouldn't the xmake shell script and xmake.exe name be different to remove any confusion while invoking from a shell?
ruki
@waruqi

Also shouldn't the xmake shell script and xmake.exe name be different to remove any confusion while invoking from a shell?

I have renamed them, shasum (e6e2d3b6679ae6fa2663125d3b0d927ffe811e9d8da88b97209bc508f35df6d7)

paul-reilly
@paul-reilly
I have a test project that dynamically links to some libraries. xmake run runs the program successfully, but what do I do to install it and have the dlls copied to the same directory as the exe?
paul-reilly
@paul-reilly
xmake install -o . creates a bin directory and copies the exe to it, but not the dlls.
ruki
@waruqi
@paul-reilly You need use add_installfiles to add other installed files, you can see . https://xmake.io/#/manual/project_target?id=targetadd_installfiles
Oy you can add after_install() script to custom your installation. https://xmake.io/#/manual/project_target?id=targetafter_install
ruki
@waruqi
You can also use set_installdir to set the installation directory to the same bin directory for the given dynamic target. https://xmake.io/#/manual/project_target?id=targetset_installdir
paul-reilly
@paul-reilly
@ruki : I am using vcpkg, which xmake picks up automatically and does a great job of finding packages - thanks for this functionality! The problem is that when I use CMake or Visual Studio, the relevant dlls are copied automatically to the build dir, but xmake doesn't appear to do this. Is this a feature request? :)
ruki
@waruqi
@paul-reilly You can submit a feature request on github issues. Or you can run xmake require --export xxx to export them to build directory or other dirs. Or add after_install/after_build and copy them by myself.