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

Support for Android and IOS #4

Open
alisomay opened this issue Apr 17, 2022 · 5 comments
Open

Support for Android and IOS #4

alisomay opened this issue Apr 17, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@alisomay
Copy link
Owner

Check if it runs in Android or IOS platforms.
Change build.rs accordingly to support those.

@alisomay alisomay added the enhancement New feature or request label Apr 17, 2022
@alisomay alisomay self-assigned this Apr 17, 2022
@anvlkv
Copy link

anvlkv commented Apr 5, 2024

I seem to be running into rust-lang/cmake-rs#171 when trying to build in xcode.

@alisomay
Copy link
Owner Author

Any developments on this, did it fix itself or should we look into it 🙂.

@anvlkv
Copy link

anvlkv commented Dec 1, 2024

Not on my end. I concluded it might be too much to ask right now, so I'm using libpd on iOS and talking to rust with uniffi.

@alisomay
Copy link
Owner Author

alisomay commented Dec 1, 2024

I've been maintaining this a little bit more recently, multi instance support etc.
I've tried it in IOS sim today, it worked fine.
I believe it should work on Android out of the box also since it is linux (libpd supports it) and cpal works fine through oboe.
I'll test it sometime and close this issue then.

I think it only makes sense to use this library if a developer is writing the whole project including the ui rendering in rust for mobile.

If it is an architecture where the UI is in java/swift and app logic is linked statically as a rust library with C interface then it might not make sense to use libpd-rs.

One can just link it and call C functions. C -> Rust -> C -> Java/Swift does not make sense for that case.

@alisomay
Copy link
Owner Author

alisomay commented Dec 1, 2024

Then I realized this is the libpd-sys repo 😆.
Yeah but still my comment is meaningful I think.

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

No branches or pull requests

2 participants