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

windeployqt is not working ? #4

Open
Buanderie opened this issue Mar 27, 2019 · 7 comments
Open

windeployqt is not working ? #4

Buanderie opened this issue Mar 27, 2019 · 7 comments

Comments

@Buanderie
Copy link

Trying to use windeployqt on my succesfully generated .exe results in:
[devel@5bd0432e0abb ~]$ x86_64-w64-mingw32-windeployqt-qt5 /home/devel/boomrtx/build/tools/boomconfig/boomconfig.exe Unable to query qmake: qmake returns 255:

I started digging for possible answers, but maybe you would know better :)

Nice work on that image, btw.

@mdimura
Copy link
Owner

mdimura commented Mar 27, 2019

I tried windeployqt once, but id did not work for me. Would be great if you find out how to make it work! Maybe you could ask for help in the comments to AUR package.

@Buanderie
Copy link
Author

It falls out of the scope of this issue, but the reason I needed windeployqt to work was because I linked to dynamic libraries. If there was a branch of this image with static qt libraries instead, that would offer users another solution for deployment (without too much hassle).

@mdimura
Copy link
Owner

mdimura commented Mar 27, 2019

Yep, I will split the image into several variants at some point, qt-static could be one of them. For now I copy the dlls manually in the build script as a workaround.

@Buanderie
Copy link
Author

Just out of curiosity, from which directory do you copy the dlls ?

@mdimura
Copy link
Owner

mdimura commented Mar 27, 2019

/usr/{x86_64-w64-mingw32,i686-w64-mingw32}/{bin,lib/qt/plugins/{imageformats,iconengines,platforms}} for x64 and x32 builds respectively.

@vahidlazio
Copy link

I wonder, copy dlls to where? the root project directory? and we just need the exe after all to run the app or we still need the dlls?

@mdimura
Copy link
Owner

mdimura commented Dec 7, 2019

The dlls are shared libraries (as opposed to static), so yes, they are needed in addition to the exe. It is enough to copy the .dlls and .exe in the same folder to run the program.

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

No branches or pull requests

3 participants