[Qt-interest] Moving Qt 4.6 Source folder
Raul Metsma
raul at innovaatik.ee
Wed May 26 19:12:08 CEST 2010
I moved folder and created symbolic link to previous location with
junction.exe
Raul
On 05/26/2010 06:56 PM, K. Frank wrote:
> Hello Garth -
>
> I think your best bet is to rebuild Qt.
>
> On Wed, May 26, 2010 at 10:48 AM, Garth Dahlstrom<ironstorm at gmail.com> wrote:
>> I know configure/MinGW make hard code drive letters and paths into the makefiles.
>>
>> Does anyone know if its possible to relocate the Qt source folder without rerunning configure and rebuilding the entire tree? Is there a command that would do this? If not has anyone had success doing a shell script that does a regex replace and touch of all the makefiles under cygwin or something like that?
>
> To clarify: You say "source folder." Do you want to move your entire
> Qt installation,
> or just take the "src" directory (parallel to bin, doc, lib, etc...)
> out of your Qt
> installation?
>
> If you want to move your entire Qt installation, I think you are
> basically out of
> luck. Doing so is highly impractical. (File that under "nothing is
> impossible.")
>
> I wanted to do the same, looked into, played around trying various things, and
> then gave up, and rebuilt Qt. The biggest sticking point was that qmake (an
> executable program) has absolute paths hardcoded into it, and trying to concoct
> some scheme to edit the qmake executable seemed dicey, and way more
> trouble than it would have been worth.
>
> The command "qmake -query" will show you qmake's hardcoded paths.
>
> As to whether "src" can be moved by itself, I don't see any direct references
> to "src" in "qmake -query," but several of the Qt header files reference
> header files in "src" with relative paths, so it doesn't look to promising.
> (Even if you could move "src," I'm not sure what you'd gain, and you would
> be setting yourself up for potential confusion in the future.)
>
> This is a known issue -- I found some stuff in the archives when I was
> looking into -- and I think rebuilding is the most practical way to go.
>
>> I'd like to move my source tree from E: drive to C: drive ...
>
> Good luck.
>
> K. Frank
>
>> Thanks in advance,
>>
>> -G
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list