.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/pkgconfig
CMAKE_INSTALL_PREFIX
= ~/Projects
CMAKE_INSTALL_RPATH
= @executable_path/../Frameworks
CMAKE_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/Shotcut
QML2_IMPORT_PATH
to ${QTDIR}/qml
QT_PLUGIN_PATH
to ${QTDIR}/plugins
You 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/5.15.2/clang_64"
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"
Sometimes, you need to make distclean
and re-run configure
to make a clean
in-tree (non-shadow) build. MLT has a ./reconfigure
script that invokes the
configure with the same arguments as the previous run.