Skip to content
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

.platformio with espidf framework compability #168

Closed
DrZlo13 opened this issue Jul 20, 2020 · 9 comments · Fixed by #194
Closed

.platformio with espidf framework compability #168

DrZlo13 opened this issue Jul 20, 2020 · 9 comments · Fixed by #194

Comments

@DrZlo13
Copy link

DrZlo13 commented Jul 20, 2020

Hello, i noticed that commit says this project have compability with .platformio build system, but i dont have any luck to compile that.

For now i have bunch of "undefined reference to `lv_something'" and i don't know how to fix any of those things.

@C47D
Copy link
Collaborator

C47D commented Jul 26, 2020

Hi @DrZlo13, I don't personally use Platformio but hopefully @davidjade can help us out. On the meantime, could you attach a text file with the output you are getting to check what functions are not being defined?

@DrZlo13
Copy link
Author

DrZlo13 commented Jul 27, 2020

Linking .pio\build\lolin32\firmware.elf
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x4): undefined reference to 'lv_disp_get_default'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x8): undefined reference to 'lv_disp_get_scr_act'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0xc): undefined reference to 'lv_btn_create'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x10): undefined reference to 'lv_obj_set_pos'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x14): undefined reference to 'lv_obj_set_size'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x18): undefined reference to 'lv_label_create'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o:(.literal._Z6lvtestPv+0x1c): undefined reference to 'lv_label_set_text'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o: in function 'lv_scr_act':
E:\work\projects\esp32-platformio/src\../components/lv_port_esp32/components/lvgl/lvgl/src/lv_core/lv_disp.h:99: undefined reference to 'lv_disp_get_default'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:\work\projects\esp32-platformio/src\../components/lv_port_esp32/components/lvgl/lvgl/src/lv_core/lv_disp.h:99: undefined reference to 'lv_disp_get_scr_act'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\lolin32\esp-idf\src\main.cpp.o: in function 'lvtest(void*)':
E:\work\projects\esp32-platformio/src/main.cpp:13: undefined reference to 'lv_btn_create'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:\work\projects\esp32-platformio/src/main.cpp:14: undefined reference to 'lv_obj_set_pos'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:\work\projects\esp32-platformio/src/main.cpp:15: undefined reference to 'lv_obj_set_size'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:\work\projects\esp32-platformio/src/main.cpp:19: undefined reference to 'lv_label_create'
c:/users/dr_zlo/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: E:\work\projects\esp32-platformio/src/main.cpp:20: undefined reference to 'lv_label_set_text'

@kisvegabor
Copy link
Member

Hi,

I've just tried it with our lv_platformio project and I added these lines to plaformio.ini:

[env:esp32]
platform = espressif32
framework = espidf
board = esp-wrover-kit

Changed the efault environment to default_envs = esp32

And modified main.c like this:

#include "lvgl.h"
// #include "driver.h"

#include "demo.h"

int app_main(void)
{
	lv_init();

	// hw_init();

	demo_create();

	// hw_loop();
  return 0;
}

And it compiled but I can't test it on hardware now. 🙁

@C47D
Copy link
Collaborator

C47D commented Aug 7, 2020

Any feedback @DrZlo13?

@stale
Copy link

stale bot commented Aug 29, 2020

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale This will not be worked on label Aug 29, 2020
@C47D
Copy link
Collaborator

C47D commented Aug 29, 2020

Will add the steps @kisvegabor took to make it work with platformio into the README. Then I will close this issue as there wasn't any feedback.

@stale stale bot removed the stale This will not be worked on label Aug 29, 2020
@kisvegabor
Copy link
Member

To the README of this repo or lv_platformio?

@C47D
Copy link
Collaborator

C47D commented Sep 1, 2020

I was thinking on this repo README, what do you think?

@kisvegabor
Copy link
Member

I'm ok with adding this to the README here.
We can say to use lv_platformio repos and modify its platforimio.ini file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants