Results 1 to 2 of 2

Thread: QT 4.4.1 compilation problem on Windows using nmake

  1. #1
    Join Date
    Aug 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QT 4.4.1 compilation problem on Windows using nmake

    Hi everyone,

    I tried to compile QT 4.4.1 on windows xp. I ran configure and then nmake. Problem occured when moc was invoked. It did't produce neither moc_* files nor error messages (I have attached the part of the output below). I can copy output part where moc is mentioned, paste to text editor, remove wrapping, paste back to command prompt and I get moc_* file compiled. I don't understand, what is the difference between processing Makefile and manual compilation?


    -------------Output--------------------
    C:/Darbas/Qt/4.4.1/bin/moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE
    -DQT_LARGEFILE_SUPPORT -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL
    -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DHB
    _EXPORT=Q_CORE_EXPORT -DQT_DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp
    \rcc\debug_shared" -I"tmp" -I"concurrent" -I"global" -I"..\3rdparty\zlib" -I"..\
    3rdparty\harfbuzz\src" -I"c:\Darbas\Qt\4.4.1\include\ActiveQt" -I"tmp\moc\debug_
    shared" -I"." -I"..\..\mkspecs\win32-g++" -D__GNUC__ -DWIN32 io\qbuffer.h -o tmp
    \moc\debug_shared\moc_qbuffer.cpp
    g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptio
    ns -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -D
    QT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS
    -DQT3_SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DHB_EXPORT=Q_CORE_EXPORT -DQT
    _DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp\rcc\debug_shared" -I"tmp"
    -I"concurrent" -I"global" -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src" -I"
    c:\Darbas\Qt\4.4.1\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\mks
    pecs\win32-g++" -o tmp\obj\debug_shared\qbuffer.o io\qbuffer.cpp
    io\qbuffer.cpp:453:28: moc_qbuffer.cpp: No such file or directory
    NMAKE : fatal error U1077: 'g++' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK\Bin\nmake.e
    xe"' : return code '0x2'

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.4.1 compilation problem on Windows using nmake

    Looks like you've mixed something up. You compile with nmake (== Visual Studio) but your compiler is gcc... you have to use mingw32-make when compiling with gcc.

Similar Threads

  1. Problem with nmake and mysql plugins
    By raken in forum Installation and Deployment
    Replies: 1
    Last Post: 7th July 2007, 08:20
  2. Problem with nmake
    By Pragya in forum Newbie
    Replies: 3
    Last Post: 27th June 2007, 16:39

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.