.txz file from the folder $HOME/Projects.includedir and libdir keys in the mltframework-7.pc and mlt++-7.pc files in $HOME/Projects/Shotcut/Contents/Frameworks/lib/pkgconfig to have the proper prefix: $HOME/Projects/Shotcut/Contents/Frameworks/ (you need to expand $HOME yourself).$HOME/Projects/Shotcut.app pointing to $HOME/Projects/Shotcut.$HOME/Projects/Shotcut/src/shotcut/CMakeLists.txt.PKG_CONFIG_PATH = ${HOME}/Projects/Shotcut/Contents/Frameworks/lib/pkgconfigCMAKE_INSTALL_PREFIX = ~/ProjectsCMAKE_INSTALL_RPATH = @executable_path/../FrameworksCMAKE_INSTALL_RPATH_USE_LINK_PATH = ONAlternatively, in Addtional CMake options enter -DCMAKE_INSTALL_PREFIX=~/Projects -DCMAKE_INSTALL_RPATH=@executable_path/../Frameworks -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON and click Run CMake.
$HOME/Projects/Shotcut/Contents/MacOS/ShotcutQML2_IMPORT_PATH to ${QTDIR}/qmlQT_PLUGIN_PATH to ${QTDIR}/pluginsYou still might need to get some dependencies from MacPorts (or Homebrew, untested).
You can use the following command to revise all of the pkg-config files to your installation path:
for f in ~/Projects/Shotcut/Contents/Frameworks/lib/pkgconfig/*.pc; do sed -i .bak -e "s,/Users/ddennedy/shotcut-sdk/shotcut/build,$HOME/Projects/Shotcut/Contents/Frameworks," -e 's,Frameworks/lib,Frameworks,' -e 's,${exec_prefix}/lib,${exec_prefix},' $f ; done
You might want to put the following into ~/.profile or a setup script:
export PATH="$HOME/Projects/Shotcut/Contents/MacOS:$PATH"
export QTDIR="$HOME/Qt/6.4.2/macos"
export PKG_CONFIG_PATH="$HOME/Projects/Shotcut/Contents/Frameworks/lib/pkgconfig"
export CFLAGS="-I/opt/local/include -DRELOCATABLE"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="-L/opt/local/lib/libomp"
You should make separate build directories instead of trying to reuse the in-tree build.