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