I am developing a project using Qt 4.8.4 on code::blocks,so far everything is okay except that when I run the project it cannot locate the shared libraries;the object file of my project is created in a different directory and can therefore not locate the the shared libraries in the Qt directory.Does it mean I have to keep copying those shared libraries into the directory the contains the object files of my project.
Because you talk of shared libraries ("DLLs seems to be the common Windows parlance") I assume you're running on Linux. If so, set the environment variable "LD_LIBRARY_PATH" to the directory in which your shared libraries are located. (See the first section of this post on my blog if you want more detail).
I would assume this guy is not using Linux. In many cases, it is less problematic to deal with open source library in Linux, as when you install them with default setting or using precompiled packages from your distro, they go to default directory, and that's pretty much to it.
In windows, what I generally do is to set the output path from my IDE to one specific folder, let's say /bin, and copy all precompiled DLLs to that folder.
yea,...that is exactly what I did.
Originally Posted by auralius