Undefined reference to `ui_init'

What do you want to achieve?

Create UI using SquareLine Studio, and run on BBB

What have you tried so far?

Created UI, and exported LVGL UI and added exported LVGL file in the LVGL root directory, and added “ui_init” in main.c file.
Getting an undefined reference to `ui_init’ error while building

Others

  • **SquareLine Studio version: V1_3_2
  • **Operating system: ubuntu 20.04
  • **Target hardware: Beaglebone Black

You didn’t specify the system and toolchain you’re building on.
You probably have problems with your build-system’s configuration files.
It would be easier to find the solution if you share the errors/results of your builder with us.

I had the same issue (but on the STM enviroment). May help to check your include paths to ensure your ui.c file is being included in your make file.

I resolved this by adding the ‘ui’ directory to the project include paths in CubeIDE properties. Screenshot attached.

1 Like