Skip to content

macos qt6依赖库的路径不对 #29

Description

@ZeppLu

macos环境不在身边贴不了截图,凭记忆写一下:

下载的macos qt6.7中,如果用otool -L lib/QtNetwork.framework/QtNetwork去查看qtnetwork的依赖,会发现其中有一项/Users/xxx/xxx/Qt_build_xxx/libssl.3.dylib(可能还有libcrypto.3.dylib)。这种依赖会导致换机器后运行crash,一般来说,是需要使用install_name_tool将这项改成@rpath/libssl.3.dylib或者@executable_path/../Frameworks/libssl.3.dylib之类的。

macos qt6.5中也有这种情况,不过发生在QtCore还是QtGui中,记不太清了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions