[MacPorts] #71851: libavif @1.1.1 +debug+docs+rav1e+tests: CMake Error: Target links to GTest::GTest, but the target was not found
MacPorts
noreply at macports.org
Thu Jan 16 12:07:19 UTC 2025
#71851: libavif @1.1.1 +debug+docs+rav1e+tests: CMake Error: Target links to
GTest::GTest, but the target was not found
-------------------------+---------------------
Reporter: cooljeanius | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: libavif
-------------------------+---------------------
Trying to upgrade libavif results in a long list of messages from CMake:
{{{
CMake Error at tests/CMakeLists.txt:94 (target_link_libraries):
Target "avifincrtest_helpers" links to:
GTest::GTest
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.
CMake Error at tests/CMakeLists.txt:96 (target_link_libraries):
Target "avifincrtest_helpers_internal" links to:
GTest::GTest
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.
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifallocationtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:105 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifalphanoispetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:106 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifalphapremtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:107 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifanimationtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:108 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifbasictest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:109 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifchangesettingtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:110 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifclaptest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:111 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifcllitest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:112 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifcodectest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:113 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:86 (target_link_libraries):
Target "avifcolrconverttest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:114 (add_avif_internal_gtest_with_data)
CMake Error at tests/CMakeLists.txt:74 (target_link_libraries):
Target "avifcolrtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:115 (add_avif_internal_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifdecodetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:116 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifdimgtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:117 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifencodetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:118 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifgridapitest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:128 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifilocextenttest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:129 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifimagetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:130 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifiostatstest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:137 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifkeyframetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:138 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "aviflosslesstest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:139 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifmetadatatest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:140 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifopaquetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:146 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifpng16bittest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:147 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifprogressivetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:148 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifrangetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:149 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifreadimagetest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:150 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:74 (target_link_libraries):
Target "avifrgbtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:151 (add_avif_internal_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifrgbtoyuvtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:152 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avifrgbtoyuvthreadingtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:153 (add_avif_gtest)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifscaletest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:154 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:80 (target_link_libraries):
Target "avifsize0test" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:155 (add_avif_gtest_with_data)
CMake Error at tests/CMakeLists.txt:74 (target_link_libraries):
Target "avifstreamtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:156 (add_avif_internal_gtest)
CMake Error at tests/CMakeLists.txt:74 (target_link_libraries):
Target "aviftilingtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:157 (add_avif_internal_gtest)
CMake Error at tests/CMakeLists.txt:74 (target_link_libraries):
Target "avifutilstest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:158 (add_avif_internal_gtest)
CMake Error at tests/CMakeLists.txt:68 (target_link_libraries):
Target "avify4mtest" links to:
GTest::GTest
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.
Call Stack (most recent call first):
tests/CMakeLists.txt:159 (add_avif_gtest)
-- Generating done (0.2s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_COLOR_MAKEFILE
CMAKE_OBJCXX_COMPILER
CMAKE_OBJC_COMPILER
CMAKE_POLICY_DEFAULT_CMP0025
CMAKE_POLICY_DEFAULT_CMP0060
CMake Generate step failed. Build files cannot be regenerated correctly.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libavif/libavif/work/build"
&& /opt/local/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MacPorts
-DCMAKE_INSTALL_PREFIX="/opt/local"
-DCMAKE_INSTALL_NAME_DIR="/opt/local/lib"
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC"
-DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC"
-DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW
-DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=ninja
-DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules"
-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON
-DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DAVIF_BUILD_APPS:BOOL=ON
-DAVIF_CODEC_AOM:BOOL=ON -DAVIF_CODEC_DAV1D:BOOL=ON
-DAVIF_CODEC_LIBGAV1=OFF -DAVIF_CODEC_RAV1E:BOOL=ON
-DAVIF_CODEC_SVT:BOOL=ON -DAVIF_ENABLE_WERROR:BOOL=OFF
-DAVIF_BUILD_MAN_PAGES=ON -DAVIF_BUILD_TESTS=ON
-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="11.0"
-DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk"
-DCMAKE_STRIP:FILEPATH=/bin/echo
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libavif/libavif/work/libavif-1.1.1
Exit code: 1
}}}
I'm on x86_64 Big Sur with Xcode 13
--
Ticket URL: <https://trac.macports.org/ticket/71851>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list