[mythtv] Ticket #4497: Win32 builds broken after r15435

buzz davidbuzz at gmail.com
Mon Jan 21 05:56:19 UTC 2008


AFAIK, the current patch-set that is needed for a successful win32 build
consists of:

* r15433 or earlier

* qt.patch for QT from here: http://tanas.ca/qt.patch

* backend.patch.gz from trac #4392
http://svn.mythtv.org/trac/raw-attachment/ticket/4392/backend.patch.gz

* importicons_windows_2.diff from trac #3334
http://svn.mythtv.org/trac/raw-attachment/ticket/3334/importicons_windows_2.diff

* touch mythtv/config/config.pro (which seems to be missing from SVN?)

* mythtv/libs/libmyth/mythverbose.h doesn't get installed to the /include
folder, so mythplugins build fails unless fixed manually.

* and mythplugins build fails anyway with:
make[2]: Entering directory `/C/mythtv/mythplugins/mythvideo/mythvideo'
g++ -c -march=k8 -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls
-Wno-non
-virtual-dtor -D__STDC_CONSTANT_MACROS -mthreads -Wall -g -fexceptions
-frtti  -
DUNICODE -D_GNU_SOURCE -DPREFIX=\"/usr\" -DMMX -Di386 -DUSING_DIRECTX
-D_FILE_OF
FSET_BITS=64 -DUSING_MINGW -DQT_DLL -DQT_PLUGIN -DQT_THREAD_SUPPORT
-I"/usr/incl
ude" -I"/usr/include" -I"/qt-3.3.x-p8/include" -I"C:/MSys/1.0/qt-3.3.x-p8
/mkspec
s/win32-g++" -o main.o main.cpp
In file included from C:/MSys/1.0/include/mythtv/mythcontext.h:6,
                 from main.cpp:16:
In file included from C:/MSys/1.0/include/mythtv/dialogbox.h:7,
                 from dvdripbox.h:20,
                 from main.cpp:35:
C:/MSys/1.0/include/mythtv/compat.h: In function `const char* dlerror()':
C:/MSys/1.0/include/mythtv/compat.h:206: error: cannot convert `char*' to
`WCHAR
*' for argument `5' to `DWORD FormatMessageW(DWORD, const void*, DWORD,
DWORD, W
CHAR*, DWORD, char**)'
C:/MSys/1.0/include/mythtv/compat.h:208: warning: int format, DWORD arg (arg
4)
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/C/mythtv/mythplugins/mythvideo/mythvideo'
make[1]: *** [sub-mythvideo] Error 2
make[1]: Leaving directory `/C/mythtv/mythplugins/mythvideo'
make: *** [sub-mythvideo] Error 2


Buzz



On Jan 21, 2008 2:06 PM, Jay Modi <jmodi at vt.edu> wrote:

> On Jan 19, 2008 9:32 PM, MythTV <mythtv at cvs.mythtv.org> wrote:
>
> > #4497: Win32 builds broken after r15435
> >
> > ------------------------------------------+---------------------------------
> >  Reporter:  Jay Modi <jaymode at gmail.com>  |       Owner:  ijr
> >     Type:  patch                         |      Status:  new
> >  Priority:  minor                         |   Milestone:  unknown
> > Component:  mythtv                        |     Version:  unknown
> >  Severity:  medium                        |     Mlocked:  0
> >
> > ------------------------------------------+---------------------------------
> >  The Win32 builds seem to have been partially broken by r15435. The
> > first
> >  issue I noticed is that the typedef on line 89 needs a semicolon.
> > However,
> >  this leads to even more problems, dealing with multiple definitions.
> > The
> >  cure for this is to remove the typedef and then include compat.h but
> > this
> >  causes linking errors. These linking errors are due to some other
> > issue,
> >  as I have removed the entire r15435 changes from my compat.h and get
> > the
> >  same errors.
> >
> >  I have attached a patch file to add the include.
> >
> > --
> > Ticket URL: < http://svn.mythtv.org/trac/ticket/4497>
> > MythTV <http://svn.mythtv.org/trac>
> > MythTV
> >
>
>
>
> I wrote this ticket up last night and have tried again today with a clean
> subversion checkout and no patches applied. Now the weird thing is that I
> got a new error today. This error comes in a file that has not been changed
> in years according to trac. Is anyone else (the few of us) that are building
> with MinGW experiencing similar issues on the HEAD revision of svn.
>
> Using this configure command:
> ./configure --prefix=/usr --disable-dbox2 --disable-hdhomerun
> --disable-dvb -
> -disable-ivtv --disable-iptv --disable-joystick-menu --disable-xvmc-vld
> --disab
> le-x11 --disable-xvmc --enable-directx --enable-memalign-hack
> --compile-type=de
> bug
>
> When I run make, this is the new error:
> gcc -c -march=i586 -g -Wall -Wno-switch -Wdisabled-optimization
> -Wpointer-arith -Wredundant-decls -fPIC -DPIC -mthreads -w -fexceptions
> -frtti  -DUSING_MINGW -DUSING_WINAUDIO -DUSING_D3D -DUSING_DIRECTX
> -DUSING_DIRECTX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\"
> -DLIBDIR=\"/usr/lib\" -DHAVE_AV_CONFIG_H -D_LARGEFILE_SOURCE -DQT_DLL
> -DQT_THREAD_SUPPORT -I"/usr/include" -I".." -I"../.." -I"/qt- 3.3.x-p8/include"
> -I"C:/msys/1.0/qt-3.3.x-p8/mkspecs/win32-g++" -o samplerate.o samplerate.c
> In file included from samplerate.c:27:
> float_cast.h: In function `lrint':
> float_cast.h:90: error: `_asm' undeclared (first use in this function)
> float_cast.h:90: error: (Each undeclared identifier is reported only once
> float_cast.h:90: error: for each function it appears in.)
> float_cast.h:90: error: syntax error before '{' token
> float_cast.h: In function `lrintf':
> float_cast.h:102: error: `_asm' undeclared (first use in this function)
> float_cast.h:102: error: syntax error before '{' token
> make[2]: *** [samplerate.o] Error 1
> make[2]: Leaving directory `/c/mythtv/mythtv/libs/libmythsamplerate'
> make[1]: *** [sub-libmythsamplerate] Error 2
> make[1]: Leaving directory `/c/mythtv/mythtv/libs'
> make: *** [sub-libs] Error 2
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080121/ed744512/attachment.htm 


More information about the mythtv-dev mailing list