qt - How use a patch that fixed a bug -


i'm getting crazy bad memory access in qt program when i'm using qglwidget::rendertext function. program super simple, i'm 1 pointer, crash doesn't seem relate because debugger stops when call rendertext, when close programs. i'm not experienced c++ programmer , getting me crazy.

but i've found bug report. seems recent (updated: 25/apr/13 8:47 am) , due fact don't know bad memory access think worths give try.

the solution patch posted here don't know do.. have recompile qt 4.8? opengl part? can avoid recompile everything?

go directory compiled qt , change file qt/src/opengl/qpaintengine_opengl.cpp. make changes author made, or download author's file , replace in source directory. change directory main qt directory , run make. sure not re-run ./configure before make or rebuild whole thing.

after make has finished, run sudo make install , put newly compiled qpaintengine module install directory. unfortunately, don't know if work if have number of configurations (like static libraries), it's worth try.

i have done modules in qtmobility hundreds of times. have remember have frankenstein's monster version of qt now, , when upgrade remember re-patch if change not committed newest build.

hope helps.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -