Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cmake properly #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use cmake properly #7

wants to merge 1 commit into from

Conversation

iacore
Copy link

@iacore iacore commented Apr 5, 2023

not sure how to make jpm install this dynamic library

@kamisori
Copy link

kamisori commented May 4, 2024

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
Copy link
Author

iacore commented May 4, 2024

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
Copy link

kamisori commented May 5, 2024

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

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
Copy link

sogaiu commented May 6, 2024

Possibly related is this.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants