Forum > macOS / Mac OS X

Problem with Qt5 on macOS (Resolved)

(1/2) > >>

mischi:
Hi.

I am trying to extend the MacPorts package description of lazarus for the Qt5 version. The big obstacle is that the framework Qt5Pas has a wrong install_name in the final binaries (lazarus, startlazarus and lhelp).

'otool -L lazarus' yields:

lazarus:
<snip>
   Qt5Pas.framework/Versions/1/Qt5Pas (compatibility version 1.2.0, current version 1.2.16)
   /System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 61901.40.77)

The complete path is needed:
   /opt/local/libexec/qt5/lib/Qt5Pas.framework/Versions/1/Qt5Pas (compatibility version 1.2.0, current version 1.2.16)

or (less preferred):

   /opt/local/Library/Frameworks/Qt5Pas.framework/Versions/1/Qt5Pas (compatibility version 1.2.0, current version 1.2.16)

I tried all kinds of options for fpc as well as the linker, but nothing worked. The only temporary solution was to make the change with  'install_name_tool'.

This is with lazarus 4.4, fpc 3.2.2 and macOS 26.1-arm.

Any help?

MiSchi

zeljko:
Maybe that could be fixed with qmake5 ? I'm still using install_name_tool to fix paths in builded myapplication.app , so it carries complete Qt with it and I don't need to install it separatelly.

mischi:
Hi

The problem is that the install_name_tool trick is only preliminary for the Lazarus app. It needs to be done for any project as well, which is quite a challenge for a regular user of Lazarus. That is the reason, why I am looking for some settings/options that  take care of this issue. Do you have an idea, how QMake5 does the trick?

MiSchi.

zeljko:
I don't know, I'm guessing about qmake params, I've never tried that, that's why I'm using qt deploy script + install_name_tool to pack my app (script triggers after compilation), also I'm not using qt5 on mac for some time, only qt6.

mischi:
I haven't tried Qt6 so far. Does it work well and easily?

Navigation

[0] Message Index

[#] Next page

Go to full version