You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Steps to reproduce the behavior: vcpkg install gtk
Failure logs
vcpkg error
$ vcpkg install gtk
Computing installation plan...
The following packages will be built and installed:
gtk[core]:x64-linux
Starting package 1/1: gtk:x64-linux
Building package gtk[core]:x64-linux...
-- Using cached /.../vcpkg/downloads/gtk+-3.22.19.tar.xz
-- Using source at /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
-- Configuring x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
Command failed: /.../vcpkg/downloads/tools/cmake-3.14.0-linux/cmake-3.14.0-Linux-x86_64/bin/cmake /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846 -DGTK_VERSION=3.22.19 -DCMAKE_MAKE_PROGRAM=/.../vcpkg/downloads/tools/ninja-1.10.0-linux/ninja -DCMAKE_SYSTEM_NAME=Linux -DBUILD_SHARED_LIBS=OFF -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/.../vcpkg/scripts/toolchains/linux.cmake -DVCPKG_TARGET_TRIPLET=x64-linux -DVCPKG_SET_CHARSET_FLAG=ON -DVCPKG_PLATFORM_TOOLSET=external -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE -DCMAKE_VERBOSE_MAKEFILE=ON -DVCPKG_APPLOCAL_DEPS=OFF -DCMAKE_TOOLCHAIN_FILE=/.../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON -DVCPKG_CXX_FLAGS= -DVCPKG_CXX_FLAGS_RELEASE= -DVCPKG_CXX_FLAGS_DEBUG= -DVCPKG_C_FLAGS= -DVCPKG_C_FLAGS_RELEASE= -DVCPKG_C_FLAGS_DEBUG= -DVCPKG_CRT_LINKAGE=dynamic -DVCPKG_LINKER_FLAGS= -DVCPKG_TARGET_ARCHITECTURE=x64 -DCMAKE_INSTALL_LIBDIR:STRING=lib -DCMAKE_INSTALL_BINDIR:STRING=bin -DGTK_SKIP_HEADERS=ON -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/.../vcpkg/packages/gtk_x64-linux/debug
Working Directory: /.../vcpkg/buildtrees/gtk/x64-linux-dbg
Error code: 1
See logs for more information:
/.../vcpkg/buildtrees/gtk/config-x64-linux-dbg-out.log
/.../vcpkg/buildtrees/gtk/config-x64-linux-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:306 (vcpkg_execute_required_process)
ports/gtk/portfile.cmake:30 (vcpkg_configure_cmake)
scripts/ports.cmake:90 (include)
Error: Building package gtk:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: gtk:x64-linux
Vcpkg version: 2020.02.04-unknownhash
Additionally, attach any relevant sections from the log files above.
config-x64-linux-dbg-out.log
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring incomplete, errors occurred!
See also "/.../vcpkg/buildtrees/gtk/x64-linux-dbg/CMakeFiles/CMakeOutput.log".
config-x64-linux-dbg-err.log
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBINTL_LIBRARY
linked by target "gdk-3" in directory /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
linked by target "gtk-3" in directory /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
linked by target "gailutil-3" in directory /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
PANGO_WIN32_LIBRARY
linked by target "gdk-3" in directory /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
linked by target "gtk-3" in directory /.../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
linked by target "gailutil-3" in directory /..../vcpkg/buildtrees/gtk/src/gtk+-3-b723a7b846
Additional context LIBINTL_LIBRARY
I have the following packages installed that should give me the proper files for libintl: gettext gettext-base libgettextpo0 libgettextpo-dev libc6 libc6-dev libc6-dbg, all of which are properly updated. I tried adding message( ${LIBINTL_INCLUDE_DIR} ) after line 54 in CMakeLists.txt, which confirmed the location of libintl.h to be in /usr/include (which locate libintl.h agrees with).
Is cmake looking for a libintl.so or libintl.a somewhere for the library? (I'm still new to C/C++, so I'm not familiar with this sort of library management.) There is a /usr/lib/x86_64-linux-gnu/preloadable_libintl.so, but that's it. locate libintl.so only returns the preloadable file. Is something installed wrong? I'm clueless.
PANGO_WIN32_LIBRARY
I assumed that this was an issue because I'm running this on Linux. Should line 33 of CMakeLists.txt be wrapped with if(WIN32)? I am probably wrong on that, but I suppose someone will know what's going on.
If you need any more information (package versions, files existing or not, etc.), please let me know. I'd like to be able to use GTK headers with Visual Studio Code. I've tried quite a bit to get this working, but I unfortunately don't have enough cmake experience or GTK experience to know where the issue is.
God bless,
scoutchorton
The text was updated successfully, but these errors were encountered:
Certainly not the same. The original post (2020) is about port gtk, major version 3. Port gtk is at major version 4 since 2021.
A new port gtk3 was added recently (2022), with a lot of work on dependencies. It probably resolved the issues reported here for major version 3. At least it is good enough to build e.g. wxwidgets:x64-linux.
So please choose the desired major version, and report issues properly.
Host Environment
To Reproduce
Steps to reproduce the behavior:
vcpkg install gtk
Failure logs
vcpkg error
config-x64-linux-dbg-out.log
config-x64-linux-dbg-err.log
Additional context
LIBINTL_LIBRARY
I have the following packages installed that should give me the proper files for
libintl
:gettext gettext-base libgettextpo0 libgettextpo-dev libc6 libc6-dev libc6-dbg
, all of which are properly updated. I tried addingmessage( ${LIBINTL_INCLUDE_DIR} )
after line 54 in CMakeLists.txt, which confirmed the location oflibintl.h
to be in/usr/include
(whichlocate libintl.h
agrees with).Is
cmake
looking for alibintl.so
orlibintl.a
somewhere for the library? (I'm still new to C/C++, so I'm not familiar with this sort of library management.) There is a/usr/lib/x86_64-linux-gnu/preloadable_libintl.so
, but that's it.locate libintl.so
only returns the preloadable file. Is something installed wrong? I'm clueless.PANGO_WIN32_LIBRARY
I assumed that this was an issue because I'm running this on Linux. Should line 33 of CMakeLists.txt be wrapped with
if(WIN32)
? I am probably wrong on that, but I suppose someone will know what's going on.If you need any more information (package versions, files existing or not, etc.), please let me know. I'd like to be able to use GTK headers with Visual Studio Code. I've tried quite a bit to get this working, but I unfortunately don't have enough
cmake
experience or GTK experience to know where the issue is.God bless,
scoutchorton
The text was updated successfully, but these errors were encountered: