[mythtv] [RFC] New Win32 build script

Doug Lytle support at drdos.info
Thu Dec 9 17:41:48 UTC 2010


Lawrence Rust wrote:
> I would be most pleased if anyone can try this and let me know your
> experiences.  If all goes well I'll submit it to Trac.
>
> Comments please...
>    

My first attempt at cross compiling.

Build system:    Mandriva 2010.1
Kernel:

uname -a
Linux desktop.dd.inet 2.6.36.1 #1 SMP PREEMPT Fri Dec 3 20:50:01 EST 
2010 i686 i686 i386 GNU/Linux

MinGW

rpm -qa|grep -i mingw

mingw32-cpp-4.4.2-2mdv2010.1
mingw32-binutils-2.19.1-2mdv2010.0
mingw32-filesystem-49-2mdv2010.0
mingw32-runtime-3.15.2-2mdv2010.0
mingw32-gcc-4.4.2-2mdv2010.1
mingw32-w32api-3.13-2mdv2010.0

I had to modify the xprefix to i586-pc-mingw32 for Mandriva.

I get a failure to compile on Flac:

i586-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include 
-I/home/doug/t/mythbuild/include -O3 -funroll-loops -finline-functions 
-Wall -W -Winline -g -O2 -MT stream_decoder.lo -MD -MP -MF 
.deps/stream_decoder.Tpo -c stream_decoder.c  -DDLL_EXPORT -DPIC -o 
.libs/stream_decoder.o
In file included from stream_decoder.c:56:
../../include/share/alloc.h:41:5: error: #error
In file included from stream_decoder.c:56:
../../include/share/alloc.h: In function 'safe_malloc_mul_2op_':
../../include/share/alloc.h:120: error: 'SIZE_T_MAX' undeclared (first 
use in this function)
../../include/share/alloc.h:120: error: (Each undeclared identifier is 
reported only once
../../include/share/alloc.h:120: error: for each function it appears in.)
../../include/share/alloc.h: In function 'safe_malloc_mul_3op_':
../../include/share/alloc.h:130: error: 'SIZE_T_MAX' undeclared (first 
use in this function)
../../include/share/alloc.h: In function 'safe_malloc_mul2add_':
../../include/share/alloc.h:143: error: 'SIZE_T_MAX' undeclared (first 
use in this function)
../../include/share/alloc.h: In function 'safe_realloc_mul_2op_':
../../include/share/alloc.h:196: error: 'SIZE_T_MAX' undeclared (first 
use in this function)
make[4]: *** [stream_decoder.lo] Error 1

Doug


-- 

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."



More information about the mythtv-dev mailing list