-
Notifications
You must be signed in to change notification settings - Fork 57
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
Suggestion: use "config.mk" model for easily customizing build flags #5
Comments
Yeah I wouldn't be against it. You can definitely focus on improving the config and build steps of the C implementation. There also might be some value in making it download and extract the Poky Toolchain before a build, or at least check if |
It would be cleaner to put this in a shell script that the user explicitly calls rather than try to have Make do that.
The |
Its seems, that the "nightly" channel is needed for compiling the rust example ... otherwise "mock_derive" won't compile |
@PatrickGretzki Thanks for pointing that out. All the Let me know if you have further comments/suggestions, especially since |
I just started using rust, so I will have many questions in the next days :) |
Hey. its me again- The cross-compiler is running and I can compile simple programs for the remarkable. But building your example/lib is still not working. The package "lua52-sys" throws a panic error at compiling Any ideas guys ? |
@PatrickGretzki Do you have the toolchain installed? What platform are you building on? Linux or OSX? I can help you through all the build issues. Let me know. |
You can also see my latest commit e48f949 which should take care of the Back to your previous question; if you installed the toolchain via your OS's package manager it is likely already in your
In this case you would want to do Of course you will need to do this following step for the poky gcc, I'd recommend giving it the full path in your case.
|
Okay - Today I started from scratch to ensure, that I can reproduce the error and have a stable environment. I did not use the "poky" tool chain but the default arm-gcc. - Install minimal ubuntu linux image in VM - Install Rust - Setup rust for nightly channel - Install cross-compiler toolchain - Install cross compiled standard crates - Configure cargo for cross compilation - OPTIONAL - Test cross-compiler with empty project - Clone repository and compile So ... the cross-compiler is working for a simple "hello world". For your project I had some minor drawbacks. The nightly build is a must. Also you need the package "gcc" for building some crates (e.g. "regex"). Now everything is working fine - Thanks ! |
Awesome. Glad to hear that @PatrickGretzki. Thanks for the detailed description of the steps you had to follow. I will include them in the wiki later today once I have some free time. In the meantime, if you haven't looked at all the pages on the wiki, I definitely recommend it. It has a lot of fresh information. https://github.com/canselcik/libremarkable/wiki Also since you are one of the first people I know that ran the demo example on his device, here are some interesting features you might want to try: Pressing the The Rust logo at the upper right corner has an I would also recommend you to do a |
A configuration file for Make would be a nice thing to have. I thought I would run it by you before making a PR.
For me, this would be necessary because my cross-compiler toolchains are in weird, non-standard locations.
The classic example of this is with dwm. I would probably implement something similar to my own projects Soundpipe and Sporth.
What do you think?
The text was updated successfully, but these errors were encountered: