Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:01
    xq114 commented #1087
  • 14:52
    waruqi commented #1087
  • 14:52
    waruqi commented #1087
  • 14:52
    waruqi commented #1087
  • 14:52
    waruqi commented #1087
  • 12:10
    waruqi commented #365
  • 12:09
    waruqi closed #365
  • 09:02
    xq114 synchronize #365
  • 07:19
    xq114 synchronize #365
  • 07:14
    xq114 synchronize #365
  • 07:06
    xq114 commented #1087
  • 04:20
    xq114 commented #1087
  • 04:01
    xq114 synchronize #365
  • 03:56
    waruqi commented #1087
  • 03:53
    xq114 commented #1087
  • 03:36
    waruqi closed #1328
  • 03:35
    waruqi milestoned #1339
  • 03:34
    waruqi labeled #1339
  • 03:34
    waruqi opened #1339
  • 03:27
    OuYangPaste commented #40
ruki
@waruqi
@RoyiAvital Yes, I mean, for clang 11, xmake already uses its abstraction.
aescov
@aescov
Hi i am trying to convert a make based cross arm project, and is struggling setting dynamic cflags. In the in "before_build(function (target)" i want to call "add_cflags" to add some calculated compile flags but this seems not be be allowed.
ruki
@waruqi
@aescov try target:add("cflags", "xxx") in on_load(function (target) end)
aescov
@aescov
@waruqi thank you, this seems to work. However my next issue is now to correctly escape qoutes in cflags. I want to add a string to cflag like this:
-DBUILD_DATE='"08/01/2021 09.29"' , but have not been able to figure out the right syntax to escape quotes. Ie. target:add("cflags", "-DBUILD_DATE='\"" .. build_date .. "\"'") does not seem to be accepted: checking for flags (-DBUILD_DATE='"11-01-2021 09:35:29"') ... no
ruki
@waruqi

@waruqi thank you, this seems to work. However my next issue is now to correctly escape qoutes in cflags. I want to add a string to cflag like this:
-DBUILD_DATE='"08/01/2021 09.29"' , but have not been able to figure out the right syntax to escape quotes. Ie. target:add("cflags", "-DBUILD_DATE='\"" .. build_date .. "\"'") does not seem to be accepted: checking for flags (-DBUILD_DATE='"11-01-2021 09:35:29"') ... no

I am processing this issue recently. see xmake-io/xmake#1084 and xmake-io/xmake#1188

Please wait for a while. I will solve it in these days.
aescov
@aescov
@waruqi perfect, and thanks for the great work. The tool looks very promising so far :-)
ruki
@waruqi

@waruqi perfect, and thanks for the great work. The tool looks very promising so far :-)

I have fixed it, you can update to argv branch and try it again.

ruki
@waruqi
I have merged into dev branch
aescov
@aescov
@waruqi Im am currently running from the windows binary v2.3.9 .. Is there a description/guide somewhere how to run or install from local git repo.
ruki
@waruqi
@aescov xmake update dev
or download install package from releases/github action ci
aescov
@aescov
@waruqi It works and my project is now building successfully. However i have an dependency issue with specific group of files that are being build on every call to xmake even though there are no changes in them. Anyway to debug/log dependencies
ruki
@waruqi

@waruqi It works and my project is now building successfully. However i have an dependency issue with specific group of files that are being build on every call to xmake even though there are no changes in them. Anyway to debug/log dependencies

Please open an issue on github and provide a reproducible demo example

aescov
@aescov
@waruqi I will.
ruki
@waruqi
ok, I will look at it.
ruki
@waruqi

@waruqi https://github.com/xmake-io/xmake/issues/1196#issue-784273848

I have supported this toolchain, you can try it again.

ruki
@waruqi
we can use xmake + zig cc and zig c++ to compile c/c++ projects, and them also support cross-compilation. https://github.com/xmake-io/xmake/issues/955#issuecomment-768290749
ruki
@waruqi
Welcome to join our community on discord: https://discord.gg/xmake
pyramid3d
@pyramid3d
interestingly there is another xmake (http://apollo.backplane.com/xmake/index.shtml) though it does not seem to be related. Thought it might be interesting.
1 reply
ruki
@waruqi
Yes, they are not related.
blackmoring
@blackmoring

error: /usr/local/include/fast_io_core.h:5:9: fatal error: version: without

include<version>

     ^~~~~~~~~

compilation terminated.

#include<version>
how to solve it?
ruki
@waruqi
.....
oh, maybe missing correct include dirs
add_includedirs
pyramid3d
@pyramid3d
I have a local shared lib libprocu.so and am lining it in the target
add_linkdirs("lib")
target("bgfxminimal") -- not able to compile
    set_kind("binary")
    add_files("helloworld.cpp")
    add_includedirs("lib/inc")
    add_links("procu")
It compiles but xmake run complains with "shared library not found". I know I can run with LD_LIBRARY_PATH=lib bin/helloworld. Is there a way I can tell xmake to compile the prog with static lib already linked into the executable?
ruki
@waruqi
add_ldflags("-l:stuff.a", {force = true})
pyramid3d
@pyramid3d
perfect :D
Zaya6
@Zaya6
hey does anyone know the right way to detect if a build is running on a raspberry pi? pi 3b
ruki
@waruqi

hey does anyone know the right way to detect if a build is running on a raspberry pi? pi 3b

uname -a? cat /etc/os-release?

cat /etc/rpi-issue?
ruki
@waruqi
hi all, If you are using xmake, please click to edit https://github.com/xmake-io/xmake-docs/blob/master/about/who_is_using_xmake.md to submit information into list to let more users know how many users are using xmake. Thanks!
Julio C. Galindo
@stickM4N
Hi, I need help. I'm compiling a C resource file in Windows. It need to be converted to a .res using MSVC 's rc, then to a .obj using MSVC 's cvtres so it an be compiled, is there a way for xmake to do this or I have to find compiler's folder and call these operations one by one?
ruki
@waruqi

Hi, I need help. I'm compiling a C resource file in Windows. It need to be converted to a .res using MSVC 's rc, then to a .obj using MSVC 's cvtres so it an be compiled, is there a way for xmake to do this or I have to find compiler's folder and call these operations one by one?

add_files("*.rc")

Julio C. Galindo
@stickM4N
I tried that and didn't worked. Should I use it separately from add_files("*.h")? Cannot they be together?
ruki
@waruqi
only add_files("*.rc"), it works for me. xmake will run rc.exe to compile rc file and link it.
Julio C. Galindo
@stickM4N
Thanks a lot! It worked. I might have miss spelled the name of the file.
Julio C. Galindo
@stickM4N
Does JetBrains IDEs have an updated plugin? The one in the Store cannot be installed cuz does not support v2021.X. Should it work if only the version requirement changes?
ruki
@waruqi

Does JetBrains IDEs have an updated plugin? The one in the Store cannot be installed cuz does not support v2021.X. Should it work if only the version requirement changes?

Please use the xmake-vscode plugin. The latest idea is no longer compatible with this xmake-idea plugin, but I have no time to update and upgrade it recently, which requires a lot of work.

Julio C. Galindo
@stickM4N
Ok thanks. It can always be configured to run via command line...
Its a great project you have going on here... Simple, elegant and as powerful as it is useful.
Julio C. Galindo
@stickM4N
I loved it instantly. You probably have heard this a lot but its impressive.