-
Notifications
You must be signed in to change notification settings - Fork 44
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
Break out Lib from UI as seperate Package #31
Comments
Great to hear you using the project! I understand your problems. I think it is a good idea to split it. |
I did this: https://github.com/greenfox1505/rboy/tree/bin-as-package I tried a thing with features as well in another branch. |
You can test my version with the following dependency specification: [dependencies]
librboy = { git = "https://github.com/mvdnes/rboy", branch = "librboy" } |
I did:
Which help minimize my changes this pass. Seems to work. |
This has been working, but now I'm struggling getting it to compile for Android. Looks like blip_buff's c lib binding is breaking it now. I'm guessing this one will be harder to remove...
|
Okay, I got it compiling for Android... by porting BlipBuf to pure Rust. I noticed your branch that you started like 10 years ago and just finished that. This is RBoy->GodotRust GDExtention->Godot->Android. |
Wow, great to see my project used in such a way! In the coming week I will have a bit more time to look into the best way to address this issue and that of blip_buf-rs. |
That issue was BlipBuf needing a C compiler. Now that it's pure-Rust, it's not an issue any more. Keeping librboy as a separate thing is a solid fix. I can close this. If BlipBuf pure-rust implementation becomes Master/Main branch, that would solve my issue. |
Does the branch gui-feature also work for your use-case? I think this may be a better approach to appeal both to people that want to run the emulator, as those who want to use this as a library. |
I have merged the gui-feature branch into the main branch. |
I use RBoy as a library. But when compiling, I have to compile the entire prerequisite chain. This adds build time, but isn't the end of the world. I have to build
winit
andglium
, which I don't believe the library needs. When compiling on Linux, I have to make sure I installlibasound2-dev
before attempting to compile, or I'll hit an an error Alsa-Sys. This is all manageable, but annoying.Today, I tried to compile on aarch64 on x86_64. It failed because AlsaSys doesn't support cross compiling. I can compile just fine from aarch64 to aarch64 (on a Rock 5b+) , but not from my x86 build server.
The
lib.rs
portion of the project could still be integrated into the same repo, as long as I can reference it properly in myCargo.toml
file.The text was updated successfully, but these errors were encountered: