-
Notifications
You must be signed in to change notification settings - Fork 50
Creating a deb file from a Cross build #99
Comments
I haven't used If it puts compiled files in If it puts compiled files somewhere else, then it won't work. |
Yeah, I think I have a somewhat special setup, but I was hoping it would work anyway. I have a top level workspace containing [ project-libs, armv7bin, serverbin]. the reason being the libraries contain information sent between the different systems. so the project is:
I have to build armv7bin using cross from the workspace folder, since cross does not handle crates with relative paths, unfortunately. The resulting binary is put in workspace/target//release. But since cargo deb does not handle workspaces, i run cargo deb inside workspace/armv7bin like this:
but then I get the result:
|
Reading through my own question i was able to fix this. The problem was that cargo deb was using the .cargo/config file located under workspace, instead of under workspace/armv7bin adding the correct objcopy and strip commands to arm-none-eabi-objcopy and arm-none-eabi-strip actually generated a correct debian file that I could install on the target system! resulting workspace/.cargo/config:
|
I am using cross to build my package. How would I generate a deb using cargo deb from that.
The text was updated successfully, but these errors were encountered: