C:\Qt
.tar
and xz
needed to extract this from msys2
.)C:\Projects
C:\
named “Projects” (C:\Projects
).C:\Projects\Shotcut\src\shotcut\CMakeLists.txt
.In the Configure Project screen, select your previously configured Kit and click Configure Project:
PKG_CONFIG_PATH
and set it to C:\Projects\Shotcut\lib\pkgconfig
.Path
: C:\msys64\usr\local\bin;C:\msys64\mingw64\bin;
CMAKE INSTALL_PREFIX
and change its value to C:\Projects\Shotcut
and click Run CMake.The section above just gets you a working environment for the Shotcut code, but not any of its dependencies. Some of the dependencies included in the SDK with source code can be opened and used within Qt Creator - e.g., frei0r. Instructions for that are not yet included. In other cases you can use the Git Bash shell environment. Upon opening a Git Bash shell, enter (or add to ~/.profile and restart the shell):
export PATH="/c/Qt/x86_64-5.4.0-release-posix-seh-rt_v5-rev0/mingw64/bin:$PATH"
export QTDIR="c:/Qt/qt-5.9.7-x64-mingw540-seh"
export CC=gcc
export CXX=g++
export PKG_CONFIG_PATH="c:/Projects/Shotcut/lib/pkgconfig"
export CFLAGS="-Ic:/Projects/Shotcut/include -DHAVE_STRUCT_TIMESPEC"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-Lc:/Projects/Shotcut/lib -Lc:/Projects/Shotcut"
alias make=mingw32-make
For a project’s configure step, often you can supply the prefix as
/c/Projects/Shotcut
and make install
will work as expected. However,
sometimes you need to copy DLLs from bin/ or lib/ into
/c/Projects/Shotcut where shotcut.exe resides.
When working with git repos from the SDK on Windows, it may helpful to
issue git config core.fileMode false
to prevent unchanged files from
appearing in git status and git diff.
When using gdb at the command line to debug, using Ctrl+C to break execution will also exit the debugger. There is a program called breakgdb.exe (source) that can be used to break execution.