[Qt] How to compile qt bindings

Johan Kotze jkotze at novell.com
Thu Dec 1 12:02:38 CET 2011


Zeljko 

I have downloaded the binaries from Den's page and tried both v2.4 and v2.1 and both crash with the same error. So I am hoping that a locally compiled version will fix the issue. I am running QT 4.7. I am looking for more detailed instructions on how to build the library. 

Johan

>>> On 12/01/2011 at 12:56, in message <201112011156.23880.zeljko at holobit.net>, zeljko <zeljko at holobit.net> wrote:


On Thursday 01 of December 2011 11:17:17 Johan Kotze wrote: 
> I am trying to run the Lazarus IDE in with the qt widget set as I am using 
> openSuSE 11.4 (64bit) with KDE. I successfully compiled Lazarus for QT, 
> but when I start it, it crashes with the following error: 


Why do you want to compile your own bindings ? 
I'm using binary one from Den's page (v.2.4) and it works perfect on fresh install of Fedora 16 64bit + Qt-4.8. 
Also for bindings build you need qt sources afaik. 




zeljko 


> 
> TLazarusManager.Run starting /home/jkotze/.lazarus/bin/lazarus ... 
> TMainIDE.ParseCmdLineOptions: 
> PrimaryConfigPath="/home/jkotze/.lazarus" 
> SecondaryConfigPath="/etc/lazarus" 
> TMainIDE.DoOpenProjectFile Form2:TForm2 TDesigner 
> QPainter::end: Painter ended with 4 saved states 
> TApplication.HandleException Access violation 
> Stack trace: 
> $00007F189EB2F070 
> QWidget::repaint: Recursive repaint detected 
> QPainter::end: Painter ended with 4 saved states 
> TApplication.HandleException: there was another exception during showing 
> the first exception Stack trace: 
> $00007F189EB2F070 
> [TMainIDE.Destroy] A 
> [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE 
> [TMainIDE.Destroy] END 
> 
> Some research have shown that this is most likely due to the libQt4pas not 
> compiled with the -mstackrealign option. I am trying to compile libQt4pas, 
> but the instructions are a bit on the skimpy side and I don't know what to 
> do. 
> 
> I have downloaded the source and ran qmake - query in the /src directory. 
> That produced the following: 
> 
> QT_INSTALL_PREFIX:/usr 
> QT_INSTALL_DATA:/usr/share/qt4/ 
> QT_INSTALL_DOCS:/usr/share/doc/packages/libqt4 
> QT_INSTALL_HEADERS:/usr/include 
> QT_INSTALL_LIBS:/usr/lib64 
> QT_INSTALL_BINS:/usr/bin 
> QT_INSTALL_PLUGINS:/usr/lib64/qt4/plugins 
> QT_INSTALL_IMPORTS:/usr/lib64/qt4/plugins/imports 
> QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations 
> QT_INSTALL_CONFIGURATION:/etc/settings 
> QT_INSTALL_EXAMPLES:/usr/lib64/qt4/examples 
> QT_INSTALL_DEMOS:/usr/lib64/qt4/demos 
> QMAKE_MKSPECS:/usr/share/qt4//mkspecs 
> QMAKE_VERSION:2.01a 
> QT_VERSION:4.7.1 
> 
> If I then run just qmake it displays the help messages and make says there 
> is no target. Somewhere there is a piece of the puzzle missing. Any help 
> will be appreciated. 
> 
> 
> 
> _______________________________________________ 
> Qt mailing list 
> Qt at lists.lazarus.freepascal.org 
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20111201/18561e54/attachment-0002.html>


More information about the Qt mailing list