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

Build failing in macOS 10.13 #150

Closed glenfarclas17 closed 6 years ago

glenfarclas17 commented 6 years ago

Hi All,

My first attempts at building qtbindings 4.8.6.3 in macOS 10.13 failed with the error ordered comparison between pointer and zero ('void *' and 'int') at line 2211 of ext/ruby/qtruby/src/qtruby.cpp

Not being a C++ programmer, I searched around the web a bit and ended up changing that line from: return (ptr > 0 ? Qtrue : Qfalse); to: return (ptr > (void*)0 ? Qtrue : Qfalse); which seems to have fixed the issue, the build succeeded and my apps seem to work fine so far.

Cheers, -Chris

silver926z commented 6 years ago

Hi,

I failed with the error same as you After I change ext/ruby/qtruby/src/qtruby.cpp file and run gem install qtbindings, it continued fail with same issue and my file seems back to return (ptr > 0 ? Qtrue : Qfalse);

Is there a way gem install using the qtruby.cpp I changed ?

thanks.

silver926z commented 6 years ago

Sorry, I am new to ruby

I download gem file -> gem unpack -> edit -> gem build and it works fine

Thanks

ghost commented 6 years ago

Fixed with qtbindings 4.8.6.4