Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-12

How to compile qt bindings

21 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Johan Kotze

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:

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.

Reply by email

zeljko
to Johan Kotze
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

Show quoted text 53 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/2050c1e6/attachment.html>

Reply by email

Johan Kotze
to zeljko

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 , zeljko wrote:
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

Show quoted text 53 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/qt

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

Reply by email

zeljko
to Johan Kotze
Johan Kotze wrote 5 lines
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

Yes, that's probably true, but keep in mind that your gcc version is important too.

detailed instructions on how to build the library.

Afaik detailed instructions are in .txt file when you decompress source of bindings. You need source of qt libs (maybe qt-devel is sufficient but I'm not sure).

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/5b6857d8/attachment.html>

Reply by email

Johan Kotze
to zeljko

Zeljko

There are some really terse instructions in the README.txt file that is included in the source, but as I said in my original post, the instructions do not work. Below is the instructions:

Compile Pascal Qt Interface from source:
========================================
* Download and unpack the sources
* cd into the soures directory
* run qmake -query to inspect your Qt installation
* qmake (creates Makefile)
* make (compiles)
* make install (obtain super user rights with sudo or su)
* make clean (cleans directory, do this when switching Qt versions)

I am stuck at the qmake (creates Makefile) part as qmake does not do anything. It just displays the usage screen. I assume you need to give it some kind of parameters, but I don't know what.

Johan

>> On 12/01/2011 at 13:28, in message , zeljko wrote:
Johan Kotze wrote 5 lines
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

Yes, that's probably true, but keep in mind that your gcc version is important too.

detailed instructions on how to build the library.

Afaik detailed instructions are in .txt file when you decompress source of bindings. You need source of qt libs (maybe qt-devel is sufficient but I'm not sure).

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/f1873344/attachment-0001.html>

Reply by email

zeljko
to Johan Kotze
Johan Kotze wrote 5 lines
Zeljko There are some really terse instructions in the README.txt file that is included in the source, but as I said in my original post, the instructions do not work. Below is the instructions:

Have you installed qt-devel packages ?

I've just tried to make exactly as it is in README.txt and it works (Fedora 14 32bit and Fedora 16 64bit). you need qt-devel and qtwebkit-devel (or whatever name it is under suse) ... package which contains header files of qt (usually installed in /usr/include).
This is how I've installed those 2 packages on FC16 64bit (which automagically installed also it's dependencies).
yum install qt-devel.x86_64 qtwebkit-devel.x86_64

Also, one note: Fedora 16 distributes qt-4.8 , not stable qt-4.7.4, but it works fine.

[linda at houston qt4pas-V2.4_Qt4.5.3]$ qmake-qt4 -query QT_INSTALL_PREFIX:/usr/lib/qt4
QT_INSTALL_DATA:/usr/lib/qt4
QT_INSTALL_DOCS:/usr/share/doc/qt4
QT_INSTALL_HEADERS:/usr/include
QT_INSTALL_LIBS:/usr/lib
QT_INSTALL_BINS:/usr/lib/qt4/bin
QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations QT_INSTALL_CONFIGURATION:/etc
QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
QT_INSTALL_DEMOS:/usr/lib/qt4/demos
QMAKE_MKSPECS:/usr/lib/qt4/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.4
[linda at houston qt4pas-V2.4_Qt4.5.3]$ 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
[linda at houston qt4pas-V2.4_Qt4.5.3]$ make
g++ -c -pipe -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 - fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom - fasynchronous-unwind-tables -w -D_REENTRANT -fPIC -DBINUX -DQT_NO_DEBUG - DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB - I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore - I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit - I/usr/include -Itmp -o tmp/qt4pas.o src/qt4pas.cpp /usr/lib/qt4/bin/moc -DBINUX -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB - DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. - I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui - I/usr/include/QtWebKit -I/usr/include -Itmp src/qobject_hook.h -o tmp/moc_qobject_hook.cpp
g++ -c -pipe -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 - fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom - fasynchronous-unwind-tables -w -D_REENTRANT -fPIC -DBINUX -DQT_NO_DEBUG - DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB - I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore - I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit - I/usr/include -Itmp -o tmp/moc_qobject_hook.o tmp/moc_qobject_hook.cpp .....etc etc ... bindings builded fine.

Show quoted text 18 lines
Compile Pascal Qt Interface from source: ======================================== * Download and unpack the sources * cd into the soures directory * run qmake -query to inspect your Qt installation * qmake (creates Makefile) * make (compiles) * make install (obtain super user rights with sudo or su) * make clean (cleans directory, do this when switching Qt versions) I am stuck at the qmake (creates Makefile) part as qmake does not do anything. It just displays the usage screen. I assume you need to give it some kind of parameters, but I don't know what. Johan >>> On 12/01/2011 at 13:28, in message
zeljko wrote 19 lines
On Thursday 01 of December 2011 12:02:38 Johan Kotze wrote: > 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 Yes, that's probably true, but keep in mind that your gcc version is important too. > detailed instructions on how to build the library. Afaik detailed instructions are in .txt file when you decompress source of bindings. You need source of qt libs (maybe qt-devel is sufficient but I'm not sure). zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/be343039/attachment.html>

Reply by email

Johan Kotze
to zeljko

Zeljko

It seems to be an openSuSE issue then. I don't have qmake-qt4, just qmake 2.1. It does not seem to work. I'll ask on the openSuSE forums.

Thanx for you help.

Johan

>> On 12/01/2011 at 14:14, in message , zeljko wrote:
Johan Kotze wrote 5 lines
Zeljko There are some really terse instructions in the README.txt file that is included in the source, but as I said in my original post, the instructions do not work. Below is the instructions:

Have you installed qt-devel packages ?

I've just tried to make exactly as it is in README.txt and it works (Fedora 14 32bit and Fedora 16 64bit). you need qt-devel and qtwebkit-devel (or whatever name it is under suse) ... package which contains header files of qt (usually installed in /usr/include). This is how I've installed those 2 packages on FC16 64bit (which automagically installed also it's dependencies). yum install qt-devel.x86_64 qtwebkit-devel.x86_64

Also, one note: Fedora 16 distributes qt-4.8 , not stable qt-4.7.4, but it works fine.

[linda at houston qt4pas-V2.4_Qt4.5.3]$ qmake-qt4 -query QT_INSTALL_PREFIX:/usr/lib/qt4
QT_INSTALL_DATA:/usr/lib/qt4
QT_INSTALL_DOCS:/usr/share/doc/qt4
QT_INSTALL_HEADERS:/usr/include
QT_INSTALL_LIBS:/usr/lib
QT_INSTALL_BINS:/usr/lib/qt4/bin
QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations QT_INSTALL_CONFIGURATION:/etc
QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
QT_INSTALL_DEMOS:/usr/lib/qt4/demos
QMAKE_MKSPECS:/usr/lib/qt4/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.4
[linda at houston qt4pas-V2.4_Qt4.5.3]$ 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
[linda at houston qt4pas-V2.4_Qt4.5.3]$ make
g++ -c -pipe -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -w -D_REENTRANT -fPIC -DBINUX -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit -I/usr/include -Itmp -o tmp/qt4pas.o src/qt4pas.cpp /usr/lib/qt4/bin/moc -DBINUX -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit -I/usr/include -Itmp src/qobject_hook.h -o tmp/moc_qobject_hook.cpp g++ -c -pipe -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -w -D_REENTRANT -fPIC -DBINUX -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtWebKit -I/usr/include -Itmp -o tmp/moc_qobject_hook.o tmp/moc_qobject_hook.cpp .....etc etc ... bindings builded fine.

Show quoted text 37 lines
Compile Pascal Qt Interface from source: ======================================== * Download and unpack the sources * cd into the soures directory * run qmake -query to inspect your Qt installation * qmake (creates Makefile) * make (compiles) * make install (obtain super user rights with sudo or su) * make clean (cleans directory, do this when switching Qt versions) I am stuck at the qmake (creates Makefile) part as qmake does not do anything. It just displays the usage screen. I assume you need to give it some kind of parameters, but I don't know what. Johan >>> On 12/01/2011 at 13:28, in message , zeljko wrote: On Thursday 01 of December 2011 12:02:38 Johan Kotze wrote: > 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 Yes, that's probably true, but keep in mind that your gcc version is important too. > detailed instructions on how to build the library. Afaik detailed instructions are in .txt file when you decompress source of bindings. You need source of qt libs (maybe qt-devel is sufficient but I'm not sure). zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/4085d0e9/attachment-0001.html>

Reply by email

Johan Kotze
to zeljko

What does qmake-qt4 -v output on your system ?

>> On 12/01/2011 at 14:31, in message , zeljko wrote:
Johan Kotze wrote
Zeljko It seems to be an openSuSE issue then. I don't have qmake-qt4, just qmake 2.1. It does not seem to work. I'll ask on the openSuSE forums.

qmake-qt4 can be fedora naming of qmake.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/7760aea6/attachment.html>

Reply by email

Den Jean
to Johan Kotze: I am trying to run the Lazarus IDE in with the qt widget set as I am using openSuSE 11.4…
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.freepascal.org/pipermail/qt/attachments/20111201/5ccd2e55/attachment.html>

Reply by email

Johan Kotze
to Den Jean

Ah, the missing piece of the puzzle. It is building now.

Thank you.

>> On 12/01/2011 at 14:57, in message , Den Jean wrote:
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.freepascal.org/pipermail/qt/attachments/20111201/fc1724fe/attachment-0001.html>

Reply by email

zeljko
to Juha Manninen
Juha Manninen wrote
See also the thread "Qt4 Binding V2.4 does not work on main Linux distros" on this same mailing list. The problem was KDE's Oxygen theme.

On main linux distros ? hm...afaik, only Suse have problems because of non updated KDE.
Oxygen crashed because of oxygen bug and that was fixed some time ago. Fedora 13,14,15,16 32/64bit works fine.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/c7be54af/attachment.html>

Reply by email

Johan Kotze
to Juha Manninen: See also the thread "Qt4 Binding V2.4 does not work on main Linux distros" on this same…

I did see that. I am using the plastique theme.

>> On 12/01/2011 at 15:27, in message , Juha Manninen wrote:

See also the thread "Qt4 Binding V2.4 does not work on main Linux distros"

on this same mailing list.

The problem was KDE's Oxygen theme.

Juha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111201/3764ad6b/attachment.html>

Reply by email

Johan Kotze
to Den Jean: When you unpack qt4pas-V2.4_Qt4.5.3.tar.gz you get a directory qt4pas-V2.4_Qt4.5.3. The…

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 , Den Jean wrote:
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.freepascal.org/pipermail/qt/attachments/20111201/3d3d33eb/attachment.html>

Reply by email

zeljko
to Johan Kotze: Unfortunately the problem persists. The build of libQt4Pas went through and I did see the…
Johan Kotze wrote 11 lines
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:

Have you copied libQt4Pas into /usr/lib and added proper symlinks ? Lazarus don't see libQt4Pas (it's not in library path) , so that's why such messages are raised.

zeljko

Show quoted text 31 lines
/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

, Den Jean

Show quoted text 36 lines
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.freepascal.org/pipermail/qt/attachments/20111201/ca0e50fd/attachment.html>

Reply by email

Den Jean
to Johan Kotze: Unfortunately the problem persists. The build of libQt4Pas went through and I did see the…
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

Reply by email

Johan Kotze
to Den Jean

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 , Den Jean wrote:
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

Reply by email