Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 31 06:55
    xq114 closed #1007
  • Oct 30 14:40
    xq114 opened #1007
  • Oct 30 01:26
    waruqi closed #1005
  • Oct 30 01:25
    waruqi labeled #1005
  • Oct 30 01:05
    waruqi milestoned #985
  • Oct 30 01:05
    waruqi demilestoned #985
  • Oct 29 02:15
    waruqi closed #994
  • Oct 29 02:15
    waruqi labeled #994
  • Oct 26 14:07
    waruqi edited #1006
  • Oct 26 14:07
    waruqi milestoned #1006
  • Oct 26 14:06
    waruqi labeled #1006
  • Oct 26 13:39
    waruqi closed #53
  • Oct 26 10:35
    modasi opened #1006
  • Oct 26 06:29
    zwxf closed #1004
  • Oct 26 05:31
    nick908 opened #1005
  • Oct 25 12:49
    xq114 edited #53
  • Oct 25 12:11
    xq114 opened #53
  • Oct 24 05:12
    waruqi closed #1001
  • Oct 23 13:08
    waruqi milestoned #1004
  • Oct 23 13:08
    waruqi labeled #1004
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.
jacky
@jackywu

I wanna use "pprint" package, and add it in my xmake.lua as :

package("pprint")
    set_urls("https://github.com/p-ranav/pprint.git")
    -- add_versions("0.9.1", "def4a2f557780ecf26ce5080e2b9637f423ba228")
    add_deps("cmake")
**    add_includedirs("include/pprint") **
    on_install(function(package)
        import("package.tools.cmake").install(package)
    end)
package_end()

but I found the header file pprint.hpp was not in include dir, but in nested include/pprint dir. I wanna add include/pprint as includedirs, so I add a command add_includedirs("include/pprint") *, but it did not works.

@waruqi do you have a suggestion?
jacky
@jackywu
PeterCDMcLean
@PeterCDMcLean
Looking into options for Verilog/SystemVerilog FPGA and simulation buildsystem.
I'm noticing that there does not appear to be a (native) way to extend the toolset types:
https://xmake.io/#/manual/project_target?id=targetset_toolset
Am I missing something?
ruki
@waruqi
@PeterCDMcLean You can define custom toolchain to support them in your xmake.lua, see https://xmake.io/#/manual/custom_toolchain
Or you can submit a feature request to issues and add their toolchain sdk urls to your issue. I will look at it and consider to support them in the future.
PeterCDMcLean
@PeterCDMcLean

I'm looking for something like:
set_toolset("v", "modelsim")
set_toolset("xdc", "vivado")

Verilog file and xdc files are HDL / RTL specific. that's what I mean when I'm wondering if there is a way to extend the toolset types to covert new types of files in a custom toolchain

beyond the traditional software types
ruki
@waruqi
@PeterCDMcLean You need add custom rule to support them and build these files. https://xmake.io/#/manual/custom_rule and https://github.com/xmake-io/xmake/blob/master/xmake/rules/lex_yacc/yacc/xmake.lua
we can also add find_modelsim.lua to detect these tools in https://github.com/xmake-io/xmake/tree/master/xmake/modules/detect/tools and use lib.detect.find_tool to get them.
RUSshy
@RUSshy
hi, is it possible to generate visual studio project? i checked the wiki, but i can't find this information
ruki
@waruqi
you can run xmake project -k vsxmake or xmake project -k vs
RUSshy
@RUSshy
yes i found it thanks @waruqi
simshine-sdk
@simshine-sdk
我再windows平台下MinGW使用xmake,无法正常识别环境.使用的命令是xmake f -p mingw --sdk=C:\MinGW.请问这样使用有问题吗?
ruki
@waruqi
嗯,如果有问题,你直接提到github issues好了,然后追加 -vD 参数提供了 详细的错误信息
harrypotterjackson
@wangzhankun
我在Linux平台下安装了两个版本的opencv,请问怎么使用指定版本的opencv呀?
ruki
@waruqi
I created a new xmake room, welcome to https://gitter.im/xmake-io/xmake
simshine-sdk
@simshine-sdk
请问一下,想用tbox的指定通过某个网卡,用http client 相关API发送数据,目前可以通过什么接口实现吗?
ruki
@waruqi
目前没有现成的,要么自己获取下原始socket fd,调socket api绑定下对应网卡
tapika
@tapika
Hi ! Does xmake has anykind of support from Visual studio ? To my best understanding visual studio could be supported out of box, if xmake would offer similar kind of api as cmake is offering to visual studio.
ruki
@waruqi

Hi ! Does xmake has anykind of support from Visual studio ? To my best understanding visual studio could be supported out of box, if xmake would offer similar kind of api as cmake is offering to visual studio.

xmake project -k vsxmake @see https://xmake.io/#/plugin/builtin_plugins?id=generate-visualstudio-project