-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic linking problems with installed package including examples on Windows #225
Comments
I noticed a related issue with Qt (platform) plugins in my applications: Executables linked to Qt contain the absolute path to the Qt installation that was used at build time (see https://doc.qt.io/qt-5/qcoreapplication.html#libraryPaths). When initializing a So problem now is that different (minor) versions of Qt Libraries and Qt Plugins might be used at runtime, which might lead to application crashes if these versions are not compatible (such with 5.2.1/5.2.0 breaking binary compatibility). I have had this issue a few times when deploying my application and fixed by adjusting the Qt Library paths using a This problem might not be relevant for glbinding itself, but with gloperate etc. it can cause problems when users are free to use their own Qt installations instead of the ones gloperate etc. were linked to. |
@kateyy You suggest to add |
I'd recommend a solution like that. Contrary to what you originally suggested, I use this solution to prevent the Qt application from using Qt libraries/plugins that are already installed on the target system. You can't check at application startup, if an installed Qt version on the target system is actually compatible to your linked Qt version.
So, you can use |
When installing glbinding, it ships with an own version of Qt.
If a user installs an own version of Qt (probably a newer one) and links its dependencies against glbinding, adjusts the
%PATH%
such that glbinding is found at runtime, it may happen that Windows chooses the shipped Qt of glbinding instead of the Qt the user wants to use for his/her application.I think this may be fixed by moving the examples and Qt and GLFW libraries to an example subdirectory for the deployment.
The text was updated successfully, but these errors were encountered: