Is it possible to embedded cling in unreal engine

I always look forward to finding a script solution for Unreal Engine development. I think the best approach is to interpret CPP directly, which is why I found cling. However, there is a problem I am not sure about.
It’s well known that Unreal Engine Editor is mainly used on Windows computers and compiled by MSVC. Should I compile Unreal Engine using Clang if I want to export methods of Unreal Engine to a Cling interpreter? (Most Unreal Engine users use the released binary version, which is compiled by MSVC)

1 Like

Hello @Evianaive,

let me ping two persons.
For Windows, I think @bellenot is the best person to ask, and @vvassilev is the cling expert.

Hi @Evianaive,

Thanks for reaching out. It has been forever on my todo list to look into what’s needed to incorporate Cling in the Unreal Engine. I once looked into how to do it but I lacked knowledge about the engine itself.

Cling uses Clang and Clang is binary compatible with MSVC so there should be no problem in working with binary releases. Please reach out to me in private to see if we can move forward in some way…

Best, Vassil

Thank you for your recommendation.

I found two links about how to build Cling and they look different. Which one works on Windows?
Cling Build Instructions - ROOT
Cling

I have successfully built Cling from source code. But I get an error when I start it.
image

Try to build maybe following these instructions:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.