Skip to content
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

Build a single-file executable #693

Open
FynnFbc opened this issue Sep 29, 2023 · 1 comment
Open

Build a single-file executable #693

FynnFbc opened this issue Sep 29, 2023 · 1 comment
Labels
📖 documentation Improvements or additions to documentation

Comments

@FynnFbc
Copy link

FynnFbc commented Sep 29, 2023

How to package the dll required by a program into a single executable file
Programs can be copied to other machines without qt installed
Please provide the following solution
thank you

@ahayzen-kdab
Copy link
Collaborator

You would need to build to a statically linked binary.

Usually this means you either have a Qt commercial license or understand the LGPLv3 requirements and have a Qt install with static libraries available to link to.

Then if using CMake you need ensure that it links statically and not dynamically. But i believe that macOS uses static linking by default so there might not be much modification required there.

@ahayzen-kdab ahayzen-kdab added the 📖 documentation Improvements or additions to documentation label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants