Results 1 to 4 of 4

Thread: Qt4 with mingw on win2K

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

    Default Qt4 with mingw on win2K

    I'm having a problem with builing the debug lib's on W2K.

    I downloaded and installed qt-win-opensource-4.2.2-mingw.exe. When I try to build the debug libs (after creating the makefiles) I get:

    (cd winmain && mingw32-make -f Makefile debug)
    mingw32-make[1]: Entering directory `C:/Qt/4.2.2/src/winmain'
    mingw32-make -f Makefile.Debug
    mingw32-make[2]: Entering directory `C:/Qt/4.2.2/src/winmain'
    g++ -c -g -g -Wall -frtti -fexceptions -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEF
    ILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT
    3_SUPPORT -DQT_MOC_COMPAT -I"C:/Qt/4.2.2/include" -I"tmp" -I"C:/Qt/4.2.2/include
    /QtCore" -I"c:\Qt\4.2.2\include\qtmain" -I"tmp" -I"C:/Qt/4.2.2/include/ActiveQt"
    -I"tmp\moc\debug_shared" -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_sha
    red\qtmain_win.o qtmain_win.cpp
    ar -ru "..\..\lib\libqtmaind.a" tmp\obj\debug_shared\qtmain_win.o
    mingw32-make[2]: Leaving directory `C:/Qt/4.2.2/src/winmain'
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.2/src/winmain'
    (cd tools/moc && mingw32-make -f Makefile first)
    mingw32-make[1]: Makefile: No such file or directory
    mingw32-make[1]: *** No rule to make target `Makefile'. Stop.
    mingw32-make[1]: Entering directory `C:/Qt/4.2.2/src/tools'
    mingw32-make[1]: Leaving directory `C:/Qt/4.2.2/src/tools'
    mingw32-make: *** [debug-tools/moc] Error 2
    C:\Qt\4.2.2\src>

    When I do the same in XP, everything seems OK. Any Idee?

  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 with mingw on win2K

    Looks like qmake was not called. Did you run qmake (or configure) before building?

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

    Default Re: Qt4 with mingw on win2K

    Yes.
    Actually, I run C:\Qt\4.2.2\bin\qtvars.bat compile_debug

    this is what inside:

    @echo off
    rem
    rem This file is generated
    rem

    echo Setting up a MinGW/Qt only environment...
    echo -- QTDIR set to C:\Qt\4.2.2
    echo -- PATH set to C:\Qt\4.2.2\bin
    echo -- Adding C:\MinGW\bin to PATH
    echo -- Adding %SystemRoot%\System32 to PATH
    echo -- QMAKESPEC set to win32-g++

    set QTDIR=C:\Qt\4.2.2
    set PATH=C:\Qt\4.2.2\bin
    set PATH=%PATH%;C:\MinGW\bin
    set PATH=%PATH%;%SystemRoot%\System32
    set QMAKESPEC=win32-g++

    if not "%1"=="compile_debug" goto END
    cd %QTDIR%
    echo This will configure and compile qt in debug.
    echo The release libraries will not be recompiled.
    pause
    configure -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg
    cd %QTDIR%\src
    mingw32-make debug
    :END

    And the output is:

    Setting up a MinGW/Qt only environment...
    -- QTDIR set to C:\Qt\4.2.2
    -- PATH set to C:\Qt\4.2.2\bin
    -- Adding C:\MinGW\bin to PATH
    -- Adding C:\WINNT\System32 to PATH
    -- QMAKESPEC set to win32-g++
    This will configure and compile qt in debug.
    The release libraries will not be recompiled.
    Press any key to continue . . .

    This is the Qt/Windows Open Source Edition.

    You are licensed to use this software under the terms of
    the GNU General Public License.

    Type '?' to view the GNU General Public License.
    Type 'y' to accept this license offer.
    Type 'n' to decline this license offer.

    Do you accept the terms of the license?
    y
    Environment:
    INCLUDE=
    Unset
    LIB=
    Unset
    PATH=
    C:\Qt\4.2.2\bin
    C:\MinGW\bin
    C:\WINNT\System32
    You are licensed to use this software under the terms of the GNU GPL.
    See C:\Qt\4.2.2/LICENSE.GPL

    Configuration:
    minimal-config
    small-config
    medium-config
    large-config
    full-config
    build_all
    debug
    Qt Configuration:
    release
    debug
    zlib
    no-gif
    png
    accessibility
    qt3support
    opengl
    ipv6

    QMAKESPEC...................win32-g++ (env)
    Architecture................windows
    Maketool....................mingw32-make
    Debug symbols...............yes
    Accessibility support.......yes
    STL support.................yes
    Exception support...........yes
    RTTI support................yes
    OpenGL support..............yes
    Qt3 compatibility...........yes

    Third Party Libraries:
    ZLIB support............qt
    GIF support.............no
    JPEG support............plugin
    PNG support.............qt
    MNG support.............plugin

    Styles:
    Windows.................yes
    Windows XP..............yes
    Plastique...............yes
    Cleanlooks..............yes
    Motif...................yes
    CDE.....................yes

    Sql Drivers:
    ODBC....................plugin
    MySQL...................no
    OCI.....................no
    PostgreSQL..............no
    TDS.....................no
    DB2.....................no
    SQLite..................plugin
    SQLite2.................no
    InterBase...............no

    Sources are in..............C:\Qt\4.2.2
    Build is done in............C:\Qt\4.2.2
    Install prefix..............C:\Qt\4.2.2
    Headers installed to........C:\Qt\4.2.2\include
    Libraries installed to......C:\Qt\4.2.2\lib
    Plugins installed to........C:\Qt\4.2.2\plugins
    Binaries installed to.......C:\Qt\4.2.2\bin
    Docs installed to...........C:\Qt\4.2.2\doc
    Data installed to...........C:\Qt\4.2.2
    Translations installed to...C:\Qt\4.2.2\translations
    Examples installed to.......C:\Qt\4.2.2\examples
    Demos installed to..........C:\Qt\4.2.2\demos


    Creating qmake...
    g++ -c -oqconfig.o -O -I. -Igenerators -Igenerators\unix -Igenerators\win32 -Ige
    nerators\mac -I..\src\corelib\arch\generic -I..\include -I ..\include\QtCore -I.
    .\src\tools -I..\mkspecs\win32-g++ -I..\src\3rdparty\md5 -DQT_NO_TEXTCODEC -DQT_
    NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DU
    NICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_N
    O_GEOM_VARIANT -DQT_NO_DATASTREAM -DQMAKE_OPENSOURCE_EDITION ..\src\corelib\glob
    al\qconfig.cpp
    g++ -o qmake.exe project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.
    o option.o winmakefile.o projectgenerator.o property.o meta.o md5.o makefiledeps
    .o metamakefile.o xmloutput.o pbuilder_pbx.o qbitarray.o qbuffer.o qbytearray.o
    qvsnprintf.o qbytearraymatcher.o qchar.o qconfig.o qdatetime.o qdir.o qfile.o qt
    emporaryfile.o qfileinfo.o qabstractfileengine.o qfsfileengine.o qfsfileengine_w
    in.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o qlistdata.o qlocale.o qmap.o q
    regexp.o qstring.o qstringlist.o qstringmatcher.o qtextstream.o qunicodetables.o
    quuid.o qvector.o qurl.o qsettings.o qsettings_win.o qvariant.o qmetatype.o -lo
    le32 -luuid
    copy qmake.exe ..\bin\qmake.exe
    1 file(s) copied.
    Creating makefiles in src...
    Generating Makefiles...
    Reading C:/Qt/4.2.2/src/src.pro
    Reading C:/Qt/4.2.2/src/winmain/winmain.pro
    Reading C:/Qt/4.2.2/src/tools/moc/moc.pro
    Reading C:/Qt/4.2.2/src/tools/rcc/rcc.pro
    ....

    so qmake is ok i think....

  4. #4
    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 with mingw on win2K

    Do these makefiles actually get generated? Maybe you're running out of disk space or something?

Similar Threads

  1. qmake and mingw trouble
    By krivenok in forum Qt Programming
    Replies: 8
    Last Post: 12th February 2009, 21:58
  2. On windows: MinGW + Qt + Which Debugger?
    By Dwarf007 in forum Newbie
    Replies: 8
    Last Post: 12th July 2006, 19:21
  3. Loaded QT 4.1.1 and MinGW Compiler
    By Seth in forum Newbie
    Replies: 7
    Last Post: 8th July 2006, 15:03
  4. Problem to compile with MinGW + Qt 4 + winpcap
    By jlbrd in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2006, 16:32
  5. Where do I get MinGW 3.2 ?
    By Shwetha in forum Newbie
    Replies: 19
    Last Post: 3rd April 2006, 22:36

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.