[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.&nbsp;&nbsp; \
That was my mistake, yes, it should be active:<br><br>## apply stdlib.h patch<br> [ \
file&nbsp;&nbsp;&nbsp; =&gt; $mingw.&#39;include/stdlib_h.patch&#39;, <br>&nbsp; \
write&nbsp;&nbsp; =&gt; [$mingw.&#39;include/stdlib_h.patch&#39;,<br>&#39;--- \
include/<a href="http://stdlib.h.org">stdlib.h.org</a>&nbsp;&nbsp;&nbsp; Thu \
Dec&nbsp; 4 11:11:40 2008<br>+++ include/stdlib.h&nbsp;&nbsp;&nbsp; Thu Dec&nbsp; 4 \
11:12:46 2008<br> @@ -314,7 +314,7 @@<br>&nbsp;#else<br>&nbsp;static<br>&nbsp;#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> &nbsp;{ return __strtod(__nptr, __endptr); }<br>&nbsp;float __cdecl \
__MINGW_NOTHROW strtof (const char * __restrict__, char ** \
__restrict__);<br>&nbsp;long double __cdecl __MINGW_NOTHROW strtold (const char * \
__restrict__, char ** __restrict__);<br> &#39; ],comment =&gt; &#39;write the patch \
for the the stdlib.h file&#39;],<br># apply it!?<br>[ grep&nbsp;&nbsp;&nbsp; =&gt; \
[&#39;__inline__ double __cdecl __MINGW_NOTHROW strtod \
&#39;,$mingw.&#39;include/stdlib.h&#39;], <br>&nbsp; shell&nbsp;&nbsp; =&gt; \
[&quot;cd /mingw/include&quot;,&quot;patch -p1 &lt; stdlib_h.patch&quot;],<br> &nbsp; \
comment =&gt; &#39;Apply stdlib.h patch file, if not already applied....&#39; \
],<br><br>Buzz.<br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 11:58 AM, \
Nigel Pearson <span dir="ltr">&lt;<a \
href="mailto:nigel@ind.tansu.com.au">nigel@ind.tansu.com.au</a>&gt;</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"> &quot;In \
file included from C:/MSys/1.0/sources/freetype-2.3.5/include/freetype/config/ftstdlib.h:123,<br>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from \
./builds/unix/ftconfig.h:43,<br>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; 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 &quot;double&quot;<div class="Ih2E3d"><br>
make: *** [/sources/freetype-2.3.5/objs/ftsystem.lo] Error 1<br>
EFFECT FAILED (file -&gt; shell): unable to locate expected file<br></div>
(C:/MSys/1.0/sources/freetype-2.3.5/objs/.libs/libfreetype.a).&quot;<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>|&quot;Now the world has gone to bed.<br> \
                Telstra Net. Eng., Sydney, Australia | Darkness won&#39;t engulf my \
                head.<br>
Office: 9202 3900 &nbsp; &nbsp;Fax: &nbsp;9212 6348 | I can see by infrared.<br>
Mobile: 0408 664435 &nbsp;Home: 9792 6998 | How I hate the night.&quot; -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