Qt-interest Archive, October 2007
Moving a Qt installation
Message 1 in thread
I'm trying to make a "movable" Qt installation on Windows for
development with Visual Studio 2003 compiler and eclipse. I try to
achieve this by modifying bin/qt.conf into my Qt folder:
[Paths]
Prefix = E:/CD/Workspace/QT
This works partialy:
- Assistant works
- Designer works
- qmake works
But I have some problems with moc in the following scenario:
qmake -project: works fine
qmake -win32 : produces a makefile
nmake : works fine, except of moc
The moc targets are added to the makefile and they show up when
executing nmake. But no moc_* files are generated (and no errors are
shown). An Example target:
E:/CD/Workspace/QT/bin\moc.exe $(DEFINES) $(INCPATH) gui\MdiArea.h -o
debug\moc_MdiArea.cpp
This expands to:
E:/CD/Workspace/QT/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DWIN32
-DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-I"..\QT\include\QtCore" -I"..\QT\include\QtCore"
-I"..\QT\include\QtGui" -I"..\QT\include\QtGui" -I"..\QT\include\QtXml"
-I"..\QT\include\QtXml" -I"..\QT\include" -I"..\mp\libs\baselib\include"
-I"..\mp\libs\Elmien\include" -I"..\mp\libs\Q4JrsMediaPlayer\include"
-I"..\mp\libs\Q4JrsMediaPlayer\GeneratedFiles"
-I"..\mp\libs\mmdataio\include" -I"." -I"..\QT\include\ActiveQt"
-I"debug" -I"." -I"..\QT\mkspecs\win32-msvc.net" gui\MdiArea.h -o
debug\moc_MdiArea.cpp
If I copy the above to a command line, it executes fine (and produces
moc_MdiArea.cpp).
If I change the forward slashes to backslashes in the path to moc inside
the makefile, it works too:
E:\CD\Workspace\QT\bin\moc.exe $(DEFINES) $(INCPATH) gui\MdiArea.h -o
debug\moc_MdiArea.cpp
So it seems that there is a problem with forward slashes in the path to
moc inside the makefile. For other paths, the forward slashes of qt.conf
are converted to backslashes:
QMAKE = e:\CD\Workspace\QT\bin\qmake.exe
IDC = e:\CD\Workspace\QT\bin\idc.exe
If I enter backward slashes instead of the forward ones into qt.conf,
nothing works (qmake, assistant, designer).
Does anyone know a solution the problem?
Thank you in advance,
Benjamin
--
[ signature omitted ]
Message 2 in thread
Benjamin Hopfer <greenb3ret+qtforum@xxxxxxxxx> wrote on 10/18/2007 03:45:30
AM:
# I'm trying to make a "movable" Qt installation on Windows for
# development with Visual Studio 2003 compiler and eclipse. I try to
# achieve this by modifying bin/qt.conf into my Qt folder:
I do not know if this will help your issue, but you might look at
this:
http://lists.trolltech.com/qt-interest/2005-11/thread00257-0.html
--
[ signature omitted ]