<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Jean,<br>
Thanks for your feedback. I'm finally getting back to this:<br>
1) My machine is a intel mac (MacBook) with OS X 10.5<br>
2) I had Qt4.4.3 installed<br>
3) I only recompiled the LCL, not the full lazarus, and to do so I used
the lazarus menu: Tools/Configure "Build Lazarus", selecting the 'Clean
all' and 'With packages' options. I supposed I should have passed
-dUSE_QT_44 in the Options edit box ?<br>
4) I stopped investigating with the latest snapshot and had to go back
to the latest stable release (0.9.26), because, other than Qt issues,
the package installation mechanism is broken, so I could not install
SqlDB, LazReport and other packages which are required for my
applications.<br>
5) 0.9.26 uses version 1.62 of qt4.pas which, according to you web
site, should work with Qt4.3. So I downloaded and installed the dmg for
Qt 4.3.4, and recompiled the LCL as indicated in 3) above. I still have
a linking error when trying to build any project using Qt (I now have 2
errors):<br>
Undefined symbols: <br>
"_initializePIntArray", referenced from: <br>
__QT4_init in qt4.o <br>
"_QFileDialog_filters", referenced from: <br>
_QTWIDGETS_TQTFILEDIALOG_$__GETFILTERS$QSTRINGLISTH in qtwidgets.o<br>
Any idea ?<br>
<br>
Den Jean wrote:
<blockquote cite="mid:200812192206.24029.Den.Jean@telenet.be"
type="cite">
<pre wrap="">On Friday 19 December 2008 08:22:44 Stephane Carre wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have Lazarus (Carbon, latest snapshot) installed on Mac OS X 10.5, and
managed to successfully recompile the LCL for Qt.
</pre>
</blockquote>
<pre wrap=""><!---->Which Qt?
--------------
Which Qt do you have installed ? Qt4.4.X or Qt4.3.X ?
When in doubt, remove Qt and install latest Qt 4.4.X
Corresponding Interface Binary:
------------------------------------------
The pascal to Qt interface (/Frameworks/Qt4Intf.framework/Qt4Intf)
can be downloaded from
<a class="moz-txt-link-freetext" href="http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html">http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html</a>
For Qt 4.4.X there is a binary available, for Qt 4.3.X you need to compile the
interface library yourself. Download the source and follow the instructions.
If these are not clear or incorrect, please report and it will be improved.
Compiling Lazarus:
-------------------------
see <a class="moz-txt-link-freetext" href="http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html">http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html</a>
Qt 4.4.X : with -dUSE_QT_44
make clean all LCL_PLATFORM=qt OPT="-dUSE_QT_44 -k'-framework' -k'Qt4Intf' -
k'-lobjc' -k'-framework' -k'Foundation'"
Qt 4.3: without -dUSE_QT_44
make clean all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-
framework' -k'Foundation'"
compile applications: You need set the same "linker" options passed
in the previous commandlines in the lazarus compile options dialogs.
Lazarus -> Project -> Compiler Options -> Linking page -> Options (-k):
-framework Qt4Intf -lobjc -framework Foundation
</pre>
<blockquote type="cite">
<pre wrap="">Undefined symbols:
"_QFileDialog_filters", referenced from:
_QTWIDGETS_TQTFILEDIALOG_$__GETFILTERS$QSTRINGLISTH in qtwidgets.o
ld: symbol(s) not found
An error occurred while linking
Error: Error while linking
</pre>
</blockquote>
<pre wrap=""><!---->
Means you compiled lazarus without define USE_QT_44 and that the symbol
(in this case the procedure QFileDialog_filters) was not resolved (not found
in any libraries on your system)
Please read
<a class="moz-txt-link-freetext" href="http://wiki.lazarus.freepascal.org/Qt_Interface_Mac">http://wiki.lazarus.freepascal.org/Qt_Interface_Mac</a>
and report or fix mistakes.
kind regards,
Den Jean
_______________________________________________
Qt mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qt@lazarus.freepascal.org">Qt@lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://www.lazarus.freepascal.org/mailman/listinfo/qt">http://www.lazarus.freepascal.org/mailman/listinfo/qt</a>
</pre>
</blockquote>
<br>
</body>
</html>