Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: GTK problem 13.1x64?

  1. #1
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default GTK problem 13.1x64?

    I think this might be a GTK configuration problem (or nonstandard setup) for 13.1. I've been searching around and it seems like it might be. Have a 64-bit linux app (a commercial package) that uses GTK, and GTK has trouble starting up. I get these errors when I start the app:

    Code:
    patti@linux-l8th:~> appname
    
    <...stuff showing app is starting OK...>
    
    Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
    
    Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",
    aborting...
    Aborted
    patti@linux-l8th:~>
    The reason I think this may be a GTK setup problem is that if I

    ~> export GTK_MODULES=' '

    ...then I don't get the failure to load libcanberra-gtk-module module. I don't believe this is needed.
    Also, all versions of libcanberra are installed, as well as oxygen-gtk, according to YaST.

    Can anyone tell me what is going on here? The closest I could come was some advice for 12.3 which didn't work...

    Thanks,
    Patti

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: GTK problem 13.1x64?

    Hmm... I don't have an answer as such, but I note that there are gtk2 and gtk3 libraries which both provide 'libcanberra-gtk-module.so'

    Code:
    # rpm -ql libcanberra-gtk3-module-0.30-6.1.3.x86_64
    /usr/lib64/gtk-3.0/modules/libcanberra-gtk-module.so
    /usr/lib64/gtk-3.0/modules/libcanberra-gtk3-module.so
    Code:
    # rpm -ql libcanberra-gtk2-module-0.30-6.1.3.x86_64
    /usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so
    For reference, I have
    Code:
    # rpm -qa|grep libcanberra
    libcanberra0-0.30-6.1.3.x86_64
    libcanberra-gtk-module-common-0.30-6.1.3.x86_64
    libcanberra-gtk2-module-0.30-6.1.3.x86_64
    libcanberra-gtk3-0-0.30-6.1.3.x86_64
    libcanberra-gtk3-module-0.30-6.1.3.x86_64
    libcanberra-gtk0-0.30-6.1.3.x86_64

  3. #3

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by PattiMichelle View Post
    Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
    canberra is only used for sound output. Failing to load it should not cause the application to fail.

    Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",
    aborting...
    Aborted
    The missing "oxygen-gtk" theme engine might be the problem though.

    Verify that you have "gtk3-engine-oxygen" (or "gtk2-engine-oxygen" if that's a GTK2 application) installed.
    And if was a 32bit application, you would need "gtk3-engine-oxygen-32bit" (or "gtk2-engine-oxygen-32bit") as well.

    And/or try to set a different GTK theme. For KDE: "Configure Desktop"->"Application Appearance"->GTK.
    Some applications do have problems with the Oxygen theme.
    Last edited by wolfi323; 07-Aug-2014 at 00:44.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: GTK problem 13.1x64?

    The missing "oxygen-gtk" theme engine might be the problem though.

    Verify that you have "gtk3-engine-oxygen" (or "gtk2-engine-oxygen" if that's a GTK2 application) installed.
    And if was a 32bit application, you would need "gtk3-engine-oxygen-32bit" (or "gtk2-engine-oxygen-32bit") as well.
    ... and perhaps 'gtk2-theme-oxygen' too.

  5. #5

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by deano_ferrari View Post
    ... and perhaps 'gtk2-theme-oxygen' too.
    Yes, or gtk3-theme-oxygen for a GTK3 application.

    But the error message was about the engine, so I'd rather suspect that to be missing.

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by wolfi323 View Post
    Yes, or gtk3-theme-oxygen for a GTK3 application.

    But the error message was about the engine, so I'd rather suspect that to be missing.
    Yep, got that. I just thought that if the engine was missing then maybe the theme package is missing too.

  7. #7

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by deano_ferrari View Post
    Yep, got that. I just thought that if the engine was missing then maybe the theme package is missing too.
    Yes, most definitely.

    I just had a look at the package dependencies:
    The theme package requires the engine package, but not the other way round.

    I.e. you can have the engine installed without having the theme installed. But if you remove the engine, the theme gets removed as well.
    And if you install the theme package, the engine package should get installed, too.

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by wolfi323 View Post
    Yes, most definitely.

    I just had a look at the package dependencies:
    The theme package requires the engine package, but not the other way round.

    I.e. you can have the engine installed without having the theme installed. But if you remove the engine, the theme gets removed as well.
    And if you install the theme package, the engine package should get installed, too.
    Yes, exactly.

  9. #9
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default Re: GTK problem 13.1x64?

    Quote Originally Posted by deano_ferrari View Post
    Yes, exactly.
    Thank you very much for the replies. I made sure everything was installed (oxygen GTK, GTK2, GTK3, 32 and 64, as well as the same for libcanberra***) before posting. I was thinking it might be a "modules" thing or a path thing, similar to LD_LIBRARY_PATH - but I'm really out of my depth here.

    Tried switching desktop/GTK themes:
    Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
    Gtk-WARNING **: Unable to locate theme engine in module_path: "industrial",
    aborting...
    Aborted
    patti@linux-l8th:~>

    OK, I had chosen GTK2 theme of "industrial", GTK3 theme of something else. So it's trying to load GTK2? Is there a way to test GTK itself?

  10. #10
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default Re: GTK problem 13.1x64?

    I'm not sure opensuse supports "modules" so well - they seem to be "sort of new" in opensuse - I don't ever remember seeing reference to them before 12.x... Is it possible that they are implemented somewhat nonstandardly in 13.x?

Page 1 of 2 12 LastLast

Posting Permissions

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