1

I've just built the Qt libraries (on Windows) from source and it seems that the build-path is actually built into the library binaries themselves! This makes moving the binaries to another machine or directory difficult (but not impossible - see Change Qt install path after building?)

I've never come across this in any other library I've used and was wondering why it is the way it is? Is this just a remnant of a solution some obscure unix "install" issue, or is there a good reason for it?

4

1 回答 1

3

These paths are used on windows to search for plugins, translations, etc. If you install Qt via a Qt installer, one of the steps in the installer is to patch the path inside the binaries so they contain the installation path. You can override them by patching the binaries, or, much easier, by using a qt.conf file.

于 2013-01-09T07:19:04.453 回答