# Ui\_event.c file

**URL:** <http://forum.squareline.io/t/ui-event-c-file/2320>\
**Category:** Bugs\
**Created:** [January 5, 2024, 2:28pm UTC](http://forum.squareline.io/t/ui-event-c-file/2320 "2024-01-05T14:28:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreini](http://forum.squareline.io/letter_avatar_proxy/v4/letter/a/65b543/32.png) [@andreini](http://forum.squareline.io/u/andreini)\
**Post date:** [January 5, 2024, 2:28pm UTC](http://forum.squareline.io/t/ui-event-c-file/2320/1 "2024-01-05T14:28:21Z")

</div>

### What do you want to achieve?

when i export file with squareline ui\_event.c file doesn’t created but ui\_event.c file write as source file in cmakelist.txt when i export files. it couse a compile error.

### What have you tried so far?

i tried to change project settings but didn’t work.

### Screenshot or video

### Others

- **SquareLine Studio version:**  
1.3.4
- **Operating system:**  
windows
- **Target hardware:**

---

<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 8, 2024, 7:28am UTC](http://forum.squareline.io/t/ui-event-c-file/2320/2 "2024-01-08T07:28:40Z")

</div>

Seems to be a duplicate topic: [Missing uievent.c](https://forum.squareline.io/t/missing-uievent-c/2255)  
ui\_events.c is not generated when not needed, maybe in your case it would be needed, that’s why the compilation error. A bit more details would probably tell us the exact cause.  
It didn’t cause a compilation error for us when it’s in CMakeLists.txt but not present as a file, but anyway, we’ll check this out for a resolution. Thanks for the feedback.

---

<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:** [March 19, 2024, 11:26am UTC](http://forum.squareline.io/t/ui-event-c-file/2320/3 "2024-03-19T11:26:27Z")

</div>

(An update on this: while plain CMake seems not to complain about this, we found that Emscripten CMake doesn’t like if ui\_events.c is in the CMakeLists.txt file when no actual ui\_events.c file exists. So its inclusion in CMakeLists.txt will be made conditional as well. It would be good to know which other build-toolchain gave an error for the OP. )
