[Qt] How to compile qt bindings

Johan Kotze jkotze at novell.com
Thu Dec 1 17:42:25 CET 2011


Finally. A clean install of openSuSE 12.1 (64bit) works. Now I need to figure out why my openSuSE 11.4 (64 bit) does not work - or maybe I'll just update to 12.1 ;-) 

Thanx everyone who helped - at least I now know that it works on openSuSe 12.1. 

Johan

>>> On 12/01/2011 at 18:27, in message <201112011727.09807.Den.Jean at telenet.be>, Den Jean <Den.Jean at telenet.be> wrote:


On Thursday 01 December 2011 15:08:02 Johan Kotze wrote:
>       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:

Your first attempt was on 64bit, there the compiled libs should
have been copied to /usr/lib64/ using sudo make install

On this 32bit virtual machine it should be /usr/lib/

e.g.

$ ls -l /usr/lib/libQt4P*
lrwxrwxrwx 1 root root       18 Nov 22 19:49 /usr/lib/libQt4Pas.so -> libQt4Pas.so.5.2.4
lrwxrwxrwx 1 root root       18 Nov 22 19:49 /usr/lib/libQt4Pas.so.5 -> libQt4Pas.so.5.2.4
lrwxrwxrwx 1 root root       18 Nov 22 19:49 /usr/lib/libQt4Pas.so.5.2 -> libQt4Pas.so.5.2.4
-rwxr-xr-x 1 root root 26049659 Nov 22 19:47 /usr/lib/libQt4Pas.so.5.2.4


If this does not help, can you give all the errors. Because if all the
errors are about X11 functions, perhaps the compilation process
went wrong and the X11 functions were not included.

Was the output of qmake similar to this:
$ qmake-qt4
Project MESSAGE: Added -mstackrealign to CXXFLAGS in support of SSE on arch: i686
Project MESSAGE: Note: This binding version was generated for Qt 4.5.3. Current Qt is 4.7.4
Project MESSAGE: Qt documents binary compatibility in each Version Change Note: http://qt.nokia.com/developer/changes
Project MESSAGE: Pascal Qt Interface for binding platform: BINUX
Project MESSAGE: Install location: /usr/lib

Especially note *platform BINUX* => this ensures X11 functions are included.

regards,

Den Jean

_______________________________________________
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/ae96fe11/attachment-0002.html>


More information about the Qt mailing list