Slicer template based build environment using docker

Hi,

I am very new in Docker build environment setup can you please explain me how to setup and use docker baed environment.

I have gone through GitHub - Slicer/SlicerBuildEnvironment: A repository of scripts to set up a Slicer build environment. but not getting how to setup for slicer custom templet.

Is there any way to do cmake and make using docker.
or any other best way to build a code.

Could you tell a bit more about what you would like to achieve? Build Slicer? Build extensions and to avoid building Slicer? Run Slicer?

I am building custom slicer from templet provided by slicer cat

I have gone through https://github.com/Slicer/SlicerBuildEnvironment and able to build it but getting issue in how to execute the executable I am using "qt5-centos7 to use GCC 7 " based docker image.

I want to make run the executable in Windows 10.

But not getting how to achieve.

The SlicerBuildEnvironment docker image is for testing the build. We have separate dockerfiles for running Slicer, which typically install a precompiled release in the image and set up a vnc server so that you can see the GUI of the application running in the container. Probably you can combine the two kinds of images.

However, to better reproduce the end-user experience, it is probably better to build Slicer using the standard build instructions and test it by running directly, natively on a physical machine.

Thank you very much sir.

we are using standard build environment but facing issue while replicating build environment in multiple local system, however we are keeping same tool versions.
Any solution for this?

What operating systems are causing trouble? What problems do you have when replicating the build environment: build fails on some systems or the generated binaries are not compatible with each other?

We are using following configuration for the development.

Operating system: Windows 10
CMAKE: 3.18.2
NSIS: 3.08
QT: 5.15.0
Visual Studio community 2019

Error and warnings are attached


reference for the 1st error is e1

reference for the 2nd error is e2

reference for the 3rd,4th and 5th error is e345

Is this the latest version on Slicer master branch of GitHub - Slicer/Slicer: Multi-platform, free open source software for visualization and image computing.?
Have you built from scratch or you have previously built an earlier version of the source code in the same build tree?

No, First build is from custom SliceCAT templet by Kitware ,

First build system configuration is
EDDITION: Windows Server 2016 Standard Evaluation
VERSION: 1607
OS BUILD: 14393.4651

I would like to give you brief introduction regards our development.
First we started building on above mentioned system.
which we are still using.

Now we are expanding the development team, and providing local personal system with following Operating system configurations.
EDDITION: Windows 10 Home Single Language
VERSION: 20H2
OS BUILD: 19042.1288

and how we are building is First we are taking our custom templet and building it, which is successfully building then we are replacing slicersource-src folder with our latest developed code. then we are building and getting errors as mentioned in previous answer.

moreover is there any way to implement GITHUB in our development?

This can certainly lead to build errors. For performance reasons, not all dependencies are rebuilt when you just change the Slicer source folder, which may result in trying to build a new Slicer with an older CTK version. You can fix this by rebuilding CTK manually - opening the (slicer-build)\CTK-build\CTK.sln project in Visual Studio and build it in the appropriate build mode. But the clean solution is to update the template to pull Slicer source from your repository and then do a clean build.

I don’t think that’s the issue here, but Windows Server works quite differently from a regular Windows version. If you can, use non-server Windows edition.