janetui icon indicating copy to clipboard operation
janetui copied to clipboard

Use cmake properly

Open iacore opened this issue 2 years ago • 4 comments

not sure how to make jpm install this dynamic library

iacore avatar Apr 05 '23 14:04 iacore

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

kamisori avatar May 04 '24 12:05 kamisori

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.

iacore avatar May 04 '24 19:05 iacore

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

kamisori avatar May 05 '24 19:05 kamisori

Possibly related is this.

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

sogaiu avatar May 06 '24 12:05 sogaiu