tags:

views:

86

answers:

2

Hi.

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.

+1  A: 

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
Intransigent Parsnip
+1  A: 

You can too compile QT statically in order to not have to link dlls to your exe : http://doc.trolltech.com/4.1/deployment-windows.html#building-qt-statically.

Patrice Bernassola
looking around online, this seems to be the answer.
bobby