Compiling Shotcut in Windows 11

I need to compile and debug shotcut in windows, but the provided documentation does not help much.
can any body help with the latest dev instructions that has been using the latest tools for developing/debugging in windows.

Our SDK is the recommended approach

A different way is to get compiler, CMake, Qt, mlt, and fftw dependencies from the msys2 project, MINGW64 environment. Then, follow the build instructions on our GitHub README page. You must do the install step in order for the executable to find its runtime dependencies (QML).

Beyond that you should work through getting your first custom build to work by yourself. Otherwise, you are probably not skilled enough to work on the code.

thanks for the update
 and I am trying hard to achieve that “skill” level
 :wink:

I am facing issue with MLT++ and also tried replacing with the latest sources from mlt-github, but, still getting the following error:

[cmake] Running D:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/Projects/Shotcut/src/shotcut -B C:/Projects/Shotcut/src/shotcut/build/Desktop_Qt_6_7_1_MingGW_64_bit-Release in C:\Projects\Shotcut\src\shotcut\build\Desktop_Qt_6_7_1_MingGW_64_bit-Release.
[cmake] – Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
[cmake] – Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
[cmake] – Checking for module ‘mlt+±7>=7.22.0’
[cmake] – Package ‘mlt+±7’, required by ‘virtual:world’, not found
[cmake] CMake Error at D:/Qt/Tools/CMake_64/share/cmake-3.29/Modules/FindPkgConfig.cmake:634 (message):
[cmake] The following required packages were not found:
[cmake]
[cmake] - mlt+±7>=7.22.0
[cmake]
[cmake] Call Stack (most recent call first):
[cmake] D:/Qt/Tools/CMake_64/share/cmake-3.29/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
[cmake] CMakeLists.txt:47 (pkg_check_modules)
[cmake]
[cmake]
[cmake] – Configuring incomplete, errors occurred!
[cmake]
[cmake] The command “D:\Qt\Tools\CMake_64\bin\cmake.exe -S C:/Projects/Shotcut/src/shotcut -B C:/Projects/Shotcut/src/shotcut/build/Desktop_Qt_6_7_1_MingGW_64_bit-Release” terminated with exit code 1.
[cmake]
[cmake] Elapsed time: 00:00.

how can I get thru this?
thanks.

the file(s), that I downloaded and configured from the “shotcut - how to use windows sdk” site is as follows:

  1. qt-6.7.1-x64-mingw.txz
  2. shotcut-win64-sdk-240829.txz

it was assumed that the shotcut would have included the new MLT++ version.

I cannot proceed for Step #3 from this site:

because of the error(s) that I posted in my previous comment, regarding MLt++ version.

any help in this case will be useful.

Step 3 does not say it must succeed before you proceed. The tool automatically starts configure even though it is not ready because the things in Step 4 are needed. The last thing in step 4 (Run CMake) re-runs the configure.
Why do you need to compile and debug Shotcut in Windows?

1 Like

I need to know the workings of MLT framework, and it seems shotcut is the only way to get to it.
My primary work as developer is only on Windows technologies (.NET etc)
 hence, trying to compile shotcut in windows platform.
Well, I’m comfortable with linux also, but, not much hands on in it.

the only issue I was facing was with the version of “mlt++”, which, I thought that it might have been present in " Shotcut SDK (930 MB current version 24.08.29)" link given in the site.
I have “Qt 6.7.2 MinGW 64 bit” kit installed, as opposed to the requirement of “Qt 6.7.1” as mentioned in site.

after lots of twiddling around changing configs/exes,I got to successfully build the sources.
now the problem(s), I am facing is regarding “Debugging” of the same, as related to setting in QTCreator.
as mentioned in site,

In Run click Add
 > Custom Executable ;
in Executable: enter “C:\Projects\Shotcut\shotcut.exe”
as shown in Figure 1.

but, in QTCreator’s CMake settings, the “Build Directory” is default considered different as shown below:
as shown in Figure 2.

this is the place where the compiled exe will be placed, then how to specify this exe for debugging?
this settings is nowhere mentioned in the site. :frowning:
so now how to proceed with debugging?

Settings Image

Your screenshot is way too small. Debugging uses the same as the run location. You need to debug the installed exe C:\Projects\Shotcut\shotcut.exe. In Windows, you also need to add an environment variable in the run settings in order to debug: QSG_RHI_BACKEND=d3d11

since there was limitations of multiple file(s), I had to combine screenshot file(s), not aware that it will reduce the size.
Anyways, I will post those file(s) in two separate replies just for clarity.

now coming to my earlier query, and as you mentioned that debug uses the same location, but, when I compile/build the sources another exe is created at this location:
“C:\Projects\Shotcut\src\shotcut\build\Desktop_Qt_6_7_2_MinGW_64_bit-Debug\src\shotcut.exe”

and there is this previous exe present at this location:
“C:\Projects\Shotcut\shotcut.exe”

the previous location where build exe is created is specified in QTCreators “Build Settings” as shown in the below screenshot:

and below is the “Run Settings”, where the executable to run is specified:

so I think, all the confusion is about the executables that is created by building sources, and the original exe that was downloaded in SDK.

it is ok to modify the configs (on my local system)?, so that I get single exe after compiling/building, and the same to be used for debugging.?

or is there something that I am missing?

This topic was automatically closed after 90 days. New replies are no longer allowed.