Results 1 to 4 of 4

Thread: QT4 beginner Fatal Error

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default QT4 beginner Fatal Error

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT4 beginner Fatal Error

    Could we see the .pro file which was generated?

  3. #3
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT4 beginner Fatal Error

    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.

  4. #4
    Join Date
    Feb 2006
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QT4 beginner Fatal Error

    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.

Similar Threads

  1. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 11:15
  2. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 14:43
  3. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 13:57
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 03:49
  5. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 13:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.