# Run c++ app with embedded julia on a machine without julia installation

**URL:** <https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274>\
**Category:** General Usage\
**Tags:** question, embedding, installation, app\
**Created:** [March 23, 2025, 11:10am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274 "2025-03-23T11:10:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitrandirsergey](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitrandirsergey/32/213911_2.png) [@mitrandirsergey](https://discourse.julialang.org/u/mitrandirsergey)\
**Post date:** [March 23, 2025, 11:10am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274/1 "2025-03-23T11:10:13Z")

</div>

Hi.  
Is it possible to provide julia dll along with my exe file, so it could be run on a PC without julia installation?

I found out an example to dynamically load julia (which is quite old)

> **[GitHub - GunnarFarneback/DynamicallyLoadedEmbedding.jl: Embed Julia with dynamical loading of libjulia at...](https://github.com/GunnarFarneback/DynamicallyLoadedEmbedding.jl)**
>
> Embed Julia with dynamical loading of libjulia at runtime.

But how to provide julia modules?  
Is it possible to tell julia location of modules it should be able to use?

I cant understand artifact system from its description.

(From CxxWrap module description i know its possible to specify location of modules trough yaml files in artifact, but how to do thing without julia installation)

Thanks for any advisde!

---

<div class="post-metadata">

**Author:** ![xgdgsc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xgdgsc/32/608_2.png) [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Post date:** [March 23, 2025, 11:14am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274/2 "2025-03-23T11:14:31Z")

</div>

Follow [Libraries · PackageCompiler](https://julialang.github.io/PackageCompiler.jl/dev/libs.html) and use the C interface should be enough.

---

<div class="post-metadata">

**Author:** ![mitrandirsergey](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitrandirsergey/32/213911_2.png) [@mitrandirsergey](https://discourse.julialang.org/u/mitrandirsergey)\
**Post date:** [March 23, 2025, 11:24am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274/3 "2025-03-23T11:24:29Z")

</div>

Thanks

As i understand, PackageCompiler build dll with all its dependencies which couldnt be changed.

Im trying to use julia in a way, all others could change julia function and my exe will get compile them with julia and get cfunction to use.

Its worked with julia installed on pc, but i wonder the way if not.

---

<div class="post-metadata">

**Author:** ![mitrandirsergey](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mitrandirsergey/32/213911_2.png) [@mitrandirsergey](https://discourse.julialang.org/u/mitrandirsergey)\
**Post date:** [March 23, 2025, 11:40am UTC](https://discourse.julialang.org/t/run-c-app-with-embedded-julia-on-a-machine-without-julia-installation/127274/4 "2025-03-23T11:40:08Z")

</div>

Im asking AI how to provide julia with my app.

And it say everything is simple, copy bin, lib, include, packages into my app folder.  
Set configs to cmake and dynamically load library (with get pointres to functions from dll as always, and as it done in [DynamicallyLoadedEmbedding.jl:](https://github.com/GunnarFarneback/DynamicallyLoadedEmbedding.jl))

Sounds good (But i dont belive its so simple)
