janet-lang / janetui

Bindings to libui for janet
29 stars 10 forks source link

Use cmake properly #7

Open iacore opened 1 year ago

iacore commented 1 year ago

not sure how to make jpm install this dynamic library

kamisori commented 2 months ago

was that all you had to do to make it jpm clean && jpm build && jpm install without a hitch? i only get it to jpm clean && jpm build && jpm build && jpm install with that hitch in the middle, but then the module is installed and i can import it whereever

just havent gotten it to build a standalone executable yet, at which point jpm build in a depending project complains about not finding build/libui/out/ui.a

iacore commented 2 months ago

was that all you had to do to make it jpm clean && jpm build && jpm install without a hitch?

try running export CMAKE_GENERATOR=Ninja before that.

kamisori commented 2 months ago

nope, still had ld complain when building the native module about not finding the to-be-cmade ui.a :shrug:

ok i removed the declare-native thing in my project.janet and now it jpm clean && jpm builds successfully but doesnt install anything, so a complete, clean cycle of jpm clean && jpm build && jpm install && janet -l janetui is still not possible

sogaiu commented 2 months ago

Possibly related is this.

I tried to apply the info linked to from there but didn't get it working, unfortunately.