Jang
Jang

Reputation: 150

How to execute program which have created Qt on windows?

Basically, Qt provide the cross-plateform.

I have made a application which is used Qt creator on Linux.

But, I can't be running that on Windows because it can't find .dll files such as mingw10.dll and qtcore4.dll, etc.

So, I have copied the .dll files which can be found in qt/bin directory.

And, I create a directory in order to save that like /lib becuase of distribution of application.

But, I can't set up path in .pro file.

How to set up the path for .dll?

Thank you.

Upvotes: 1

Views: 384

Answers (2)

Patrice Bernassola
Patrice Bernassola

Reputation: 14416

You can too compile QT statically in order to not have to link dlls to your exe.

Upvotes: 1

rohanpm
rohanpm

Reputation: 4272

You say you've successfully compiled the app, so the only problem is that it can't find the DLLs.

There are a few solutions, and they have nothing to do with the .pro file. Your two best bets are:

  • Make sure the DLLs are in the same directory as the .exe file
  • Make sure the DLLs are in a directory contained in the PATH environment variable

Upvotes: 1

Related Questions