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

How to install Gtk2? #1

Open
hakonhagland opened this issue Oct 12, 2023 · 4 comments
Open

How to install Gtk2? #1

hakonhagland opened this issue Oct 12, 2023 · 4 comments

Comments

@hakonhagland
Copy link

I have installed Alien::GtkStack::Windows on Windows 11, Strawberry Perl 5.38.0. How can I now install Gtk2?

> cpanm -v Gtk2
cpanm (App::cpanminus) 1.7046 on perl 5.038000 built for MSWin32-x64-multi-thread
Work directory is C:\Users\hakon/.cpanm/work/1697099290.24572
You have make C:\Strawberry\c\bin\gmake.exe
You have LWP 6.71
Falling back to Archive::Tar 3.02
Searching Gtk2 () on cpanmetadb ...
--> Working on Gtk2
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Gtk2-1.24993.tar.gz ... OK
Unpacking Gtk2-1.24993.tar.gz
Entering Gtk2-1.24993
Checking configure dependencies from META.json
Checking if you have Glib 1.280 ... No
Checking if you have Cairo 1.000 ... No
Checking if you have ExtUtils::PkgConfig 1.030 ... Yes (1.16)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70)
Checking if you have ExtUtils::Depends 0.300 ... Yes (0.8000)
Checking if you have Pango 1.220 ... No
==> Found dependencies: Glib, Cairo, Pango
Searching Glib (1.280) on cpanmetadb ...
--> Working on Glib
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Glib-1.3294.tar.gz ... OK
Unpacking Glib-1.3294.tar.gz
Entering Glib-1.3294
Checking configure dependencies from META.json
Checking if you have ExtUtils::PkgConfig 1.000 ... Yes (1.16)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70)
Checking if you have ExtUtils::Depends 0.300 ... Yes (0.8000)
Running Makefile.PL
Configuring Glib-1.3294 ... Can't find gobject-2.0.pc in any of C:/Strawberry/c/lib/pkgconfig
use the PKG_CONFIG_PATH environment variable, or
specify extra search paths via 'search_paths'
 at Makefile.PL line 58.
*** can not find package gobject-2.0 >= 2.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
 at Makefile.PL line 58.
N/A
! Configure failed for Glib-1.3294. See C:\Users\hakon\.cpanm\work\1697099290.24572\build.log for details.
Searching Cairo (1.000) on cpanmetadb ...
--> Working on Cairo
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Cairo-1.109.tar.gz ... OK
Unpacking Cairo-1.109.tar.gz
Entering Cairo-1.109
Checking configure dependencies from META.json
Checking if you have ExtUtils::Depends 0.2 ... Yes (0.8000)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70)
Checking if you have ExtUtils::PkgConfig 1 ... Yes (1.16)
Running Makefile.PL
Configuring Cairo-1.109 ... Can't find cairo.pc in any of C:/Strawberry/c/lib/pkgconfig
use the PKG_CONFIG_PATH environment variable, or
specify extra search paths via 'search_paths'
 at Makefile.PL line 99.
*** can not find package cairo >= 1.0.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
 at Makefile.PL line 99.
N/A
! Configure failed for Cairo-1.109. See C:\Users\hakon\.cpanm\work\1697099290.24572\build.log for details.
Searching Pango (1.220) on cpanmetadb ...
--> Working on Pango
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Pango-1.227.tar.gz ... OK
Unpacking Pango-1.227.tar.gz
Entering Pango-1.227
Checking configure dependencies from META.json
Checking if you have Cairo 1.000 ... No
Checking if you have Glib 1.220 ... No
Checking if you have ExtUtils::Depends 0.300 ... Yes (0.8000)
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70)
Checking if you have ExtUtils::PkgConfig 1.030 ... Yes (1.16)
==> Found dependencies: Cairo, Glib
Already tried Cairo. Skipping.
Already tried Glib. Skipping.
! Installing the dependencies failed: Module 'Cairo' is not installed, Module 'Glib' is not installed
! Bailing out the installation for Pango-1.227.
! Installing the dependencies failed: Module 'Pango' is not installed, Module 'Cairo' is not installed, Module 'Glib' is not installed
! Bailing out the installation for Gtk2-1.24993.
Expiring 8 work directories.
@shawnlaffan
Copy link
Owner

It needs PPMs.

  cpanm https://github.com/shawnlaffan/perl-alien-gtkstack-windows.git
  ppm set repository biodiverse https://github.com/shawnlaffan/perl-alien-gtkstack-windows/releases/download/first_upload/
  ppm install Cairo
  ppm install Cairo-GObject
  ppm install Glib
  ppm install Gnome2-Canvas
  ppm install Gtk2
  ppm install Pango

I'll add that to the readme.

@shawnlaffan
Copy link
Owner

I'll add that to the readme.

Actually it was already there. I've added text at the top to make this clearer.

@hakonhagland
Copy link
Author

It needs PPMs.

@shawnlaffan I was not aware of ppm, interesting! I have always used cpanm to install packages. Why is that not used on Windows? Is it because it is difficult to patch the official Perl modules?

@shawnlaffan
Copy link
Owner

PPM used to be the main way of installing packages on windows where they needed compilation, as they could be compiled once and then installed on other machines. The need for it reduced when Strawberry Perl came on the scene since it has a C compiler and comes with a range of precompiled libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants