pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: pkgsrc/devel/cmake
> Sorry about that! Can you please try the attached patch?
>
> If it doesn't work, can you please build some of the affected packages
> with
>
> CMAKE_CONFIGURE_ARGS+= --debug-find
>
> and send me the output? (And in the meantime, if the patch doesn't
> work, we can disable it for macOS.)
> <cmakeprefix-darwin.patch>
The correct fix to find system frameworks would be:
--- build.mk 24 Jan 2025 21:23:07 -0000 1.21
+++ build.mk 26 Jan 2025 11:35:59 -0000
@@ -64,6 +64,9 @@
# directory for find_package/program/library/file/path.
CMAKE_CONFIGURE_ARGS+= -DCMAKE_FIND_USE_CMAKE_SYSTEM_PATH:BOOL=OFF
CMAKE_PREFIX_PATH+= ${BUILDLINK_DIR}
+.if ${OPSYS} == "Darwin"
+CMAKE_PREFIX_PATH+= /System/Library/Frameworks
+.endif
CMAKE_INCLUDE_PATH+= ${COMPILER_INCLUDE_DIRS:@.d.@${_CROSS_DESTDIR:U}${.d.}@}
CMAKE_LIBRARY_PATH+= ${COMPILER_LIB_DIRS:@.d.@${_CROSS_DESTDIR:U}${.d.}@}
But I still couldn't figure out why wireshark fails to configure. This is the full error message (in red):
CMake Error at CMakeLists.txt:1314 (find_package):
Found package configuration file:
/dist/pkg/qt6/lib/cmake/Qt6/Qt6Config.cmake
but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:
Failed to find required Qt component "Gui".
Expected Config file at "/dist/pkg/qt6/lib/cmake/Qt6Gui/Qt6GuiConfig.cmake"
exists
Configuring with --debug-find-pkg=Qt6Gui might reveal details why the
package was not found.
Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
of the path variables that find_package uses to try and find the package.
Home |
Main Index |
Thread Index |
Old Index