[mythtv] Win32 port fails to compile Freetype

buzz davidbuzz at gmail.com
Wed Jan 28 05:51:02 UTC 2009


I included code to automatically patch that in the latest win32-packager,
but reviewing my patch, it seems I left that block commented out by
mistake.   That was my mistake, yes, it should be active:

## apply stdlib.h patch
[ file    => $mingw.'include/stdlib_h.patch',
  write   => [$mingw.'include/stdlib_h.patch',
'--- include/stdlib.h.org    Thu Dec  4 11:11:40 2008
+++ include/stdlib.h    Thu Dec  4 11:12:46 2008
@@ -314,7 +314,7 @@
 #else
 static
 #endif /* Not __cplusplus */
-inline double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__
__nptr, char** __restrict__ __endptr)
+__inline__ double __cdecl __MINGW_NOTHROW strtod (const char* __restrict__
__nptr, char** __restrict__ __endptr)
 { return __strtod(__nptr, __endptr); }
 float __cdecl __MINGW_NOTHROW strtof (const char * __restrict__, char **
__restrict__);
 long double __cdecl __MINGW_NOTHROW strtold (const char * __restrict__,
char ** __restrict__);
' ],comment => 'write the patch for the the stdlib.h file'],
# apply it!?
[ grep    => ['__inline__ double __cdecl __MINGW_NOTHROW strtod
',$mingw.'include/stdlib.h'],
  shell   => ["cd /mingw/include","patch -p1 < stdlib_h.patch"],
  comment => 'Apply stdlib.h patch file, if not already applied....' ],

Buzz.

On Wed, Jan 28, 2009 at 11:58 AM, Nigel Pearson <nigel at ind.tansu.com.au>wrote:

>
> On 10/11/2008, at 8:18 AM, Michel Meyers wrote:
>
>  "In file included from
>> C:/MSys/1.0/sources/freetype-2.3.5/include/freetype/config/ftstdlib.h:123,
>>                 from ./builds/unix/ftconfig.h:43,
>>                 from
>> C:/MSys/1.0/sources/freetype-2.3.5/src/base/ftsystem.c:29:
>>
>> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:317:
>> error: syntax error before "double"
>> make: *** [/sources/freetype-2.3.5/objs/ftsystem.lo] Error 1
>> EFFECT FAILED (file -> shell): unable to locate expected file
>> (C:/MSys/1.0/sources/freetype-2.3.5/objs/.libs/libfreetype.a)."
>>
>
> On a clean XP build with latest win32-packager.pl,
> I also still get this.
>
> David, maybe we still need MinGW-stdlib.h.patch from #5980?
>
>>
>>
> --
> Nigel Pearson, nigel at ind.tansu.com.au|"Now the world has gone to bed.
> Telstra Net. Eng., Sydney, Australia | Darkness won't engulf my head.
> Office: 9202 3900    Fax:  9212 6348 | I can see by infrared.
> Mobile: 0408 664435  Home: 9792 6998 | How I hate the night." -Marvin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20090128/203c258b/attachment.htm>


More information about the mythtv-dev mailing list