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] missing .pc file for pkg-config #7641

Closed
Glavo opened this issue Aug 11, 2019 · 5 comments
Closed

[gtk] missing .pc file for pkg-config #7641

Glavo opened this issue Aug 11, 2019 · 5 comments
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@Glavo
Copy link

Glavo commented Aug 11, 2019


When I tried to find gtk in CMake like this, it failed:

find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)

There is no .pc fileassociated with GTK+ 3 in under C:\vcpkg\installed\x64-windows\lib\pkgconfig.

Proposed solution
Add the .pc associated with GTK+ 3.

@Glavo Glavo added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Aug 11, 2019
fungos added a commit to fungos/vcpkg that referenced this issue Nov 30, 2019
- Fixes microsoft#7412 by using gtk 3.24.10.

- Possibly fixes microsoft#6554, microsoft#7827, microsoft#8103 as now all the missing assets are
correctly copied into installed/<triplet>/share/ and should be deployed
with the final application.

This simplify the gtk port and correctly generate the missing files.

The source of the problem is with the underlying build system, as these
files were installed by the demo `icon-browser`, but the
gtk-update-icon-cache were executed by the main gtk project, failing if
the demo wasn't built or installed.

- This also fixes microsoft#7641 as now the meson build will correctly generate
the missing .pc files.

- This also fixes microsoft#9035, microsoft#7150 by fixing `vcpkg_configure_meson.cmake`
which fails on Linux/OSX because it indiscriminately try to pass msvc
cl arguments to the cmake c/xx flags. Although this works, it is not
the ideal fix. The correct fix would be to do as suggested in
issue microsoft#8271. Also see issue microsoft#8630.
@Glavo
Copy link
Author

Glavo commented Apr 3, 2020

Is there any progress on this issue?

@JackBoosY
Copy link
Contributor

@Glavo Sorry for late, gtk's pkgconfig files should be installed in VCPKG_PATH/installed/TRIPLET/lib/pkgconfig now.
Could you check this?

Thanks.

@zdyang
Copy link

zdyang commented Feb 20, 2021

It looks like the gtk3.pc for gtk3 is still missing?

I installed gtk3:x64-windows with vcpkg but could not find the .pc file. The files in my pkgconfig folder are as following

 Directory of C:\Users\zidong\workspace\vcpkg\installed\x64-windows\lib\pkgconfig

2021/02/18  16:43    <DIR>          .
2021/02/18  16:43    <DIR>          ..
2021/02/18  16:12               280 atk.pc
2021/02/18  16:13               221 bzip2.pc
2021/02/18  16:42               326 epoxy.pc
2021/02/18  16:14               263 expat.pc
2021/02/18  16:39               535 fontconfig.pc
2021/02/18  16:15               370 freetype2.pc
2021/02/18  16:12               435 gio-2.0.pc
2021/02/18  16:12               331 gio-windows-2.0.pc
2021/02/18  16:12               373 glib-2.0.pc
2021/02/18  16:12               288 gmodule-2.0.pc
2021/02/18  16:12               288 gmodule-export-2.0.pc
2021/02/18  16:12               287 gmodule-no-export-2.0.pc
2021/02/18  16:12               285 gobject-2.0.pc
2021/02/18  16:12               242 gthread-2.0.pc
2021/02/18  16:43               264 harfbuzz-subset.pc
2021/02/18  16:43               256 harfbuzz.pc
2021/02/18  16:16               281 json-c.pc
2021/02/18  16:13               294 libbrotlicommon.pc
2021/02/18  16:13               322 libbrotlidec.pc
2021/02/18  16:13               322 libbrotlienc.pc
2021/02/18  16:09               277 libffi.pc
2021/02/18  16:10               343 libpcre.pc
2021/02/18  16:10               348 libpcre16.pc
2021/02/18  16:10               348 libpcre32.pc
2021/02/18  16:10               288 libpcrecpp.pc
2021/02/18  16:10               331 libpcreposix.pc
2021/02/18  16:14               283 libpng.pc
2021/02/18  16:14               283 libpng16.pc
2021/02/18  16:10               290 zlib.pc
              29 File(s)          9,054 bytes
               2 Dir(s)  22,730,084,352 bytes free

Version Infos

  • OS: Win 10
  • vcpkg version: 2021-01-13-768d8f95c9e752603d2c5901c7a7c7fbdb08af35

Thanks

@JackBoosY
Copy link
Contributor

@zdyang Yes I confirmed.

@Neumann-A
Copy link
Contributor

@JackBoosY #13100 has been merged so this shouldn't be an issue any longer

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

Successfully merging a pull request may close this issue.

5 participants
@zdyang @Glavo @Neumann-A @JackBoosY and others