Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gtk] x64-linux build failure #11318

Open
scoutchorton opened this issue May 12, 2020 · 3 comments
Open

[gtk] x64-linux build failure #11318

scoutchorton opened this issue May 12, 2020 · 3 comments
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@scoutchorton
Copy link

scoutchorton commented May 12, 2020

Host Environment

  • OS: Ubuntu 18.04 LTS
  • Compiler: gcc 7.5.0, cmake 3.10.2

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

@scoutchorton scoutchorton added the category:port-bug The issue is with a library, which is something the port should already support label May 12, 2020
@scoutchorton scoutchorton changed the title [gtk] build failure [gtk] x64-linux build failure May 12, 2020
@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist and removed category:port-bug The issue is with a library, which is something the port should already support labels May 22, 2020
ravgeetdhillon pushed a commit to ravgeetdhillon/gtk-web that referenced this issue Sep 6, 2020
@jleaders
Copy link

I have a very similar error on Ubuntu 22

@AleksandrsKorsunovs
Copy link

Same issue on Ubuntu 22

@dg0yt
Copy link
Contributor

dg0yt commented Oct 19, 2022

Same issue on Ubuntu 22

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.

@Cheney-W Cheney-W assigned Adela0814 and unassigned JackBoosY Dec 6, 2022
@LilyWangLL LilyWangLL self-assigned this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

No branches or pull requests

8 participants
@jleaders @scoutchorton @dg0yt @AleksandrsKorsunovs @JackBoosY @LilyWangLL @Adela0814 and others