Hello,
Does the mac binary installer contain both Qt4intf and also Qt4?
Do you think I would be able to use the 4.4 installer with software compiled using the 4.3 bindings?
thanks,

Mailing lists / qt / 2008-11
13 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
Does the mac binary installer contain both Qt4intf and also Qt4?
Do you think I would be able to use the 4.4 installer with software compiled using the 4.3 bindings?
thanks,
Felipe Monteiro de Carvalho wroteDoes the mac binary installer contain both Qt4intf and also Qt4?
no only Qt4Intf, therefore much smaller. I should not package binary libs of someone else. The trolls have a nice Qt4 package. I made sure that Qt4Intf knows where QtCore/QtGui are.
Do you think I would be able to use the 4.4 installer with software compiled using the 4.3 bindings?
No. But it so easy now to create the framework, why don't you use the script. You do not have to compile Qt anymore.
To create a package, just drop the Qt4Intf framework dir on a new package of the package maker, check the include root option, apply recommendations and click build.
Den Jean wroteno only Qt4Intf, therefore much smaller. I should not package binary libs of someone else. The trolls have a nice Qt4 package. I made sure that Qt4Intf knows where QtCore/QtGui are.
Yes, but it seams to look for QtCore/QtGui in /usr/lib, but the Trolltech installer puts them in /Library/Frameworks
Here is the result of trying to compile a Qt app:
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for i386
Compiling simpleform.lpr
Compiling mainform.pas
mainform.pas(20,29) Hint: Parameter "Sender" not used mainform.pas(21,26) Hint: Parameter "Sender" not used Assembling mainform
Assembling simpleform
Linking simpleform
/usr/bin/ld: warning can't open dynamic library:
/usr/lib/QtCore.framework/Versions/4/QtCore referenced from: /Library/Frameworks/Qt4Intf.framework/Qt4Intf (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: warning can't open dynamic library:
/usr/lib/QtGui.framework/Versions/4/QtGui referenced from: /Library/Frameworks/Qt4Intf.framework/Qt4Intf (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: Undefined symbols:
__Z11qt_assert_xPKcS0_S0_i referenced from Qt4Intf expected to be defined in /usr/lib/QtCore.framework/Versions/4/QtCore __Z13qDrawWinPanelP8QPainterRK5QRectRK8QPalettebPK6QBrush referenced from Qt4Intf expected to be defined in
/usr/lib/QtGui.framework/Versions/4/QtGui
.......
__ZThn8_NK7QWidget6metricEN12QPaintDevice17PaintDeviceMetricE referenced from Qt4Intf expected to be defined in
/usr/lib/QtGui.framework/Versions/4/QtGui
__ZThn8_NK7QWidget7devTypeEv referenced from Qt4Intf expected to be defined in /usr/lib/QtGui.framework/Versions/4/QtGui An error occurred while linking
Error: Error while linking
Hello,
Building the Qt 4.3 framework fails. I have a intel mac with Mac OS X 10.4 and standard compiled from the DVDs:
computador-de-felipe-monteiro-de-carvalho:~/Programas/qt4pas-V1.68_Qt4.3.4 felipe$ sudo ./compile_lib_mac.sh
executing:g++ -mmacosx-version-min=10.4 -D DARWIN -I. -I/Library/Frameworks/QtCore.framework/Headers
-I/Library/Frameworks/QtGui.framework/Headers
/Library/Frameworks/QtCore.framework/QtCore
/Library/Frameworks/QtGui.framework/QtGui qtpas.cpp -o Qt4Intf -fPIC -dynamiclib -Xlinker -install_name -Xlinker Qt4Intf.framework/Qt4Intf lib/qstring.cppb: In function 'void QString_inline_append(QString__*, void*, short unsigned int*)':
lib/qstring.cppb:1076: error: 'class QString' has no member named 'inline_append'
otool: can't open file: Qt4Intf (No such file or directory)
Qt 4.4 builds correctly.
Ok, I updated to Qt 4.4.3 , added -framework QtCore -framework QtGui to build my software but I still can't get it to link!
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Darwin for i386
Compiling simpleform.lpr
Compiling mainform.pas
mainform.pas(20,29) Hint: Parameter "Sender" not used mainform.pas(21,26) Hint: Parameter "Sender" not used Assembling mainform
Assembling simpleform
Linking simpleform
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used
/usr/bin/ld: Undefined symbols:
_QFileDialog_filters
symbol __Z6qDebugv used from dynamic library
/Library/Frameworks/QtCore.framework/QtCore(single module) not from earlier dynamic library QtGui.framework/Versions/4/QtGui(single module)
symbol __ZTS17QFactoryInterface used from dynamic library /Library/Frameworks/QtCore.framework/QtCore(single module) not from earlier dynamic library QtGui.framework/Versions/4/QtGui(single module)
symbol __ZTS25QAbstractItemModelPrivate used from dynamic library /Library/Frameworks/QtCore.framework/QtCore(single module) not from earlier dynamic library QtGui.framework/Versions/4/QtGui(single module)
An error occurred while linking
Error: Error while linking
Building the Qt 4.3 framework fails. I have a intel mac with Mac OS X 10.4 and standard…
Building the Qt 4.3 framework fails. I have a intel mac with Mac OS X 10.4 and standard compiled from the DVDs:
I do not know why it fails on your computer. I installed Qt 4.3 (w/o removing Qt 4.4, the installer removed it) and followed the instructions from V1.68: with this result: Qt 4.3 freepasca:-)
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/demo_qt434.png
I do not know why it fails on your computer. I installed Qt 4.3 (w/o removing Qt 4.4, the installer removed it) and followed the instructions from V1.68: with this result: Qt 4.3 freepasca:-)
with my splint finger, I accidentally pushed the Send Button. So, can you please remove and cleanly install
* latest xcode
* latest fpc : make sure you have a clean /etc/fpc.cfg
* remove from /Library/Receipts all Qt4Intf*
* Qt 4.4 or 4.3 from dmg (not from source/make install)
* Note: you did not have to sudo the "compile lib script", only sudo the "create framework script".
If this solves it, it was a PC configuration, else ... ?!
I tried Qt 4.4 and Qt 4.3 and both just work with their respective (!) V1.68
regards,
Den Jean
Ok, I found the problem!!! wow, this one took a lot of time =)
I didn't define USE_QT_44 when building the LCL! Now it links correctly ...
thanks,
An embedded and charset-unspecified text was scrubbed... Name: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20081209/21cbd09d/attachment.ksh>
Yes, as soon as we go with qt-44 as default :)
zeljko wroteYes, as soon as we go with qt-44 as default :)
If you want to upgrade to qt-44 as default (or even drop 4.3) it's ok for me.
The latest Mandriva comes with Qt 4.4.
But I think we should draw a line somewhere and don't just upgrade when Qt 4.5 comes, otherwise we will never support anything except the very latest linux distributions.
4.5 is the top of 4.X series and we have to go in that direction (devel) when it comes out.
Most important reason to go to 4.5 is pen modes which are implemented in 4.5 , but not in earlier versions, many bugs (especially boundsRect() on all platforms) are fixed etc... 0.9.28 should be 4.4 by default. So, it's cost of development.There will be define USE_QT_45 when it comes out (post 0.9.28), but I'm sure that it will not make troubles like transition 4.3->4.4, since bindings will not be changed so much, except for painter composition enums, and QPainter addon funcions like fillRect().