Closed glenfarclas17 closed 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.
Sorry, I am new to ruby
I download gem file -> gem unpack
-> edit -> gem build
and it works fine
Thanks
Fixed with qtbindings 4.8.6.4
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.cppNot 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