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 -
Quote:
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 -
Quote:
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 :crying::confused:
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.
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
Quote:
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 ???