Sign in Join

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

Mailing lists / qt / 2009-12

Problem with linking on Mac

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

zeljko

Hi all,
I've decided to upgrade Qt & bindings on my mac and now get problems with linker.
1.Installed Qt-4.5.2 (first qt-4.5.3 and then reverted to 4.5.2 but it doesn't matter)
2.Installed bin 1.72

Now I must add each Qt lib as framework otherwise symbols wan't resolve. eg.
make all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'lobjc' now must be
make all LCL_PLATFORM=qt
OPT="-k'-framework' -k'Qt4Intf' -k'lobjc' -k'-framework' -k'QtCore' -k'-framework' -k'QtGui' etc etc ..

Any hints ?

Hess, Philip J
to zeljko

Zeljko,

Yes, I think something changed. According to the date-time stamp on my script, it appears that in early Sept. I had to change it so it compiled Orpheus test apps like this:

/usr/local/bin/fpc -dLCL -dLCLqt -WG -Sd -gl -O1 -Cirot -k'-framework qtcore' -k'-framework qtgui' -k'-framework qtnetwork' -k'-framework qtwebkit' -k'-framework phonon' -k'-framework qtdbus' -k'-framework qtxml' -k'-framework qt4intf' -Fu$lclunits -Fu$lclunits/qt -Fu../units/$platform ../tests/TestFlexEdit/project1.dpr

I can't recall why I'm not using lazbuild like I do with other widgetsets, but maybe this has something to do with it.

Thanks.

-Phil

________________________________________

Earlier message 22 lines
From: zeljko [] Sent: Wednesday, December 02, 2009 1:43 PM To: Items specific to the Qt widget set Subject: [Qt] Problem with linking on Mac Hi all, I've decided to upgrade Qt & bindings on my mac and now get problems with linker. 1.Installed Qt-4.5.2 (first qt-4.5.3 and then reverted to 4.5.2 but it doesn't matter) 2.Installed bin 1.72 Now I must add each Qt lib as framework otherwise symbols wan't resolve. eg. make all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'lobjc' now must be make all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'lobjc' -k'-framework' -k'QtCore' -k'-framework' -k'QtGui' etc etc .. Any hints ?
zeljko
to Hess, Philip J
Philip J wrote 14 lines
Zeljko, Yes, I think something changed. According to the date-time stamp on my script, it appears that in early Sept. I had to change it so it compiled Orpheus test apps like this: /usr/local/bin/fpc -dLCL -dLCLqt -WG -Sd -gl -O1 -Cirot -k'-framework qtcore' -k'-framework qtgui' -k'-framework qtnetwork' -k'-framework qtwebkit' -k'-framework phonon' -k'-framework qtdbus' -k'-framework qtxml' -k'-framework qt4intf' -Fu$lclunits -Fu$lclunits/qt -Fu../units/$platform ../tests/TestFlexEdit/project1.dpr I can't recall why I'm not using lazbuild like I do with other widgetsets, but maybe this has something to do with it.

hmmm... Den ? Do you have any idea what's up with linker ? If we need to add each lib then wiki must be changed ...

zeljko

Den Jean
to zeljko
zeljko wrote 11 lines
> /usr/local/bin/fpc -dLCL -dLCLqt -WG -Sd -gl -O1 -Cirot -k'-framework > qtcore' -k'-framework qtgui' -k'-framework qtnetwork' -k'-framework > qtwebkit' -k'-framework phonon' -k'-framework qtdbus' -k'-framework qtxml' > -k'-framework qt4intf' -Fu$lclunits -Fu$lclunits/qt -Fu../units/$platform > ../tests/TestFlexEdit/project1.dpr > > I can't recall why I'm not using lazbuild like I do with other widgetsets, > but maybe this has something to do with it. hmmm... Den ? Do you have any idea what's up with linker ? If we need to add each lib then wiki must be changed ...

When changed what ? When I created V1.72 in September, I could compile apps on OsX with the provide compile script in the demos package (compile_exe_fr_mac.sh).

I did not change anything since September.

Also lazarus should compile with:
make clean all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-framework' -k'Foundation'"

Both compilation methods only use framework.

regards,

Den Jean

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

zeljko
to Den Jean
Den Jean wrote 12 lines
When changed what ? When I created V1.72 in September, I could compile apps on OsX with the provide compile script in the demos package (compile_exe_fr_mac.sh). I did not change anything since September. Also lazarus should compile with: make clean all LCL_PLATFORM=qt OPT="-k'-framework' -k'Qt4Intf' -k'-lobjc' -k'-framework' -k'Foundation'" Both compilation methods only use framework.

Yesterday I've decided to update lazarus & qt on my intel mac (10.4.XX), downloaded qt453 + 1.72 (was 451 + 1.70 bindings think and it was ok). Now I cannot rebuild lazarus with command you mentioned above. I must add each qt lib with -k to get it compiled. So I'm just wondering why is it so (i see that there's no changes in compile script) but something must be wrong (not with script) but with my mac ?

zeljko