Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: pkgconfig and gtk+ issue

  1. #11

    Default Re: pkgconfig and gtk+ issue

    Quote Originally Posted by robin_listas View Post
    Try creating a new user with bash as shell, and try there, to see if it is
    an issue.
    Yes, that makes a difference!
    Now pkg-config --list-all | grep gtk gives me for that user:

    Code:
    gtk+-2.0                  GTK+ - GTK+ Graphical UI Library (x11 target)
    gtk+-x11-2.0              GTK+ - GTK+ Graphical UI Library (x11 target)
    gtk+-unix-print-2.0       GTK+ - GTK+ Unix print support
    gtkmm-2.4                 gtkmm - C++ binding for the GTK+ toolkit
    What the heck has my default shell to do with pkg-config?

    Code:
    trace-cmd> ls -l /bin/sh
    lrwxrwxrwx 1 root root 4  2. Mär 2011  /bin/sh -> bash

  2. #12
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: pkgconfig and gtk+ issue

    On 2012-04-19 14:46, AKS42 wrote:
    > Where is PKG_CONFIG_PATH defined in the system? If I grep for that
    > variable, there are no hits in /etc.


    /etc/profile.d/opt_gnome-compat.sh and .csh have some hits.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #13

    Default Re: pkgconfig and gtk+ issue

    Quote Originally Posted by robin_listas View Post
    /etc/profile.d/opt_gnome-compat.sh and .csh have some hits.
    Both do not exist here...

  4. #14

    Default Re: pkgconfig and gtk+ issue

    Things are getting even more weird. I used strace to look over pkg-config's shoulder and found that it was looking for some .pc files that were reachable via $PATH ! When I remove that directory (a cross-compile toolchain) from PATH it finds the .pc files on my system and "make gui" succeeds.

    Why is pkg-config looking into the PATH to find the files and not into PKG_CONFIG_PATH !?!

  5. #15
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: pkgconfig and gtk+ issue

    Am 19.04.2012 15:26, schrieb AKS42:
    >
    > Things are getting even more weird. I used strace to look over
    > pkg-config's shoulder and found that it was looking for some .pc files
    > that were reachable via $PATH ! When I remove that directory (a
    > cross-compile toolchain) from PATH it finds the .pc files on my system
    > and "make gui" succeeds.
    >
    > Why is pkg-config looking into the PATH to find the files and not into
    > PKG_CONFIG_PATH !?!
    >
    >

    You can ask pkg-config itself to show you where it searches
    Code:
    pkg-config --variable pc_path pkg-config
    (it is described in the man page)

    --
    PC: oS 11.4 x86_64 | Intel Core i7-2600@3.40GHz | 16GB | KDE 4.8.2 |
    GeForce GT 420
    Eee PC 1201n: oS 12.1 x86_64 | Intel Atom 330@1.60GHz | 3GB | KDE 4.8.2
    | nVidia ION
    eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10 |
    xf86-video-geode

  6. #16
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: pkgconfig and gtk+ issue

    On 2012-04-19 14:56, AKS42 wrote:
    > What the heck has my default shell to do with pkg-config?


    I have created a new user with tcl default shell (oS 11.4), and it works:

    Code:
    
    > cer@Telcontar:~> su - test
    > Password:
    > Telcontar /home/test> pkg-config --list-all | grep gtk
    > gtk+-2.0                         GTK+ - GTK+ Graphical UI Library (x11 target)
    > gtk-sharp-2.0                    Gtk - Gtk
    > gtk-doc                          gtk-doc - API documentation generator
    > gtk+-unix-print-2.0              GTK+ - GTK+ Unix print support
    > gtk+-x11-2.0                     GTK+ - GTK+ Graphical UI Library (x11 target)
    > gtk-dotnet-2.0                   Gtk.DotNet - .NET Extensions for Gtk
    > libgnomeprint-2.2                libgnomeprint-2.2 - libgnomeprint - Printing library for gtk+ based applications
    > libcanberra-gtk                  libcanberra-gtk - Gtk Event Sound API
    > gtkhtml-sharp-3.14               Gtkhtml - Gtkhtml
    > libgnomeprintui-2.2              libgnomeprintui-2.2 - libgnomeprint - Printing library for gtk+ based applications
    > Telcontar /home/test>
    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  7. #17

    Default Re: pkgconfig and gtk+ issue

    The reason for the shell dependency was due to my .tcshrc having an statement expanding my $PATH to include the crosscompiler toolchain. When I called bash, the environment was kept, therefore I had the same problem. When I manually removed the crosscompiler toolchain from $PATH, pkg-config listed the gtk2 packages and I was able to build kernelshark.

    Update: To be precise: I built using tcsh. The very same shell instance that failed before.

  8. #18
    Join Date
    Nov 2008
    Location
    Chico, CA
    Posts
    18

    Unhappy Re: pkgconfig and gtk+ issue

    It is my belief that pkgconfig information is NOT being provided as it should for a while with opensuse (maybe since 11.4), thus these issues! it truly sucks when you're trying to install something that uses pkgconfig to find library information. opensuse need more QA in this regard.

    All pkgconfile meta info is located in /usr/lib/pkgconfig.

  9. #19

    Default Re: pkgconfig and gtk+ issue

    Care to explain how this was solved? I have the exact same problem when trying to compile.

    "gtk+-2.0 not found. Maybe you should include it to the path."
    openSUSE Leap 15.0

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •