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

Should Qt .dlls be copied on build? #120

Open
BrodyHiggerson opened this issue Aug 2, 2018 · 1 comment
Open

Should Qt .dlls be copied on build? #120

BrodyHiggerson opened this issue Aug 2, 2018 · 1 comment

Comments

@BrodyHiggerson
Copy link

BrodyHiggerson commented Aug 2, 2018

Hey there!

Thought I'd make a separate issue for my .dll issue.

I used the following to generate a solution:
C:\_Development\Projects\easy_profiler-develop\build>cmake -DCMAKE_PREFIX_PATH="C:\Qt\5.11.1\msvc2017_64\lib\cmake" .. -G "Visual Studio 15 2017 Win64"

When I build and run profiler_gui in Debug, it complains about missing .dlls, and in Release/RelWithDebInfo I get this error:
image

Both issues are fixed when I manually copy the Qt .dll files across. Should this not be happening automatically? I see no mention of this step in the install instructions for Windows.

Thanks!

@alprist
Copy link

alprist commented Dec 7, 2018

Really it is not enough to copy the Qt libraries only. Sometimes you need also copy the C and C++ runtime libraries. So for me I use the next instruction, from Qt:
http://doc.qt.io/qt-5/windows-deployment.html
https://wiki.qt.io/Deploy_an_Application_on_Windows

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

No branches or pull requests

2 participants