ryanmelt / qtbindings

An easy to install gem version of the Ruby bindings to Qt
http://github.com/ryanmelt/qtbindings
Other
340 stars 63 forks source link

incompatible library version #154

Closed paradoxon82 closed 6 years ago

paradoxon82 commented 6 years ago

Hi,

I successfully installed the qtbindings gem version 4.8.6.2 I linked it agains some Qt version 4.8.6.x Now, I get the following error on "require 'Qt'"

incompatible library version

Is this due to having not linked against the correct Qt library version. Or is it another reason?

paradoxon82 commented 6 years ago

Additional info: OS: centos6 ruby: 2.5 compiled myself

ghost commented 6 years ago

You should use the latest gem (4.8.6.4). Ruby must be compiled/configured with --enable-shared or it will not work with qtbindings (this is probably your problem). We have not done any testing yet with Ruby 2.5, but that is probably not the problem on linux.

paradoxon82 commented 6 years ago

thanks, --enable-shared fixed the issue