[Qt] How to compile qt bindings

Johan Kotze jkotze at novell.com
Thu Dec 1 15:08:02 CET 2011


Unfortunately the problem persists. The build of libQt4Pas went through and I did see the -mstackrealign option during the build, so I am pretty sure the build is correct. When I rebuild Lazarus with qt I still get the error. 

I checked out the current snapshot via svn, but that also crashes with the same error. 

I then built a 32bit openSuSE 21.1 virtual machine and installed fpc and lazarus on that machine. I built libQt4Pas 2.4 and when I try to build Lazarus for qt it gives me the following errors: 

/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(10,44) Error: Identifier not found "QX11Info_isCompositingManagerRunning" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(16,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(42,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(45,34) Error: Identifier not found "QX11Info_appScreen" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(93,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(98,34) Error: Identifier not found "QX11Info_appScreen" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(127,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(132,34) Error: Identifier not found "QX11Info_appScreen" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(170,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(175,34) Error: Identifier not found "QX11Info_appScreen" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(229,30) Error: Identifier not found "QX11Info_display" 
/home/jkotze/lazarus/lcl/interfaces/qt/qtx11.inc(233,34) Error: Identifier not found "QX11Info_appScreen" 

What now ? 

Johan 


>>> On 12/01/2011 at 14:57, in message <201112011357.24682.Den.Jean at telenet.be>, Den Jean <Den.Jean at telenet.be> wrote:


On Thursday 01 December 2011 11:17:17 Johan Kotze wrote: 
> I have downloaded the source and ran qmake - query in the /src directory. 
> That produced the following: 


When you unpack qt4pas-V2.4_Qt4.5.3.tar.gz you get 
a directory qt4pas-V2.4_Qt4.5.3. The instructions say 


* Download and unpack the sources 
* cd into the soures directory 
* run qmake -query to inspect your Qt installation 
* qmake (creates Makefile) 


The sources dir is qt4pas-V2.4_Qt4.5.3 and not qt4pas-V2.4_Qt4.5.3/src 


The qmake program of Qt4 looks for a file *.pro (Project file). 
Here is the contents of qt4pas-V2.4_Qt4.5.3 


$ls 
COPYING.TXT Makefile qt4.pas Qt4Pas.pro README.TXT src/ tmp/ 


Just run qmake there (and then make ...) 


The instruction were not meant to be terse, it is funny how 
things can be unexpectedly misleading (sources dir vs. src/). 


regards, 


Den Jean 







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


More information about the Qt mailing list