Home > linux > How to choose gtk version for Eclipse RCP application in linux?

How to choose gtk version for Eclipse RCP application in linux?

February 20Hits:1
Advertisement

I have an Eclipse RCP application which I want to run in Linux environment that has multiple gtks installed.

Is there a way to choose the gtk version against which I can run the application?

Linux flavour: openSUSE
Window Manager: iceWM
gtk+ versions installed: 1.2.10 & 2.2.1

Answers

It may be possible. You can check the shared libraries loaded by your program with the command ldd: for instance,

  # ldd /usr/sbin/openvpn
    linux-vdso.so.1 =>  (0x00007ffffb5fe000)
    liblzo2.so.2 => /lib/x86_64-linux-gnu/liblzo2.so.2 (0x00007fc3dc936000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc3dc719000)
    libpkcs11-helper.so.1 => /usr/lib/x86_64-linux-gnu/libpkcs11-helper.so.1 (0x00007fc3dc4ff000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fc3dc2a1000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fc3dbec5000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc3dbcc0000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc3db8f8000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc3dce22000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc3db6df000)

this shows all libraries invoked by openvpn. The libraries whose name ends in .so.N where N is a single digit (any single digit) are actually links to the real libraries. Take libz.so.1 as an example:

 [email protected]:/lib/x86_64-linux-gnu# find / -type f -name 'libz.so.1*' -print
 /lib/x86_64-linux-gnu/libz.so.1.2.8
 /lib/i386-linux-gnu/libz.so.1.2.8

 [email protected]:/lib/x86_64-linux-gnu# ls /lib/x86_64-linux-gnu/libz.so.*
 /lib/x86_64-linux-gnu/libz.so.1  /lib/x86_64-linux-gnu/libz.so.1.2.8

 [email protected]:/lib/x86_64-linux-gnu# file /lib/x86_64-linux-gnu/libz.so.*
 /lib/x86_64-linux-gnu/libz.so.1:     symbolic link to `libz.so.1.2.8'
 /lib/x86_64-linux-gnu/libz.so.1.2.8: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x42bce97e9a0f7a78fcdb3b79d11f67b02abc522c, stripped

The ldd command shows what the loaded library, libz.so.1 (btw, this is called the shared library's soname) resolves to, and the follwoing commands find the library, and show that the soname is actually a link to the shared library's real name.

You may hope to determine which shared library is loaded by altering this link.

There's a certain number of caveats to this, the most important of which is that, while you are generally safe in substituting different minor versions of the same major version (for instance, using libz.so.1.2.8 instead of libz.1.1.6) is fine, while substituting versions differing in their major number (the first number following so) is not possible. According to the tldp.org page,

Programs, when they internally list the shared libraries they need, should only list the soname they need.

This implies you will be unable to substitute two versions of the same shared library belonging to different major versions.

In any case, I suggest the above link for further clarification.

Tags:linux, eclipse, gtk

Related Articles

  • How to choose gtk version for Eclipse RCP application in linux?February 20

    I have an Eclipse RCP application which I want to run in Linux environment that has multiple gtks installed. Is there a way to choose the gtk version against which I can run the application? Linux flavour: openSUSE Window Manager: iceWM gtk+ versions

  • Unable to export Eclipse RCP application as a productJanuary 26

    I have an application which I want to export as a product. For that purpose I have create a product for my RCP application. While creating the product definition, I have chose the Application as EditorApp.application. Added EditorApp(My application)

  • Eclipse RCP Application cannot use -vm & -console together?January 19

    In my Java application .ini, I have specified a dedicated version of JVM to use. If launching by double clicking the .exe, the application will use the JVM specified in the .ini. However, if launching in command line with -console option, it won't us

  • ExitHandler in Eclipse RCP is not invoked when closing windowFebruary 7

    I have an Eclipse RCP Application (Version: Mars.1 Release (4.5.1)). I have an exit-command specifiied in my application.xmi. To this command I have suited handler: <handlers xmi:id="_6wlLfcgZEeSyMNYR5xypkQ" elementId="test.handler.quitC

  • Eclipse RCP is dependant on its configurations folder, but GIT won't commit all folders/files because they are empty or contain .dll-filesJanuary 27

    I'm currently in the last phase of a project and I have to put the IDE which I used to develop my Eclipse RCP application with into GIT, so that another developer can easily pull everything and start right away. The problem now is that Eclipse RCP is

  • Hibernate 5 + Eclipse RCP + SQLite 3 - Unable to resolve name as strategy org.hibernate.dialect.DialectFebruary 1

    I have Eclipse RCP Application. JARs with hibernate are in another plugin which is included to main project in MANIFEST.MF. I try to establish simple connection Hibernate -> SQLite DB using code: try { Configuration lConf = new Configuration(); lConf

  • Change the Part selection in RCP Application when Button click in different Part

    Change the Part selection in RCP Application when Button click in different PartFebruary 8

    In Eclipse RCP Application UI design of my project will be as below: PartSashContainer->PartStack->Part1, Part2,Part3.,Part4,Part5 | ->PartStack->Part6 Part6 contains the button. If button click in Part6 should set the selection to Part1. Can

  • Cocoa vs Carbon versions of EclipseAugust 29

    Can someone tell me what's the difference between Cocoa and Carbon? I want to download Eclipse but I don't know which one to pick, I have option to choose Cocoa or Carbon. --------------Solutions------------- Cocoa supports features like spell checki

  • Version of Eclipse for Android DevelopmentJanuary 31

    I'm having trouble choosing version of Eclipse for Android development. I downloaded Eclipse Mars 1, and it does not show ANDROID NEW so I have to know now what I download. I have read a few sites online and they said that you go to File > new > Pro

  • What is the difference between the Client and GTK versions of emacs?

    What is the difference between the Client and GTK versions of emacs?December 27

    My Ubuntu 10.04 desktop has three versions of emacs: emacs-snapshot (client) emacs-snapshot (GTK) GNU Emacs 23 I mostly use emacs-snapshot, but I also use regular emacs in terminal mode emacs -nw. However, it is not clear to me what the difference is

  • How to know my GTK version?November 11

    I want to know my GTK version (i am working on Ubuntu 11.10) using a command line or any thing --------------Solutions------------- apt-cache policy libgtk2.0-0 libgtk-3-0 (optionally pipe to grep Installed) or dpkg -l libgtk2.0-0 libgtk-3-0 Try this

  • Apache chooses wrong version of installed SubversionDecember 7

    I have a Debian Squeeze server with Apache2 and Subversion on-board. The Subversion version is 1.6.12 (r955767). It is from debian repos. But recently I installed Subversion v1.7.7 from sources into /usr/local/ and now in console I see [email protected]:~# s

  • Where can I find out if I have the 32-bit or 64-bit version of Eclipse?April 30

    Where can I find out if I have the 32-bit or 64-bit version of Eclipse? --------------Solutions------------- In Eclipse, go to Help -> About Eclipse -> Installation Details Click on 'Configuration' tab: Scroll down and look for osgi.arch in in textb

  • How to install most recent version of Eclipse via the TerminalJune 19

    I'm new to Linux and have just been given a VM of Oracle Linux to work with. I need to install Eclipse on it and, after a bit of research, discovered that this could most easily be done with the following command in the Terminal: sudo yum install ecl

  • Howto hide help content in an eclipse RCP

    Howto hide help content in an eclipse RCPNovember 26

    I my eclipse based RCP Application I want to hide unwanted help contents. The help content is added via the org.eclipse.help.toc extension point from other plug-ins. <extension point="org.eclipse.help.toc"> <toc file="help/toc.xml&

  • Debian - newest version of EclipseMarch 23

    I use Debian Jessie (testing) and I have Eclipse 3.8. Newest version of Eclipse is 4.4. In Debian Sid (unstable) I have still Eclipse 3.8. How can I install newest version of Eclipse on this museum of software? ;) --------------Solutions-------------

  • How to find GTK+ version used by a given applicationApril 7

    This answer http://askubuntu.com/a/192138/112794 to the post How to change color AND width of non overlay scrollbars in Ubuntu 12.04 says that on a single machine we can install two versions of gkt+. The command output dpkg -l libgtk2.0-0 libgtk-3-0

  • How do I get gtk version 3.13.7 or above in 14.04?September 25

    The question is simple enough. There is an ugly bug in Ubuntu 14.04 LTS which switches the font hinting to grayscale if text requires a scrollbar. It is reported here. The reports says a fix is released since gtk version 3.13.7. The problem is we, Ub

  • Eclipse RCP 4 draggable Toolbar

    Eclipse RCP 4 draggable ToolbarJanuary 18

    Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality? Starting with a fresh installation of Eclipse for RCP 4.5.1, I created a pure e4 application with sample cont

  • Add tabitem to search dialogue of Eclipse RCP January 22

    I am a newcomer. I am creating an Eclipse plugin project and want to add a new tab item to the existing search dialogue (that pops up when you press Ctrl+H) of Eclipse RCP. Please help me achieve it with some sample code. --------------Solutions-----

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.607 s.