# Export UI to Linux Frame Buffer with LVGLv9

**URL:** <http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403>\
**Category:** How to\
**Created:** [January 19, 2024, 10:57am UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403 "2024-01-19T10:57:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chickey](http://forum.squareline.io/letter_avatar_proxy/v4/letter/c/b9e5f3/32.png) [@chickey](http://forum.squareline.io/u/chickey)\
**Post date:** [January 19, 2024, 10:57am UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/1 "2024-01-19T10:57:04Z")

</div>

### What do you want to achieve?

I want to export a UI I have built in SLS to an Ubuntu VM. The VM has LVGL 9 running.

### What have you tried so far?

I have got the demo for LVGL 9 working.  
I then designed and exported the UI, following instructions in the docs (put in folder beside lvgl, include ui.h, call lv\_init, call ui\_init etc)  
However when I build the project I get undefined reference error to ui\_init().  
If I then include ui.c this error no longer shows but multiple other undefined references appear.  
Is there some change required to the CMakeLists.txt file for the project

### Screenshot or video

 ![Screenshot 2024-01-19 105216](http://forum.squareline.io/uploads/default/original/2X/b/b32f773b7bac32da40c08480ff717f84d8b346ac.png)

### Others

- **SquareLine Studio version:** 1.3.4
- **Operating system:** SLS on Windows. Running exported code on Ubuntu.
- **Target hardware:** Linux Frame Buffer

---

<div class="post-metadata">

**Author:** ![Hermit](http://forum.squareline.io/user_avatar/forum.squareline.io/hermit/32/971_2.png) [@Hermit](http://forum.squareline.io/u/Hermit)\
**Post date:** [January 19, 2024, 8:04pm UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/2 "2024-01-19T20:04:28Z")

</div>

SquareLine Studio v1 doesn’t support LVGL9 compatible export now. LVGL9 has went through a major API change with many new features, and is not totally backwards-compatible with LVGL8.

---

<div class="post-metadata">

**Author:** ![chickey](http://forum.squareline.io/letter_avatar_proxy/v4/letter/c/b9e5f3/32.png) [@chickey](http://forum.squareline.io/u/chickey)\
**Post date:** [January 22, 2024, 9:06am UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/3 "2024-01-22T09:06:20Z")

</div>

Ah, I was afraid of as much, thanks for getting back to me. I don’t suppose there’s a conversion script available to update 8.3.6 code to 9?

---

<div class="post-metadata">

**Author:** ![Hermit](http://forum.squareline.io/user_avatar/forum.squareline.io/hermit/32/971_2.png) [@Hermit](http://forum.squareline.io/u/Hermit)\
**Post date:** [January 22, 2024, 9:45am UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/4 "2024-01-22T09:45:32Z")

</div>

There’s a ChangeLog describing the API-changes: [Changelog — LVGL documentation](https://docs.lvgl.io/master/CHANGELOG.html)  
We’re not aware of any v8-\>v9 converters, but SquareLine Studio v2 will be able to export LVGL-v9 code, until that I guess you can ask if a converter exists or is planned, in LVGL forum or GitHub-discussion, e.g.: [Changes in master (v9 development) · Issue #4011 · lvgl/lvgl · GitHub](https://github.com/lvgl/lvgl/issues/4011) , [v9 discussion and changes · Issue #3298 · lvgl/lvgl · GitHub](https://github.com/lvgl/lvgl/issues/3298)

---

<div class="post-metadata">

**Author:** ![chickey](http://forum.squareline.io/letter_avatar_proxy/v4/letter/c/b9e5f3/32.png) [@chickey](http://forum.squareline.io/u/chickey)\
**Post date:** [January 22, 2024, 10:37am UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/5 "2024-01-22T10:37:31Z")

</div>

Thanks, when is SLS v2 due?

---

<div class="post-metadata">

**Author:** ![Hermit](http://forum.squareline.io/user_avatar/forum.squareline.io/hermit/32/971_2.png) [@Hermit](http://forum.squareline.io/u/Hermit)\
**Post date:** [January 22, 2024, 12:50pm UTC](http://forum.squareline.io/t/export-ui-to-linux-frame-buffer-with-lvglv9/2403/6 "2024-01-22T12:50:11Z")

</div>

This .h file might help in the ‘conversion’ between LVGL v8 and v9 codes:

> <https://github.com/lvgl/lvgl/blob/master/src/lv_api_map.h>
