[mythtv] Win32 + QT4 segfault: resolved

Andrei Tanas andrei at tanas.ca
Wed Jul 2 04:09:20 UTC 2008


It looks like you either have moc_*.cpp files from previous build or are 
using unpatched "moc" tool.

1. Make sure to "make distclean" in QT so that all "tmp/moc/*" stuff is 
re-generated.
2. Find and delete your "moc.exe" before recompiling QT to make sure you are 
using the patched one.

----- Original Message ----- 
From: "buzz" <davidbuzz at gmail.com>
To: "Andrei Tanas" <andrei at tanas.ca>; "Development of mythtv" 
<mythtv-dev at mythtv.org>
Sent: Tuesday, July 01, 2008 11:23 PM
Subject: Re: [mythtv] Win32 + QT4 segfault: resolved


> Andrei,
>
> I'm still unable to replicate your experience....I had a barfed QT
> install before, but have fixed it now, and am using your patch....
>
> Now I get this (below) while building QT4.4.0 ...ideas?
>
> Buzz.
>
> cd src\corelib\ && mingw32-make -f Makefile
> mingw32-make[1]: Entering directory
> `C:/msys/1.0/qt-win-opensource-src-4.4.0/src/corelib'
> mingw32-make -f Makefile.Debug all
> mingw32-make[2]: Entering directory
> `C:/msys/1.0/qt-win-opensource-src-4.4.0/src/corelib'
> g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti
> -fexceptions -mthreads -DQT_SHARED -DQ
> T_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_CORE_LIB
> -DQT_NO_USING_NAMESPACE -DQT_M
> AKEDLL -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"conc
> urrent" -I"global" -I"..\3rdparty\zlib" -I"..\3rdparty\harfbuzz\src"
> -I"c:\msys\1.0\qt-win-opensourc
> e-src-4.4.0\include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
> -I"..\..\mkspecs\win32-g++" -o tmp\obj\
> debug_shared\qbuffer.o io\qbuffer.cpp
> In file included from io\qbuffer.cpp:453:
> tmp/moc/debug_shared/moc_qbuffer.cpp:40: error: conflicting
> declaration 'QMetaObject QBuffer::static
> MetaObject'
> io\qbuffer.h:62: error: 'QBuffer::staticMetaObject' has a previous
> declaration as `const QMetaObject
> QBuffer::staticMetaObject'
> tmp/moc/debug_shared/moc_qbuffer.cpp:46: error: prototype for `const
> QMetaObject* QBuffer::metaObjec
> t() const' does not match any in class `QBuffer'
> io\qbuffer.h:62: error: candidate is: virtual QMetaObject*
> QBuffer::metaObject() const
> tmp/moc/debug_shared/moc_qbuffer.cpp:46: error: `const QMetaObject*
> QBuffer::metaObject() const' and
> `virtual QMetaObject* QBuffer::metaObject() const' cannot be overloaded
> mingw32-make[2]: *** [tmp/obj/debug_shared/qbuffer.o] Error 1
> mingw32-make[2]: Leaving directory
> `C:/msys/1.0/qt-win-opensource-src-4.4.0/src/corelib'
> mingw32-make[1]: *** [debug-all] Error 2
> mingw32-make[1]: Leaving directory
> `C:/msys/1.0/qt-win-opensource-src-4.4.0/src/corelib'
> mingw32-make: *** [sub-corelib-make_default-ordered] Error 2
> 



More information about the mythtv-dev mailing list