# GLSL and XML

**URL:** <https://forum.logik.tv/t/glsl-and-xml/8992>\
**Category:** Matchbox\
**Created:** [August 22, 2023, 11:43pm UTC](https://forum.logik.tv/t/glsl-and-xml/8992 "2023-08-22T23:43:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihran](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/mihran/32/14686_2.png) [@Mihran](https://forum.logik.tv/u/Mihran)\
**Post date:** [August 22, 2023, 11:43pm UTC](https://forum.logik.tv/t/glsl-and-xml/8992/1 "2023-08-22T23:43:29Z")

</div>

Hello guys,  
My shader works in flame without generated XML  
But when I wont to compile and create XML it warns ERROR: One or more attached shaders not successfully compiled.

---

<div class="post-metadata">

**Author:** ![allklier](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/allklier/32/4309_2.png) [@allklier](https://forum.logik.tv/u/allklier)\
**Post date:** [August 23, 2023, 12:00am UTC](https://forum.logik.tv/t/glsl-and-xml/8992/2 "2023-08-23T00:00:14Z")

</div>

The XML exists primarily for the UI, and for defining your inputs.

Are you on a Mac or on Linux? One ongoing problem is that the shader\_builder on Mac does not display error messages. It just says ‘didn’t compile’ and then you have to find the error by reading the code and verifying everything yourself. Very tedious. If you can, write your shader on Linux, but test it on a Mac afterwards. Some things you can do on Linux don’t work on the Mac, as I found out the hard way.

---

<div class="post-metadata">

**Author:** ![Mihran](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/mihran/32/14686_2.png) [@Mihran](https://forum.logik.tv/u/Mihran)\
**Post date:** [August 23, 2023, 12:18am UTC](https://forum.logik.tv/t/glsl-and-xml/8992/3 "2023-08-23T00:18:35Z")

</div>

Thanks allklier,  
I wi’ll try it on linux.

---

<div class="post-metadata">

**Author:** ![ManChicken](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/manchicken/32/233_2.png) [@ManChicken](https://forum.logik.tv/u/ManChicken)\
**Post date:** [August 24, 2023, 7:40pm UTC](https://forum.logik.tv/t/glsl-and-xml/8992/4 "2023-08-24T19:40:33Z")

</div>

Running shader\_builder with `-x` should generate a generic .xml based on what uniforms it finds in the shader, and you can modify it from there as a place to start if you don’t want to write one from scratch. [The API docs](https://help.autodesk.com/view/FLAME/2024/ENU/?guid=Flame_API_Shader_Builder_About_shader_builder_XML_html) are helpful here also.
