Hello,
I am trying to update Homebrew formula, qmmp
and I got the build error as follows:
cmake -S . -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/qmmp/2.2.2 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=/opt/homebrew/Library/Homebrew/cmake/trap_fetchcontent_provider.cmake -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DCMAKE_INSTALL_RPATH=@loader_path/../lib -DCMAKE_STAGING_PREFIX=/opt/homebrew/Cellar/qmmp/2.2.2 -DUSE_SKINNED=ON -DUSE_ENCA=ON -DUSE_QMMP_DIALOG=ON -DCMAKE_EXE_LINKER_FLAGS=-Wl,-undefined,dynamic_lookup -DCMAKE_SHARED_LINKER_FLAGS=-Wl,-undefined,dynamic_lookup -DCMAKE_MODULE_LINKER_FLAGS=-Wl,-undefined,dynamic_lookup
CMake Error at src/plugins/Ui/skinned/CMakeLists.txt:68 (target_link_libraries):
Target "skinned" links to:
PkgConfig::X11
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
-- Generating done (4.8s)
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMake Generate step failed. Build files cannot be regenerated correctly.
and noticec that the package reference is changed from "${X11_LDFLAGS}" to "PkgConfig::X11". You can see the details here. Can you give me how to deal with this change?
Thanks,
Try this patch https://sourceforge.net/p/qmmp-dev/code/12044/