Compiling Natron yourself using the docker SDK

Hi, i’d like to make the topic wider.
How do you edit Natron code ? What IDE do you use ? ( Eclipse, Visual Studio, QTCReator ?)

For a newbie like me it may be easier to copy someone else’s configuration rather than bothering the others with questions.

Alexandre.

IDE depends on what you prefer, I myself prefer to use QtCreator for most projects, especially for Qt based projects (like Natron). VSCode is also nice (not a IDE, but a good generic code editor)

I’m sorry to ask stupid questions. Never used docker before. It seems like it compiled sucessfully with the commands above. But I don’t know how to launch it.
Can someone help? Links helping to understand are also much appreciated.

you should find a Natron snapshot in the ‘builds‘ directory

1 Like

@devernay May I ask if you can hot-reload Natron using the docker-provided SDK? As currently this is only possible by building from sources manually (using qmake and make).

I don’t understand what “hot-reload” means.

Never mind, I found you can’t. What I had meant by “hot-reload” is like a live development server for web development, where you can open localhost and see that changes live as you made them in your text editor. I thought you could do the same for Natron, but it seems not.

Is it possible to build Natron using the Docker SDK from my repository along with openfx-misk from my repository?

Use GIT_URL=... and GIT_URL_IS_NATRON=1

That’s what I’m doing. The build is going fine, Natron is from my repository, but openfx-misk is still used with Natrongithub
NatronGitHub/openfx-misc.git

Yes, I have already made changes to this file, but when building GIT_URL_OPENFX_MISC, it takes from NatronGitHub/openfx-misc

Probably natrongithub/natron-sdk:latest uses the tools/jenkins/gitRepositories.sh file from the main repository. Therefore, changing the file in my repository does not produce results.

The build scripts are part of the docker image.

I linked to the gitRepositories.sh file to give you the names of the variables, like GIT_URL_OPENFX_MISC_GITHUB, do not edit the file.

Unsure if the _GITHUB vars will work from the cmd line, been a while since I used the Natron docker.

Thank you for your attention to my question !
I realized that in order to have this opportunity, you need to make changes to the main repository, or build without using Docker. For me, self-assembly is a difficult task. Well, okay, it’s not that important.