News for hackers. Stuff that matters.
Re:Show HN: A glib-like multi-platform C library by AlbertoGP on Tuesday May 03, 2022 @08:23AM (#31247408)
I’m trying to compile from source, and since that needs xmake I’m now trying to build it.

Following the instructions, after `make build` I get “No rule to make target 'lua/lapi.c', needed by 'lua/lapi.o'. Stop.”.

I’m now reading more, and it will probably be some easy thing.

My advice would be to have some compact list of steps to get it up and running from source without having to install binaries. I think that would make it easier to try out.

I’ll now continue trying to figure out what’s missing.

Re:Show HN: A glib-like multi-platform C library by danny0z on Tuesday May 03, 2022 @08:28AM (#31247445)
we need pull all submodules, you can see https://xmake.io/#/guide/installation?id=installation

    git submodule update --init
Or you can download full source code from releases. https://github.com/xmake-io/xmake/releases/download/v2.6.5/x...
Re:Show HN: A glib-like multi-platform C library by AlbertoGP on Tuesday May 03, 2022 @08:31AM (#31247465)
> Or you can download full source code from releases. https://github.com/xmake-io/xmake/releases/download/v2.6.5/x...

Yes, that’s what I did. :-)

    wget https://github.com/xmake-io/xmake/archive/refs/tags/v2.6.5.tar.gz 
    tar xf v2.6.5.tar.gz
    cd xmake-2.6.5/
    make build
Re:Show HN: A glib-like multi-platform C library by danny0z on Tuesday May 03, 2022 @08:35AM (#31247513)
no, it should be `v2.6.5/xmake-v2.6.5.tar.gz` instead of `tags/v2.6.5.tar.gz`

    https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
Re:Show HN: A glib-like multi-platform C library by AlbertoGP on Tuesday May 03, 2022 @08:42AM (#31247571)
Ah, I see. That might be Github’s problem, but the link I used is the one at the bottom of the list labeled “Source code”: https://github.com/xmake-io/xmake/releases/tag/v2.6.5

I see that one you mention in the middle of the list, with the name “xmake-v2.6.5.tar.gz”.

Please note that this is not a criticism, I’m just telling what can happen when someone tries to compile it.

Edit: trying this now:

    wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
    tar xf xmake-v2.6.5.tar.gz 
    cd xmake
    make build
I get “make: ** No rule to make target 'build'. Stop.”, because there is no `makefile` or `Makefile` in there.

Edit 2: I see, the issue is that it does not create a directory `xmake-v2.6.5`, but instead extracts its contents in the current directory, as a “tar bomb”. This works:

    mkdir xmake-v2.6.5
    cd xmake-v2.6.5
    wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
    tar xf xmake-v2.6.5.tar.gz 
    make build
Re:Show HN: A glib-like multi-platform C library by somethingor on Tuesday May 03, 2022 @11:31AM (#31249536)
Github’s auto-generated source tars don’t include submodules.

https://github.com/dear-github/dear-github/issues/214

Re:Show HN: A glib-like multi-platform C library by danny0z on Tuesday May 03, 2022 @08:50AM (#31247633)
try

    wget https://github.com/xmake-io/xmake/releases/download/v2.6.5/xmake-v2.6.5.tar.gz
    tar xf xmake-v2.6.5.tar.gz 
    make build
we need not run `cd xmake`