Nitenq
Nitenq

Reputation: 193

moving Qt directory

I'm working on a Qt4.7.3 project on mac osX (with xCode). I would like to move my Qt directory (installed with Qt installer). The problem is that some Qt executable files have hardcoded paths. I've already recompiled Qmake specifying the new Qt directory. So the project now compile and link perfectly, but at run time it cannot find the qt libraries (it still look into my old Qt directory). Is there other harcoded path somewhere, other configuration files to edit?

By the way, the reason why I want to move my Qt directory is to allow to share qt files via revision control tool.

Upvotes: 1

Views: 1645

Answers (3)

thestar
thestar

Reputation: 5239

Try this.

Create qt.conf file in the same folder as your qmake.exe file.

[Paths]
Prefix = E:/Qt/4.8.3

Follow this link for detail description.

http://richardt.name/blog/moving-a-qt-installation-directory/

Upvotes: 0

Stephen Chu
Stephen Chu

Reputation: 12832

The pre-built installer actually puts all the framework files into the system location (/Library/Framworks/) and you will have a hard time moving those.

Your best bet is to build it from source and specify a different install location. ./configure -help will show you how. (Use the -prefix option)

Upvotes: 2

gplusplus
gplusplus

Reputation: 346

Hard links could be a way to go in this kind of situation I guess.

Upvotes: 0

Related Questions