Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, August 2005
compilation with qmake/make and path problem


Message 1 in thread

Hi,

I'm using the Win32 version of QT 4.0.0.
My .pro contains the following :
DEPENDPATH += . ../src
INCLUDEPATH += . ../src
# Input
SOURCES += main.cpp qt/CurveWidget.cpp
When I compile, the / are translated to \ but I then get the following error :

g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
LL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
 -I"C:/Qt/4.0.0/include/QtGui" -I"C:/Qt/4.0.0/include/QtCore" -I"C:/Qt/4.0.0/inc
lude" -I"." -I"..\src" -I"C:/Qt/4.0.0/include/ActiveQt" -I"release" -I"." -I"C:\
Qt\4.0.0\mkspecs\win32-g++" -o release\CurveWidget.o ..\src\qt\CurveWidget.cpp
g++.EXE: ..srcqtCurveWidget.cpp: No such file or directory
g++.EXE: no input files

Is there anyway to circumvent this ?

-- 
 [ signature omitted ] 

Message 2 in thread

Ok,

I did : qmake -unix and it works...


2005/8/19, Pooly <pooly7@xxxxxxxxx>:
> Hi,
> 
> I'm using the Win32 version of QT 4.0.0.
> My .pro contains the following :
> DEPENDPATH += . ../src
> INCLUDEPATH += . ../src
> # Input
> SOURCES += main.cpp qt/CurveWidget.cpp
> When I compile, the / are translated to \ but I then get the following error :
> 
> g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
> LL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
>  -I"C:/Qt/4.0.0/include/QtGui" -I"C:/Qt/4.0.0/include/QtCore" -I"C:/Qt/4.0.0/inc
> lude" -I"." -I"..\src" -I"C:/Qt/4.0.0/include/ActiveQt" -I"release" -I"." -I"C:\
> Qt\4.0.0\mkspecs\win32-g++" -o release\CurveWidget.o ..\src\qt\CurveWidget.cpp
> g++.EXE: ..srcqtCurveWidget.cpp: No such file or directory
> g++.EXE: no input files
> 
> Is there anyway to circumvent this ?
> 
> --
> Pooly
> Webzine Rock : http://www.w-fenec.org/
> 


-- 
 [ signature omitted ] 

Message 3 in thread

Why I try to run moc, I have this kind of errors :

E:\cvs\hg\Risk>make
make -f Makefile.Debug
make[1]: Entering directory `E:/cvs/hg/Risk'
C:\Qt\4.0.0\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_CORE_LIB -DQT_GUI_
LIB -I"C:/Qt/4.0.0/include/QtGui" -I"C:/Qt/4.0.0/include/QtCore" -I"C:/Qt/4.0.0/
include" -I"." -I"../src" -I"debug" -I"." -I"C:/Qt/4.0.0/mkspecs/win32-g++" -D__
GNUC__ -DWIN32 ../src/qt/CurveWidget.h -o debug/moc_CurveWidget.cpp
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make10762.sh: command not found:
C:Qt4.0.0binmoc.exe [1]
make[1]: *** [debug/moc_CurveWidget.cpp] Error 1
make[1]: Leaving directory `E:/cvs/hg/Risk'
make: *** [debug] Error 2

can anyone help me ?

2005/8/19, Pooly <pooly7@xxxxxxxxx>:
> Ok,
> 
> I did : qmake -unix and it works...
> 
> 
> 2005/8/19, Pooly <pooly7@xxxxxxxxx>:
> > Hi,
> >
> > I'm using the Win32 version of QT 4.0.0.
> > My .pro contains the following :
> > DEPENDPATH += . ../src
> > INCLUDEPATH += . ../src
> > # Input
> > SOURCES += main.cpp qt/CurveWidget.cpp
> > When I compile, the / are translated to \ but I then get the following error :
> >
> > g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
> > LL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
> >  -I"C:/Qt/4.0.0/include/QtGui" -I"C:/Qt/4.0.0/include/QtCore" -I"C:/Qt/4.0.0/inc
> > lude" -I"." -I"..\src" -I"C:/Qt/4.0.0/include/ActiveQt" -I"release" -I"." -I"C:\
> > Qt\4.0.0\mkspecs\win32-g++" -o release\CurveWidget.o ..\src\qt\CurveWidget.cpp
> > g++.EXE: ..srcqtCurveWidget.cpp: No such file or directory
> > g++.EXE: no input files
> >
> > Is there anyway to circumvent this ?
> >
> > --
> > Pooly
> > Webzine Rock : http://www.w-fenec.org/
> >
> 
> 
> --
> Pooly
> Webzine Rock : http://www.w-fenec.org/
> 


-- 
 [ signature omitted ] 

Message 4 in thread

Hi,

> When I compile, the / are translated to \ but I then get the following error :
> [...]
> Is there anyway to circumvent this ?

Either you're usign MSYS or there's a sh.exe in your PATH. This breaks 
Windows builds. Remove sh.exe from your PATH: qmake creates Makefiles 
that expect a shell compatible with the standard Microsoft shell and 
MinGW's make will choose sh.exe over the standard Microsoft shell if 
given the choice.

--
 [ signature omitted ] 

Message 5 in thread

Hello,

There was indeed a sh.exe in the path installed by the "UnxTools"
package. Now it works like a charm! Many thanks for your help, it has
been very helpful !

2005/8/19, Dimitri <dimitri@xxxxxxxxxxxxx>:
> Hi,
> 
> > When I compile, the / are translated to \ but I then get the following error :
> > [...]
> > Is there anyway to circumvent this ?
> 
> Either you're usign MSYS or there's a sh.exe in your PATH. This breaks
> Windows builds. Remove sh.exe from your PATH: qmake creates Makefiles
> that expect a shell compatible with the standard Microsoft shell and
> MinGW's make will choose sh.exe over the standard Microsoft shell if
> given the choice.
> 
> --
> Dimitri
> 
> 


-- 
 [ signature omitted ]