PDA

View Full Version : QT4 beginner Fatal Error



Remyfr
3rd March 2006, 11:40
Hi,

I just installed QT4 with Mingw on XP.
When I try as shown in the tutorials to compile an example I get an error message from Make.

First I do qmake -projet, it is fine
then I do qmake , it is also fine,
but when I do the final make, I get the following error message :
Fatal : 'FORCE' does not exist - dont know how to make it.
To give you more detail the makefile content is below.
I have looked everywhere to solve this issue, but as I am a beginner I am lost .....

Thanks for helping me.

Remy.

################################################## ###########################
# Makefile for building: t1
# Generated by qmake (2.00a) (Qt 4.1.1) on: ven. 3. mars 12:29:40 2006
# Project: t1.pro
# Template: app
# Command: qmake -spec C:/Qt/4.1.1/mkspecs/win32-g++ -win32 -o Makefile t1.pro
################################################## ###########################

first: all
install: debug-install release-install
uninstall: debug-uninstall release-uninstall
MAKEFILE = Makefile
QMAKE = qmake
DEL_FILE = del
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
COPY = copy /y
COPY_FILE = $(COPY)
COPY_DIR = xcopy /s /q /y /i
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = del
SYMLINK =
DEL_DIR = rmdir
MOVE = move
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
SUBTARGETS = \
debug \
release

debug: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_default: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug
debug-make_first: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug first
debug-all: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug all
debug-clean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug clean
debug-distclean: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug distclean
debug-install: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug install
debug-uninstall: $(MAKEFILE).Debug FORCE
$(MAKE) -f $(MAKEFILE).Debug uninstall
release: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_default: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release
release-make_first: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release first
release-all: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release all
release-clean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release clean
release-distclean: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release distclean
release-install: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release install
release-uninstall: $(MAKEFILE).Release FORCE
$(MAKE) -f $(MAKEFILE).Release uninstall

Makefile: t1.pro C:/Qt/4.1.1/.qmake.cache C:/Qt/4.1.1/mkspecs/win32-g++\qmake.conf ..\..\..\mkspecs\features\exclusive_builds.prf \
..\..\..\mkspecs\features\default_pre.prf \
..\..\..\mkspecs\features\win32\default_pre.prf \
C:/Qt/4.1.1/.qmake.cache \
C:/Qt/4.1.1/mkspecs/qconfig.pri \
..\..\..\mkspecs\features\qt_config.prf \
..\..\..\mkspecs\features\debug.prf \
..\..\..\mkspecs\features\debug_and_release.prf \
..\..\..\mkspecs\features\default_post.prf \
..\..\..\mkspecs\features\warn_on.prf \
..\..\..\mkspecs\features\qt.prf \
..\..\..\mkspecs\features\win32\thread.prf \
..\..\..\mkspecs\features\moc.prf \
..\..\..\mkspecs\features\win32\rtti.prf \
..\..\..\mkspecs\features\win32\exceptions.prf \
..\..\..\mkspecs\features\win32\stl.prf \
..\..\..\mkspecs\features\shared.prf \
..\..\..\mkspecs\features\win32\windows.prf \
..\..\..\mkspecs\features\resources.prf \
..\..\..\mkspecs\features\uic.prf \
C:\Qt\4.1.1\lib\qtmaind.prl
$(QMAKE) -spec C:/Qt/4.1.1/mkspecs/win32-g++ -win32 -o Makefile t1.pro
..\..\..\mkspecs\features\exclusive_builds.prf:
..\..\..\mkspecs\features\default_pre.prf:
..\..\..\mkspecs\features\win32\default_pre.prf:
C:/Qt/4.1.1/.qmake.cache:
C:/Qt/4.1.1/mkspecs/qconfig.pri:
..\..\..\mkspecs\features\qt_config.prf:
..\..\..\mkspecs\features\debug.prf:
..\..\..\mkspecs\features\debug_and_release.prf:
..\..\..\mkspecs\features\default_post.prf:
..\..\..\mkspecs\features\warn_on.prf:
..\..\..\mkspecs\features\qt.prf:
..\..\..\mkspecs\features\win32\thread.prf:
..\..\..\mkspecs\features\moc.prf:
..\..\..\mkspecs\features\win32\rtti.prf:
..\..\..\mkspecs\features\win32\exceptions.prf:
..\..\..\mkspecs\features\win32\stl.prf:
..\..\..\mkspecs\features\shared.prf:
..\..\..\mkspecs\features\win32\windows.prf:
..\..\..\mkspecs\features\resources.prf:
..\..\..\mkspecs\features\uic.prf:
C:\Qt\4.1.1\lib\qtmaind.prl:
qmake: qmake_all FORCE
@$(QMAKE) -spec C:/Qt/4.1.1/mkspecs/win32-g++ -win32 -o Makefile t1.pro

qmake_all: FORCE

make_default: debug-make_default release-make_default FORCE
make_first: debug-make_first release-make_first FORCE
all: debug-all release-all FORCE
clean: debug-clean release-clean FORCE
distclean: debug-distclean release-distclean FORCE
-$(DEL_FILE) Makefile

debug-mocclean: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocclean
release-mocclean: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocclean
mocclean: debug-mocclean release-mocclean

debug-mocables: $(MAKEFILE).Debug
$(MAKE) -f $(MAKEFILE).Debug mocables
release-mocables: $(MAKEFILE).Release
$(MAKE) -f $(MAKEFILE).Release mocables
mocables: debug-mocables release-mocables
FORCE:

$(MAKEFILE).Debug: Makefile
$(MAKEFILE).Release: Makefile

wysota
3rd March 2006, 12:22
Could we see the .pro file which was generated?

Remyfr
3rd March 2006, 21:43
Hi,

Here is the pro file :


TEMPLATE = app
CONFIG += qt warn_on
HEADERS =
SOURCES = main.cpp
TARGET = t1
QTDIR_build:REQUIRES="contains(QT_CONFIG, small-config)"

# install
target.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t1
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS t1.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t1
INSTALLS += target sources




Regards,


Remy.

askot
11th March 2006, 01:48
i saw the same problem with make.

Look if you see the mingw directory. You can find out the make program but its not call only make is something like mingw-make or something like this. (sorry i am in mac i dont have a pc close to me to check.)

well if the make in mingw/bin is not named make when you write make in the console what make is called?

Well if you see inside c:\Qt\4.1.1\bin you will find a file make.bat these is the file that is called when you write make in the console(cmd).

well i want that you know this first.

But i saw this problem when you have another compiler with its own make. And this is accesible via console. for example c++ builder these program in the installation process configure the Path.

How the make in qt4 is a bat file. I rename these make.bat to minmake.bat (mingwmake) and when i need to call make for qt i use minmake.

And thats all. I hope that you can detect de problem.

but try to find what make you are calling.