cross compiling #53
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rafaelcaricio/lvgl-rs#53
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to cross compile the example, and am having no luck.
Using
cross
:I assume there is some way to set DEP_LV_CONFIG_PATH to a value that works inside the container, but I've had no luck in figuring out the solution.
Using
--target
:The problem there seems to be that it's using
cc
andld
instead of the appropriate cross compiler and linker. I added a warning in lvgl-sys/build.rs. You can see that in the first invocation the compiler is set tocc
, while in the second invocation it is set toarm-linux-gnueabihf-gcc
which looks correct.Could you contextualize me here on what is
cross
?I was referring to https://github.com/cross-rs/cross, version 0.2.1.
Does this path exists inside the container:
/home/tnewsome/projects/fahrenheit/lvgl-rs/examples/include
? I don't think so (I doubt you are not mounting your system root path as root path of the container). I believe here you will need to add the path that works for the container in theDEP_LV_CONFIG_PATH
env var.Maybe try to see what are the paths inside the container and change the variable to point to that.
The path definitely does not exist. I was hoping somebody else had already cross-compiled this library so I wouldn't have to learn too many details about
cross
(or about using--target
) but it sounds like nobody has yet. I might spend some more time digging into this later.