View Full Version : Qt4 open src mingw from a PC to another
nvictor
27th April 2007, 01:19
Hey all,
first of all, thanks for such a forum. I'm used to the irc channel, but our labs are blocking irc ports...
I'm a developer without a computer. I've installed Qt open source with mingw support on one of my friends' computer. Now he got it back. I have saved all the installations files on a CD for this situation.
Right now, I have copied the files exactly as they were on the first disk, the only thing that have changed is the directory structure. Because we are forbidden to create folders on the c:\ drive. So I've copied both my qt installation directory and my codeblock IDE directory to c:\temp\victor\ folder.
I thought that all I have to change were in qtvars.bat. It is not the case. The command qmake is still pointing to my old mkspecs dir, c:\qtforusb\mkspecs instead of c:\temp\victor\qtforusb\mkspecs
My little investigation have shown that a variable $$[QT_INSTALLATION_DATA] is outputting that folder. How come? and How to change that?
I need my Qt directory to be portable as possible because I don't own a computer yet.
thanks in advance for helping.
ChristianEhrlicher
27th April 2007, 13:00
qt.conf (http://doc.trolltech.com/4.2/qt-conf.html) can help you
nvictor
27th April 2007, 17:43
I have tried to change a lot of variables but I cannot find the right one:
Can anyone find it? Here is the debugging session:
C:\temp\victor\qtforusb\examples\chap03\spreadshee t>qmake spreadsheet.pro -d
DEBUG 1: Resetting dir to: C:/temp/victor/qtforusb/examples/chap03/spreadsheet\
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:1 :QMAKE_QT_VERSION_OVERRIDE: :=: (4)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:2 :OBJECTS_DIR: :=: (tmp\obj\release_shared)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:3 :MOC_DIR: :=: (tmp\moc\release_shared)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:4 :RCC_DIR: :=: (tmp\rcc\release_shared)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:5 :sql-plugins: :+=: (odbc sqlite)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:6 :styles: :+=: (windows plastique cleanlooks windowsxp motif c
de)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:7 :imageformat-plugins: :+=: (jpeg)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:8 :CONFIG: :+=: (minimal-config small-config medium-config larg
e-config full-config release incremental create_prl link_prl depend_includepath)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:9 :QMAKESPEC: :=: (C:\temp\victor\qtforusb\mkspecs\win32-g++)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:10 :ARCH: :=: (windows)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:11 :QT_BUILD_TREE: :=: (C:\temp\victor\qtforusb)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:12 :QT_SOURCE_TREE: :=: (C:\temp\victor\qtforusb)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:13 :QMAKE_MOC: :=: (C:\temp\victor\qtforusb\bin\moc.exe)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:14 :QMAKE_UIC: :=: (C:\temp\victor\qtforusb\bin\uic.exe)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:15 :QMAKE_UIC3: :=: (C:\temp\victor\qtforusb\bin\uic3.exe)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:16 :QMAKE_RCC: :=: (C:\temp\victor\qtforusb\bin\rcc.exe)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:17 :QMAKE_DUMPCPP: :=: (C:\temp\victor\qtforusb\bin\dumpcpp.exe
)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:18 :QMAKE_INCDIR_QT: :=: (C:\temp\victor\qtforusb/include)
DEBUG 1: Project Parser: c:\temp\victor\qtforusb\.qmake.cache:19 :QMAKE_LIBDIR_QT: :=: (C:\temp\victor\qtforusb/lib)
Could not find mkspecs for your QMAKESPEC after trying:
C:\qtforusb\mkspecs
Error processing project file: spreadsheet.pro
C:\temp\victor\qtforusb\examples\chap03\spreadshee t>
nvictor
30th April 2007, 00:50
I know it's an installation related issue, but no one seems to care in the installation threads so I'm betting my luck here.
How can I change the hard-coded variables that QT set at its built?
QT_INSTALL_BINS ... QT_INSTALL_DIRS... and others
The reason I want to be able to change those variable is that I don't have a personal computer. And the PCs in our laboratories delete the files copied after two days.
I have an external hard drive but when plugged it may be drive E:, F:, or H:. I need to change the installation folder and other folders when running qmake.
How can I do that?
jacek
30th April 2007, 01:24
I know it's an installation related issue, but no one seems to care in the installation threads so I'm betting my luck here.
Please, don't start multiple threads on the same issue.
How can I change the hard-coded variables that QT set at its built?
QT_INSTALL_BINS ... QT_INSTALL_DIRS... and others
Have you tried creating qt.conf file as Christian has suggested?
nvictor
30th April 2007, 01:31
I did. I even give the resulting error.
jacek
30th April 2007, 01:41
I did. I even give the resulting error.
Where have you placed it? Could you post its contents?
nvictor
1st May 2007, 17:15
Jacek,
I have put the qt.conf in the same directory as the spreadsheet application I'm trying to compile.
It contains:
[Paths]
Data = g:\qtforusb
Because my external hard drive is assigned to drive G: when I plug it.
thanks in advance for helping.
I have put the qt.conf in the same directory as the spreadsheet application I'm trying to compile.
Try putting it in the same directory where qmake is.
It contains:
[Paths]
Data = g:\qtforusb
Try:[Paths]
Prefix = g:\qtforusb
nvictor
1st May 2007, 17:50
Thanks Jacek
nvictor
1st May 2007, 17:57
Jacek, if you are a member of the Qt team, I think the documentation should be made more precise. Because I have found on forums people complaining about the page regarding qt.conf. thanks you are here :D
Now my Qt adventure that has been interrupted for 2 weeks can re-start.
Jacek, if you are a member of the Qt team,
Unfortunately, I'm not.
I think the documentation should be made more precise. Because I have found on forums people complaining about the page regarding qt.conf.
You can contact the Trolls for example through this page: http://www.trolltech.com/bugreport-form
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.