undefined symbol: strcmp #21

Closed
opened 2020-06-13 14:18:07 +00:00 by sajattack · 5 comments
sajattack commented 2020-06-13 14:18:07 +00:00 (Migrated from github.com)

Hey, it's me again. Trying to experiment with this some more but ran into a linker error.

  = note: rust-lld: error: undefined symbol: strcmp
          >>> referenced by lv_img_cache.c:91 (/home/paul/.cargo/git/checkouts/lvgl-rs-27f20f23afade818/335261e/lvgl-sys/vendor/lvgl/src/lv_draw/lv_img_cache.c:91)
          >>>               lv_img_cache.o:(_lv_img_cache_open) in archive /home/paul/projects/rust/st7735-lcd-examples/target/thumbv7em-none-eabihf/debug/deps/liblvgl_sys-46c501e1cf67e4f2.rlib
          >>> referenced by lv_img_decoder.c:327 (/home/paul/.cargo/git/checkouts/lvgl-rs-27f20f23afade818/335261e/lvgl-sys/vendor/lvgl/src/lv_draw/lv_img_decoder.c:327)
          >>>               lv_img_decoder.o:(lv_img_decoder_built_in_open) in archive /home/paul/projects/rust/st7735-lcd-examples/target/thumbv7em-none-eabihf/debug/deps/liblvgl_sys-46c501e1cf67e4f2.rlib
Hey, it's me again. Trying to experiment with this some more but ran into a linker error. ``` = note: rust-lld: error: undefined symbol: strcmp >>> referenced by lv_img_cache.c:91 (/home/paul/.cargo/git/checkouts/lvgl-rs-27f20f23afade818/335261e/lvgl-sys/vendor/lvgl/src/lv_draw/lv_img_cache.c:91) >>> lv_img_cache.o:(_lv_img_cache_open) in archive /home/paul/projects/rust/st7735-lcd-examples/target/thumbv7em-none-eabihf/debug/deps/liblvgl_sys-46c501e1cf67e4f2.rlib >>> referenced by lv_img_decoder.c:327 (/home/paul/.cargo/git/checkouts/lvgl-rs-27f20f23afade818/335261e/lvgl-sys/vendor/lvgl/src/lv_draw/lv_img_decoder.c:327) >>> lv_img_decoder.o:(lv_img_decoder_built_in_open) in archive /home/paul/projects/rust/st7735-lcd-examples/target/thumbv7em-none-eabihf/debug/deps/liblvgl_sys-46c501e1cf67e4f2.rlib ```
rafaelcaricio commented 2020-06-13 14:28:15 +00:00 (Migrated from github.com)

Hey, nice to hear from you! I'm changing the code pretty heavily right now. And actually testing in a device apart from the simulator. If you want to test the latest, please use the version in this branch generate-code.

Hey, nice to hear from you! I'm changing the code pretty heavily right now. And actually testing in a device apart from the simulator. If you want to test the latest, please use the version in this branch `generate-code`.
rafaelcaricio commented 2020-06-13 14:29:06 +00:00 (Migrated from github.com)
This is the fix https://github.com/rafaelcaricio/lvgl-rs/pull/20/files#diff-94577d69799c72315f5d7adeb8a37595R70 for your issue.
sajattack commented 2020-06-13 14:30:52 +00:00 (Migrated from github.com)

Ok thanks.

Ok thanks.
sajattack commented 2020-06-13 14:35:13 +00:00 (Migrated from github.com)

The version of proc-macro2 you're using conflicts with the one in cortex-m-rt.

The version of proc-macro2 you're using conflicts with the one in cortex-m-rt.
rafaelcaricio commented 2020-06-13 14:51:08 +00:00 (Migrated from github.com)

That dependency is a leftover, can be removed. Please pull again the branch. Anyways, it is a work in progress.. I'm working on lvgl-rs right now. 🤓

I will actually change sometime soon how the binding code is generated in that branch.

That dependency is a leftover, can be removed. Please pull again the branch. Anyways, it is a work in progress.. I'm working on `lvgl-rs` right now. :nerd_face: I will actually change sometime soon how the binding code is generated in that branch.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rafaelcaricio/lvgl-rs#21
No description provided.