[prev in list] [next in list] [prev in thread] [next in thread]
List: mythtv-dev
Subject: Re: [mythtv] Win32 port fails to compile Freetype
From: buzz <davidbuzz () gmail ! com>
Date: 2009-01-28 5:51:02
Message-ID: 705088780901272151q684e8adao28b5a6ee54fc2b67 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@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
>
>
[Attachment #5 (text/html)]
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:<br><br>## apply stdlib.h patch<br> [ \
file => $mingw.'include/stdlib_h.patch', <br> \
write => [$mingw.'include/stdlib_h.patch',<br>'--- \
include/<a href="http://stdlib.h.org">stdlib.h.org</a> Thu \
Dec 4 11:11:40 2008<br>+++ include/stdlib.h Thu Dec 4 \
11:12:46 2008<br> @@ -314,7 +314,7 @@<br> #else<br> static<br> #endif \
/* Not __cplusplus */<br>-inline double __cdecl __MINGW_NOTHROW strtod (const char* \
__restrict__ __nptr, char** __restrict__ __endptr)<br>+__inline__ double __cdecl \
__MINGW_NOTHROW strtod (const char* __restrict__ __nptr, char** __restrict__ \
__endptr)<br> { return __strtod(__nptr, __endptr); }<br> float __cdecl \
__MINGW_NOTHROW strtof (const char * __restrict__, char ** \
__restrict__);<br> long double __cdecl __MINGW_NOTHROW strtold (const char * \
__restrict__, char ** __restrict__);<br> ' ],comment => 'write the patch \
for the the stdlib.h file'],<br># apply it!?<br>[ grep => \
['__inline__ double __cdecl __MINGW_NOTHROW strtod \
',$mingw.'include/stdlib.h'], <br> shell => \
["cd /mingw/include","patch -p1 < stdlib_h.patch"],<br> \
comment => 'Apply stdlib.h patch file, if not already applied....' \
],<br><br>Buzz.<br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 11:58 AM, \
Nigel Pearson <span dir="ltr"><<a \
href="mailto:nigel@ind.tansu.com.au">nigel@ind.tansu.com.au</a>></span> wrote:<br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br> On \
10/11/2008, at 8:18 AM, Michel Meyers wrote:<br> <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"> "In \
file included from C:/MSys/1.0/sources/freetype-2.3.5/include/freetype/config/ftstdlib.h:123,<br>
from \
./builds/unix/ftconfig.h:43,<br> \
from C:/MSys/1.0/sources/freetype-2.3.5/src/base/ftsystem.c:29:<br> <br></div>
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/stdlib.h:317: error: syntax \
error before "double"<div class="Ih2E3d"><br>
make: *** [/sources/freetype-2.3.5/objs/ftsystem.lo] Error 1<br>
EFFECT FAILED (file -> shell): unable to locate expected file<br></div>
(C:/MSys/1.0/sources/freetype-2.3.5/objs/.libs/libfreetype.a)."<br>
</blockquote>
<br>
On a clean XP build with latest win32-packager.pl,<br>
I also still get this.<br>
<br>
David, maybe we still need MinGW-stdlib.h.patch from #5980?<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>
</blockquote>
<br>
--<br>
Nigel Pearson, <a href="mailto:nigel@ind.tansu.com.au" \
target="_blank">nigel@ind.tansu.com.au</a>|"Now the world has gone to bed.<br> \
Telstra Net. Eng., Sydney, Australia | Darkness won't engulf my \
head.<br>
Office: 9202 3900 Fax: 9212 6348 | I can see by infrared.<br>
Mobile: 0408 664435 Home: 9792 6998 | How I hate the night." -Marvin<br>
<br>
</blockquote></div><br>
_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic