Building on Mac OS Failed

Hello, I find a bug when I use shotcut (Exported video failed sometimes) that I want to fix it.
But after I follow this instructions Shotcut - How To Use the macOS SDK to configure my shotcut and click Run , QT always says

error: library not found for -lmlt++-7
error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/Shotcut.app/Contents/MacOS/Shotcut] Error 1
make[1]: *** [src/CMakeFiles/shotcut.dir/all] Error 2
make: *** [all] Error 2"

Could somebody tell me what should I do?

This is my configuration.
step one: change mltframework-7.pc and mlt++-7.pc
I change pc to

prefix=/Users/apple/Documents/mediaframework/Projects/Shotcut/Contents/Frameworks
libdir=${prefix}/lib
includedir=${prefix}/include

step two: create a symbolic link
I run ln -s Shotcut Shotcut.app

step three: configure Build Settings and Build Environment

-DCMAKE_INSTALL_PREFIX= "/Users/apple/Documents/mediaframework/Projects/"
-DCMAKE_INSTALL_RPATH="@executable_path/../Frameworks"
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON

and
Set PKG_CONFIG_PATH to /Users/apple/Documents/mediaframework/Projects/Shotcut/Contents/Frameworks/lib/pkgconfig

step four: configure Run Settings and Environment

And I find the directory of QT build is not ${HOME}/Projects/ShotCut , but ${HOME}/Projects/ShotCut/src/build-shotcut-Desktop_x86_darwin_generic_mach_o_64bit-Debug/ . And I try to change it to ${HOME}/Projects/ShotCut , but get the same error.

Could somebody tell me what should I do?

After add
set (CMAKE_PREFIX_PATH
${CMAKE_PREFIX_PATH}
“/Users/apple/Documents/mediaframework/Projects/Shotcut/Contents/Frameworks/”)

to CMakeLists.txt. I could build successful. I think PKG_CONFIG_PATH is not avaliable

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