[mythtv] [RFC] New Win32 build script

Lawrence Rust lvr at softsystem.co.uk
Sat Dec 11 09:43:05 UTC 2010


On Fri, 2010-12-10 at 16:07 -0500, Boleslaw Ciesielski wrote:
> Next problem is this:
> 
> i686-pc-mingw32-g++ -c -pipe -I/scratch/bolek/src/mythbuildw32/mythwork/mysql-5.0.89-win32/include -O2 -frtti -fexceptions -mthreads -Wall -W -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I'../../../../include/QtCore' -I'../../../../include/QtNetwork' -I'../../../../include' -I'../../../../include/ActiveQt' -I'.moc/release-shared' -I'../../../../mkspecs/win32-g++linux' -o .obj/release-shared/main.o main.cpp
> ../../../gui/image/qjpeghandler.cpp:120:8: error: 'boolean' does not name a type
> ../../../gui/image/qjpeghandler.cpp: In function 'void qt_skip_input_data(jpeg_decompress_struct*, long int)':
> ../../../gui/image/qjpeghandler.cpp:158:46: error: 'qt_fill_input_buffer' was not declared in this scope
> ../../../gui/image/qjpeghandler.cpp: In constructor 'my_jpeg_source_mgr::my_jpeg_source_mgr(QIODevice*)':
> ../../../gui/image/qjpeghandler.cpp:188:42: error: 'qt_fill_input_buffer' was not declared in this scope
> ../../../gui/image/qjpeghandler.cpp: At global scope:
> ../../../gui/image/qjpeghandler.cpp:469:8: error: 'boolean' does not name a type
> ../../../gui/image/qjpeghandler.cpp: In constructor 'my_jpeg_destination_mgr::my_jpeg_destination_mgr(QIODevice*)':
> ../../../gui/image/qjpeghandler.cpp:504:49: error: 'qt_empty_output_buffer' was not declared in this scope
> make[4]: *** [.obj/release-shared/qjpeghandler.o] Error 1
> make[4]: Leaving directory `/scratch/bolek/src/mythbuildw32/mythwork/qt-everywhere-opensource-src-4.7.0/src/plugins/imageformats/jpeg'
> make[3]: *** [release] Error 2
> make[3]: Leaving directory `/scratch/bolek/src/mythbuildw32/mythwork/qt-everywhere-opensource-src-4.7.0/src/plugins/imageformats/jpeg'
> make[2]: *** [sub-jpeg-make_default] Error 2
> make[2]: Leaving directory `/scratch/bolek/src/mythbuildw32/mythwork/qt-everywhere-opensource-src-4.7.0/src/plugins/imageformats'
> make[1]: *** [sub-imageformats-make_default] Error 2
> make[1]: *** Waiting for unfinished jobs....
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

This looks like a difference in mingw headers that's tickling a bug in
qt-everywhere-opensource-src-4.7.0/src/gui/image/qjpeghandler.cpp
I suggest changing line 60:

-#   if defined(__RPCNDR_H__) && !defined(boolean)
+#   if !defined(__RPCNDR_H__) || !defined(boolean)

This forces the definition of a boolean type.

Good news is that after this file there's only a few more left and the
Qt build is complete.  Onto Mythtv...

Thanks for the feedback

-- Lawrence




More information about the mythtv-dev mailing list