# Integrating Julia into a JUCE Plugin

**URL:** https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468
**Category:** New to Julia
**Created:** [December 4, 2024, 6:33pm UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468 "2024-12-04T18:33:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![seclorum](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/seclorum/32/213935_2.png) [@seclorum](https://discourse.julialang.org/u/seclorum)
#### Post date: [December 4, 2024, 6:33pm UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468/1 "2024-12-04T18:33:58Z")

</div>

Hi there,

I’m pretty new to Julia and decided to bite off a huge chunk of technical naivete and try to integrate a simple Julia module (a port of Tony Hardy-Bicks DFM1 Korg MS20 filter) into a JUCE Plugin project.

My repo is here in case its of interest - doesn’t build/work yet, but its a work in progress. All the ‘scaffolding’ is in place but I’m probably doing some stupid/wrong things - and I’d love to hear from anyone with tips on how to proceed, or do this better:

> **[GitHub - seclorum/dfmJulioos](https://github.com/seclorum/dfmJulioos)**
>
> Contribute to seclorum/dfmJulioos development by creating an account on GitHub.

I’m trying to make this all integrated/bundle-up with CMake, as that is a preferred method of doing things in the JUCE world, and I confess that I’m really not sure if my technique for how to build a Julia shared (.dylib) library is going to work out, so I thought I’d reach out for some tips from any Julia/.dylib/JUCE/CMake guru’s who might find this interesting …

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [December 4, 2024, 7:58pm UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468/2 "2024-12-04T19:58:00Z")

</div>

That code looks simple and type stable enough that you could try to use the bleeding edge `juliac` on that with the new `--trim` option

---

<div class="post-metadata">

### Author: ![seclorum](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/seclorum/32/213935_2.png) [@seclorum](https://discourse.julialang.org/u/seclorum)
#### Post date: [December 6, 2024, 6:22am UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468/3 "2024-12-06T06:22:06Z")

</div>

Hey- thanks for the advice. I’ll spend some time looking into juliac and see how I can use it in my project. I’m a newbie to Julia, so this is some helpful insight.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [December 6, 2024, 8:03am UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468/4 "2024-12-06T08:03:07Z")

</div>

For a complete newbie, compiling Julia to static binaries is already one of the more complex things to do, but if you get stuck people will be happy to help. We’re all trying out the upcoming juliac capabilities currently and there are still many rough edges

---

<div class="post-metadata">

### Author: ![minetest2048](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minetest2048/32/45961_2.png) [@minetest2048](https://discourse.julialang.org/u/minetest2048)
#### Post date: [December 6, 2024, 9:24am UTC](https://discourse.julialang.org/t/integrating-julia-into-a-juce-plugin/123468/5 "2024-12-06T09:24:28Z")

</div>

I tried to use StaticCompiler.jl to create a static library that I can then embed into GNU Radio, but the problem is it doesn’t emit any debug symbols that `gdb` can use. When you julia function eventually segfault, you won’t see friendly julia code on your debugger, only a bunch of assembly code.

Does `juliac` emit debug symbols?
