Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 14 10:04
    SirLynix closed #1437
  • Jun 11 15:51
    SirLynix reopened #1437
  • Jun 11 14:58
    SirLynix closed #1437
  • Jun 11 10:14
    waruqi edited #1447
  • Jun 10 03:36
    waruqi labeled #1445
  • Jun 10 03:36
    waruqi milestoned #1445
  • Jun 10 03:36
    waruqi closed #1445
  • Jun 10 01:36
    waruqi milestoned #1447
  • Jun 10 01:36
    waruqi labeled #1447
  • Jun 09 15:37
    xq114 closed #1378
  • Jun 09 12:35
    waruqi milestoned #1418
  • Jun 09 12:34
    waruqi milestoned #1437
  • Jun 09 12:34
    waruqi labeled #1437
  • Jun 09 12:34
    waruqi labeled #1437
  • Jun 09 12:32
    waruqi labeled #1443
  • Jun 09 12:32
    waruqi closed #1443
  • Jun 09 12:28
    waruqi closed #1448
  • Jun 09 10:45
    waruqi closed #1441
  • Jun 09 04:15
    waruqi milestoned #1453
  • Jun 09 04:15
    waruqi labeled #1453
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

paul-reilly
@paul-reilly
Can anyone confirm if using the xmake-repo package "fmt" works under mingw? It doesn't work here using mingw from MSYS2 in a Windows cmd prompt or a MSYS2 mingw64 shell.
ruki
@waruqi
@paul-reilly you can submit a new issue on github and let me see your verbose errors.
paul-reilly
@paul-reilly
Will do, thanks!
ruki
@waruqi
Hi, all. I created a discord channel about xmake, welcome to join: https://discord.gg/XXRp26A4Gr
BaseProgrammer
@BaseProgrammer
hello
ruki
@waruqi
hi
SugarRayLua
@SugarRayLua
Hello. I’m new to the chat room and just started using and like tboox’s ltui to help me make ltuis in lua projects that I’m making using Alpine Linux on x86 emulator on my iPad. I don’t however, understand what exactly all the arguments in the rect{} table/object? Do. For example, in the desktop.Lua example on ltui’s website, the code contains this line: -- add title label
self:desktop():insert(label:new("title", rect {0, 0, 12, 1}, "hello ltui!"):textattr_set("white"), {centerx = true}). I presumed that the first 2 arguments are x,y top left coordinates relative to the object I’m display (e.g. in this case, the upper left hand border of the desktop) and that the 3rd and 4th arguments are the width and height boundaries of the object I am making (e.g. in this case, the width and height of the textbox in character spaces that I’m going to write the “hello ltui!” message). However, at least he 1st argument doesn’t seem to work like I expect—0 seems to indicate an x position in the middle of the desktop, and when I put in another # (e.g. 5) ltui just display the message 5 spaces to the right of the middle of the desktop and not 5 spaces to the right of the left-hand border of the screen that I would expect). I see that that code line has a “centerX” parameter but the message still doesn’t line up to the left hand side of the screen when I remove the centerX code. I appreciate any clarification on how rect{} is supposed to work that you can provide. Thanks!
SugarRayLua
@SugarRayLua
@waruqi , thanks, that worked! So now that it is working, it looks like actually rect{} arguments are actually something different than I thought. Is this then correct instead: rect{x1, y1, x2, y2} x1,y1 = top left coordinates of rectangle, x2,y2 = bottom right coordinates of rectangle relative to parent window working in?
ruki
@waruqi
@SugarRayLua yeah, rect {x1, y1, x2, y2} or you can use rect:new(x, y, w, h)
SugarRayLua
@SugarRayLua
I see, thanks! I’ll try looking in the Lua source files first in the future to figure things out if I have additional questions. Have a good week. :-)