Results 1 to 3 of 3

Thread: 4.4.2 installation error - moc

  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 4.4.2 installation error - moc

    Hi All,
    I have been trying to install Qt 4.4.2 with openssl support but in vain.
    I had installed openssl-0.9.8i on my system.

    My Qt folder is - D:/Qt/4.4.2
    DirectX folder - C:\Program Files\Microsoft DirectX SDK (March 2008)
    OpenSsl headers - C:\Program Files\OpenSsl\include\openssl
    openssl lib - C:\Program Files\OpenSsl\lib
    The steps I follow are -
    1. Open Visual Studio command prompt
    2. Set directX environment using dx_setenv.cmd
    3. Then I run configure with the following options -
    configure.exe -qt-style-windowsce -qt-style-windowsmobile -qt-zlib -qt-libpng -qt-libmng -qt-libjpeg -direct3d -phonon -openssl -platform win32-msvc2005
    Now it configures fine and it also shows - OpenSsl support .... yes

    4.Then I run 'nmake'. At a particular time, I get crash on moc.exe. This is what it shows -
    D:\Qt\4.4.2\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN3
    2 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_MAKEDLL
    -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D
    _USE_MATH_DEFINES -DPNG_NO_ASSEMBLER_CODE -DQT_RASTER_IMAGEENGINE -DQT_RASTER_PA
    INTENGINE -DQT_NO_CUPS -DQT_NO_LPR -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -
    DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_FREETYPE -DQT_NO_OPENTYPE -DQT_NO_STYLE_M
    AC -DQ_INTERNAL_QAPP_SRC -DQT_DLL -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\.
    .\include\QtCore" -I"..\..\include" -I"..\..\include\QtGui" -I"tmp\rcc\debug_sha
    red" -I"tmp" -I"..\3rdparty\wintab" -I"..\3rdparty\libpng" -I"..\3rdparty\zlib"
    -I"..\3rdparty\harfbuzz\src" -I"dialogs" -I"d:\Qt\4.4.2\include\ActiveQt" -I"tmp
    \moc\debug_shared" -I"." -I"..\..\mkspecs\win32-msvc2005" -D_MSC_VER=1400 -DWIN3
    2 dialogs\qsidebar_p.h -o tmp\moc\debug_shared\moc_qsidebar_p.cpp
    NMAKE : fatal error U1077: 'D:\Qt\4.4.2\bin\moc.exe' : return code '0xc0000005'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    make.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    D:\Qt\4.4.2>
    I have set the openssl directories in my environment variables.
    I also tried copying C:\Program Files\OpenSsl\include\openssl to D:/Qt/4.4.2/include and the openssl lib files to D:/Qt/4.4.2/lib.
    In both cases I get the same error

    Can anyone help me point out what wrong am i doing ? Earlier I had 4.4.0 installed without openssl suport, and it was running fine. SO this new prob must be related to openssl settings, I guess
    Last edited by aamer4yu; 21st September 2008 at 14:43.

  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: 4.4.2 installation error - moc

    This isn't a openssl problem.
    Try executing moc on Visual Studio command prompt - I think it will not work. Try to recompile moc (cd src/tools/moc && nmake clean && nmake) to see if it works then.

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 4.4.2 installation error - moc

    Ya I figured it out too that it isnt a openssl problem. I ran the compilation with -no-openssl option, and it still crashed.

    But I tried compiling Qt 4.4.0 , same procedure as with 4.4.2, and it compiled well without any errors.

    Why is this 4.4.2 giving errors.
    I cleaned the whole 4.4.2 directory, extracted files again,, and compiled fresh. Still its crashing. However this time it was a different cpp it crashed on, though it crashed on moc only..Below is the error

    D:\Qt\4.4.2\bin\moc.exe -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DWIN3
    2 -DQT_LARGEFILE_SUPPORT -DQT_BUILD_NETWORK_LIB -DQT_NO_USING_NAMESPACE -DQT_MAK
    EDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPA
    T -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -I"..\..\include\QtCo
    re" -I"..\..\include\QtCore" -I"..\..\include" -I"..\..\include\QtNetwork" -I"tm
    p\rcc\debug_shared" -I"tmp" -I"..\3rdparty\zlib" -I"kernel" -I"d:\Qt\4.4.2\inclu
    de\ActiveQt" -I"tmp\moc\release_shared" -I"." -I"..\..\mkspecs\win32-msvc2005" -
    D_MSC_VER=1400 -DWIN32 access\qftp.cpp -o tmp\moc\release_shared\qftp.moc
    NMAKE : fatal error U1077: 'D:\Qt\4.4.2\bin\moc.exe' : return code '0xc0000005'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
    make.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    has something changed with 4.4.2 ???

Similar Threads

  1. Installation on Fedora Core 4
    By jcr in forum Installation and Deployment
    Replies: 3
    Last Post: 29th January 2009, 01:34
  2. nmake error during .pro compiling
    By mattia in forum Installation and Deployment
    Replies: 5
    Last Post: 18th June 2008, 10:15
  3. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  4. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02: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, 12: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.