Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Lenard Lindstrom

Tyler Laing wrote:



On Wed, Aug 12, 2009 at 6:25 PM, Lenard Lindstrom > wrote:


Hi Tyler,

Ignore config_win.py. It is for using the prebuilts and stuff
compiled with Visual C++. Visual C++ prebuilt compilation has not
been maintained for awhile and is moot anyway since ffmpeg is not
designed to compile with it. So add ffmpeg to config_mys.py
instead. This will use msys/1.0/local/ stuff. You have to add a
separate Dependency inststance for each shared library of ffmpeg.
I have already added the ffmpeg libraries to dll.py, so look there
for the names to use: AVCODEC, AVFORMAT and so on. I see I did not
update the prebuilt-template\Config_Win.in for ffmpeg. It is used
with the prebuilts.

Lenard Lindstrom


Thanks Lenard, I'll try that tomorrow. Do you guys mind if I add a big 
documentation note to config_win.py that it hasn't been updated or 
maintained in awhile? Just so no one else goes down the same fruitless 
red brick road as I did, lol.


:)

-Tyler

Please do. Obviously the note at the top about file searches being 
broken was too subtle a warning. If you do place the warning at the top 
just be sure to mention that setup_prebuilt() is still relevant and used.


Lenard


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
On Wed, Aug 12, 2009 at 6:25 PM, Lenard Lindstrom  wrote:

> Hi Tyler,
>
> Ignore config_win.py. It is for using the prebuilts and stuff compiled with
> Visual C++. Visual C++ prebuilt compilation has not been maintained for
> awhile and is moot anyway since ffmpeg is not designed to compile with it.
> So add ffmpeg to config_mys.py instead. This will use msys/1.0/local/ stuff.
> You have to add a separate Dependency inststance for each shared library of
> ffmpeg. I have already added the ffmpeg libraries to dll.py, so look there
> for the names to use: AVCODEC, AVFORMAT and so on. I see I did not update
> the prebuilt-template\Config_Win.in for ffmpeg. It is used with the
> prebuilts.
>
> Lenard Lindstrom
>
>
Thanks Lenard, I'll try that tomorrow. Do you guys mind if I add a big
documentation note to config_win.py that it hasn't been updated or
maintained in awhile? Just so no one else goes down the same fruitless red
brick road as I did, lol.

:)

-Tyler


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Lenard Lindstrom

Hi Tyler,

Ignore config_win.py. It is for using the prebuilts and stuff compiled 
with Visual C++. Visual C++ prebuilt compilation has not been maintained 
for awhile and is moot anyway since ffmpeg is not designed to compile 
with it. So add ffmpeg to config_mys.py instead. This will use 
msys/1.0/local/ stuff. You have to add a separate Dependency inststance 
for each shared library of ffmpeg. I have already added the ffmpeg 
libraries to dll.py, so look there for the names to use: AVCODEC, 
AVFORMAT and so on. I see I did not update the 
prebuilt-template\Config_Win.in for ffmpeg. It is used with the prebuilts.


Lenard Lindstrom


Tyler Laing wrote:
Turns out there were errors during the ffmpeg compilation. Apologies! 
Those errors are quiet and get ignored. Basically, they are:


install -m 644 libavdevice/avdevice-52.lib 
"/usr/local/bin/avdevice.lib"; install -m 644 
libavdevice/avdevice-52.lib "/usr/local/bin/avdevice-52.lib"
install: cannot stat `libavdevice/avdevice-52.lib': No such file or 
directory
install: cannot stat `libavdevice/avdevice-52.lib': No such file or 
directory

make: [install-libavdevice-shared] Error 1 (ignored)

*goes back to the compilation of ffmpeg to figure it out*

-Tyler

On Wed, Aug 12, 2009 at 2:16 PM, Tyler Laing > wrote:


Okay, so I got everything recompiled, it all compiles fine(except
portmidi, but I just used Lenard's prebuilt ones).

So I was trying to not use the prebuilt dir, as it just doesn't
quite work. The dlls are all in C:\msys\1.0\local\ include and lib
directories. The config file just can't find them. I've been
trying to decipher exactly what config_win.py does, and have a bit
of a better understanding. But I still don't get exactly what I'm
supposed to add there, such that the config file finds headers and
libraries correctly.

-Tyler


On Wed, Aug 12, 2009 at 1:14 PM, Tyler Laing mailto:trinio...@gmail.com>> wrote:

Oddly enough, I've already compiled ffmpeg, and its... weird,
yeah. I'll try recompiling the ffmpeg libraries again. Hmm, if
all the libraries work, then I don't need to use the prebuilt
libraries. I'll be back in a bit with the results.

-Tyler


On Wed, Aug 12, 2009 at 1:11 PM, René Dudfield
mailto:ren...@gmail.com>> wrote:

cool, it's a whole bunch of missing symbols.

So you need to find out where those symbols should be
defined, and to
link in the libraries that find them.

Is this compiling ffmpeg?


On Wed, Aug 12, 2009 at 9:04 PM, Tyler
Laingmailto:trinio...@gmail.com>> wrote:
> Here's the pastebin of the log:
>
> http://pastebin.com/m55e55246
>
> On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield
mailto:ren...@gmail.com>> wrote:
>>
>> On Wed, Aug 12, 2009 at 8:54 PM, Tyler
Laingmailto:trinio...@gmail.com>> wrote:
>> > Unfortunately, same error happens when I compile it
manually. When I
>> > compiled each of the .o's I used the other lib and
include dirs instead
>> > of
>> > the prebuilt. Same error, just different paths.
>> >
>> > -Tyler
>> >
>>
>>
>> What is the error message?
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>




-- 
Visit my blog at http://oddco.ca/zeroth/zblog





-- 
Visit my blog at http://oddco.ca/zeroth/zblog





--
Visit my blog at http://oddco.ca/zeroth/zblog





Re: [pygame] unsubscribe

2009-08-12 Thread Luke Paireepinart
Oh... I was being facetious.  See, I sent the reply to the list, so if you
were unsubscribed you wouldn't have gotten it.Sorry for the confusion.

The correct address for unsubscribing can be found below:

To get on or off the mailing list, send an email message to
majord...@seul.org with a simple command in the body. Some examples; (note,
no subject is needed). If subscribing or unsubscribing, there's no need to
enter any extra email address information. Just use the commands like they
are below, the email address you mail from is the address mail will go to
(or stop going to).

   - subscribe pygame-users
   - unsubscribe
pygame-users
   - help 


On Wed, Aug 12, 2009 at 6:41 PM, Keith Nemitz  wrote:

>
> much appreciated. Wish I could stay, but have to cut down on some input.
>
>
>
> --- On Wed, 8/12/09, Luke Paireepinart  wrote:
>
> > From: Luke Paireepinart 
> > Subject: Re: [pygame] unsubscribe
> > To: pygame-users@seul.org
> > Date: Wednesday, August 12, 2009, 2:41 PM
> > i'll get right on that for you.
> >
> > On Wed, Aug 12, 2009 at 10:19 AM,
> > Frozenball 
> > wrote:
> >
> > unsubscribe
> >
> >
> >
> >
>


Re: [pygame] unsubscribe

2009-08-12 Thread Keith Nemitz

much appreciated. Wish I could stay, but have to cut down on some input.



--- On Wed, 8/12/09, Luke Paireepinart  wrote:

> From: Luke Paireepinart 
> Subject: Re: [pygame] unsubscribe
> To: pygame-users@seul.org
> Date: Wednesday, August 12, 2009, 2:41 PM
> i'll get right on that for you.
> 
> On Wed, Aug 12, 2009 at 10:19 AM,
> Frozenball 
> wrote:
> 
> unsubscribe
> 
> 
> 
> 


Re: [pygame] unsubscribe

2009-08-12 Thread Luke Paireepinart
i'll get right on that for you.

On Wed, Aug 12, 2009 at 10:19 AM, Frozenball  wrote:

> unsubscribe
>


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Turns out there were errors during the ffmpeg compilation. Apologies! Those
errors are quiet and get ignored. Basically, they are:

install -m 644 libavdevice/avdevice-52.lib "/usr/local/bin/avdevice.lib";
install -m 644 libavdevice/avdevice-52.lib "/usr/local/bin/avdevice-52.lib"
install: cannot stat `libavdevice/avdevice-52.lib': No such file or
directory
install: cannot stat `libavdevice/avdevice-52.lib': No such file or
directory
make: [install-libavdevice-shared] Error 1 (ignored)

*goes back to the compilation of ffmpeg to figure it out*

-Tyler

On Wed, Aug 12, 2009 at 2:16 PM, Tyler Laing  wrote:

> Okay, so I got everything recompiled, it all compiles fine(except portmidi,
> but I just used Lenard's prebuilt ones).
>
> So I was trying to not use the prebuilt dir, as it just doesn't quite work.
> The dlls are all in C:\msys\1.0\local\ include and lib directories. The
> config file just can't find them. I've been trying to decipher exactly what
> config_win.py does, and have a bit of a better understanding. But I still
> don't get exactly what I'm supposed to add there, such that the config file
> finds headers and libraries correctly.
>
> -Tyler
>
>
> On Wed, Aug 12, 2009 at 1:14 PM, Tyler Laing  wrote:
>
>> Oddly enough, I've already compiled ffmpeg, and its... weird, yeah. I'll
>> try recompiling the ffmpeg libraries again. Hmm, if all the libraries work,
>> then I don't need to use the prebuilt libraries. I'll be back in a bit with
>> the results.
>>
>> -Tyler
>>
>>
>> On Wed, Aug 12, 2009 at 1:11 PM, René Dudfield  wrote:
>>
>>> cool, it's a whole bunch of missing symbols.
>>>
>>> So you need to find out where those symbols should be defined, and to
>>> link in the libraries that find them.
>>>
>>> Is this compiling ffmpeg?
>>>
>>>
>>> On Wed, Aug 12, 2009 at 9:04 PM, Tyler Laing wrote:
>>> > Here's the pastebin of the log:
>>> >
>>> > http://pastebin.com/m55e55246
>>> >
>>> > On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield 
>>> wrote:
>>> >>
>>> >> On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing
>>> wrote:
>>> >> > Unfortunately, same error happens when I compile it manually. When I
>>> >> > compiled each of the .o's I used the other lib and include dirs
>>> instead
>>> >> > of
>>> >> > the prebuilt. Same error, just different paths.
>>> >> >
>>> >> > -Tyler
>>> >> >
>>> >>
>>> >>
>>> >> What is the error message?
>>> >
>>> >
>>> >
>>> > --
>>> > Visit my blog at http://oddco.ca/zeroth/zblog
>>> >
>>>
>>
>>
>>
>> --
>> Visit my blog at http://oddco.ca/zeroth/zblog
>>
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Okay, so I got everything recompiled, it all compiles fine(except portmidi,
but I just used Lenard's prebuilt ones).

So I was trying to not use the prebuilt dir, as it just doesn't quite work.
The dlls are all in C:\msys\1.0\local\ include and lib directories. The
config file just can't find them. I've been trying to decipher exactly what
config_win.py does, and have a bit of a better understanding. But I still
don't get exactly what I'm supposed to add there, such that the config file
finds headers and libraries correctly.

-Tyler

On Wed, Aug 12, 2009 at 1:14 PM, Tyler Laing  wrote:

> Oddly enough, I've already compiled ffmpeg, and its... weird, yeah. I'll
> try recompiling the ffmpeg libraries again. Hmm, if all the libraries work,
> then I don't need to use the prebuilt libraries. I'll be back in a bit with
> the results.
>
> -Tyler
>
>
> On Wed, Aug 12, 2009 at 1:11 PM, René Dudfield  wrote:
>
>> cool, it's a whole bunch of missing symbols.
>>
>> So you need to find out where those symbols should be defined, and to
>> link in the libraries that find them.
>>
>> Is this compiling ffmpeg?
>>
>>
>> On Wed, Aug 12, 2009 at 9:04 PM, Tyler Laing wrote:
>> > Here's the pastebin of the log:
>> >
>> > http://pastebin.com/m55e55246
>> >
>> > On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield 
>> wrote:
>> >>
>> >> On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing
>> wrote:
>> >> > Unfortunately, same error happens when I compile it manually. When I
>> >> > compiled each of the .o's I used the other lib and include dirs
>> instead
>> >> > of
>> >> > the prebuilt. Same error, just different paths.
>> >> >
>> >> > -Tyler
>> >> >
>> >>
>> >>
>> >> What is the error message?
>> >
>> >
>> >
>> > --
>> > Visit my blog at http://oddco.ca/zeroth/zblog
>> >
>>
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


[pygame] Re: BUG: pygame 1.9.1 extraneous output

2009-08-12 Thread Robert Xiao
On Aug 11, 4:55 am, Len  wrote:
> Hi,
>
> Unless I've built 1.9.1 wrong, it looks like there are several
> executable (debug-type) printf() statements embedded in joystick.c ...
> the test code below shows the output from one of them - it's pretty
> rudimentary, plug in a joystick first!
These are present in the prebuilt pygame for Windows as well.

> I didn't see any references to these in the list archives up to August
> 9, so I'll apologize in advance if they've already been reported.
I was about to report these when I saw your post.

The offending statements were added in revision 2131 to joystick.c
(ViewCVS: 
http://www.seul.org/viewcvs/viewcvs.cgi?rev=2131&root=PyGame&view=rev).
I'm not sure what's being tested, but these statements definitely do
not belong there (at the very least, they should be protected by
#ifdef DEBUG).

Robert


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Oddly enough, I've already compiled ffmpeg, and its... weird, yeah. I'll try
recompiling the ffmpeg libraries again. Hmm, if all the libraries work, then
I don't need to use the prebuilt libraries. I'll be back in a bit with the
results.

-Tyler

On Wed, Aug 12, 2009 at 1:11 PM, René Dudfield  wrote:

> cool, it's a whole bunch of missing symbols.
>
> So you need to find out where those symbols should be defined, and to
> link in the libraries that find them.
>
> Is this compiling ffmpeg?
>
>
> On Wed, Aug 12, 2009 at 9:04 PM, Tyler Laing wrote:
> > Here's the pastebin of the log:
> >
> > http://pastebin.com/m55e55246
> >
> > On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield  wrote:
> >>
> >> On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing
> wrote:
> >> > Unfortunately, same error happens when I compile it manually. When I
> >> > compiled each of the .o's I used the other lib and include dirs
> instead
> >> > of
> >> > the prebuilt. Same error, just different paths.
> >> >
> >> > -Tyler
> >> >
> >>
> >>
> >> What is the error message?
> >
> >
> >
> > --
> > Visit my blog at http://oddco.ca/zeroth/zblog
> >
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread René Dudfield
cool, it's a whole bunch of missing symbols.

So you need to find out where those symbols should be defined, and to
link in the libraries that find them.

Is this compiling ffmpeg?


On Wed, Aug 12, 2009 at 9:04 PM, Tyler Laing wrote:
> Here's the pastebin of the log:
>
> http://pastebin.com/m55e55246
>
> On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield  wrote:
>>
>> On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing wrote:
>> > Unfortunately, same error happens when I compile it manually. When I
>> > compiled each of the .o's I used the other lib and include dirs instead
>> > of
>> > the prebuilt. Same error, just different paths.
>> >
>> > -Tyler
>> >
>>
>>
>> What is the error message?
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Here's the pastebin of the log:

http://pastebin.com/m55e55246

On Wed, Aug 12, 2009 at 1:02 PM, René Dudfield  wrote:

> On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing wrote:
> > Unfortunately, same error happens when I compile it manually. When I
> > compiled each of the .o's I used the other lib and include dirs instead
> of
> > the prebuilt. Same error, just different paths.
> >
> > -Tyler
> >
>
>
> What is the error message?
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread René Dudfield
On Wed, Aug 12, 2009 at 8:54 PM, Tyler Laing wrote:
> Unfortunately, same error happens when I compile it manually. When I
> compiled each of the .o's I used the other lib and include dirs instead of
> the prebuilt. Same error, just different paths.
>
> -Tyler
>


What is the error message?


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Unfortunately, same error happens when I compile it manually. When I
compiled each of the .o's I used the other lib and include dirs instead of
the prebuilt. Same error, just different paths.

-Tyler

On Wed, Aug 12, 2009 at 12:40 PM, Tyler Laing  wrote:

> I haven't tried that yet, but I will now.
>
> On Wed, Aug 12, 2009 at 12:34 PM, René Dudfield  wrote:
>
>> Are you able to compile it manually?
>>
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
I haven't tried that yet, but I will now.

On Wed, Aug 12, 2009 at 12:34 PM, René Dudfield  wrote:

> Are you able to compile it manually?
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread René Dudfield
Are you able to compile it manually?


[pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Okay, I would really appreciate some explanation of how I am supposed to
modify Setup_win.py.

My extension(_movie) needs these libraries specifically: avformat, swscale,
and SDL_mixer. avformat, and swscale require avcodec, avdevice, and avutil
to work properly.

What does each argument of Dependency.__init__ mean?

I am currently doing this:

dep = Dependency('FFMPEG', [r'avformat\.dll', r'swscale\.dll',
r'SDL_mixer-[1-9].*'], ['avformat', 'swscale', 'SDL_mixer'], required=0)
DEPS.dependencies.append(dep)
DEPS.dlls.append(DependencyDLL(r'avformat\.dll', link=dep,
libs=['avformat']))
DEPS.dlls.append(DependencyDLL(r'swscale\.dll', link=dep, libs=['swscale']))
DEPS.dlls.append(DependencyDLL(r'(lib){0,1}SDL_mixer\.dll$', link=dep,
libs=['SDL', 'vorbisfile', 'smpeg']))

because if I need multiple libraries(which I assume libs is for), I can't
use DEPS.add(args), because then the libs in Dependency would be
[[libraries]] which makes it crash. What is the purpose of the DLL stuff?

I need these answers, soon, please. I've already gone to IRC and no one was
around willing or able to help.

-Tyler

On Wed, Aug 12, 2009 at 9:49 AM, Tyler Laing  wrote:

> Finally got it to work. Had to alter the Setup_win.in in the prebuilt
> directory to add my extension, to get it compiled. Now its actually
> compiling it looks like.
>
> I however, was wondering, what compiler flag can I check for conditional
> compilation for support of Windows?
>
> -Tyler
>
>
> On Tue, Aug 11, 2009 at 2:33 PM, Tyler Laing  wrote:
>
>> Here's a picture of the dll error since msys won't let me copy terminal
>> text...
>>
>> -Tyler
>>
>>
>> On Tue, Aug 11, 2009 at 2:18 PM, Tyler Laing  wrote:
>>
>>> I've determined I am supposed to use config_win.py, by checking the .pyc
>>> files.
>>>
>>> Now, I've added this:
>>>
>>> dep = Dependency('FFMPEG', [r'avformat\.dll', r'swscale\.dll',
>>> r'SDL_mixer-[1-9].*'], ['avformat', 'swscale', 'SDL_mixer'], required=0)
>>> DEPS.dependencies.append(dep)
>>> DEPS.dlls.append(DependencyDLL(r'avformat\.dll|swscale\.dll|SDL_mixer-[1-9].*',
>>> link=dep, libs=['avformat', 'swscale', 'SDL_mixer']))
>>>
>>> Is that correct?
>>>
>>> I'm getting an error from python setup.py build --compiler=mingw32 which
>>> says basically, that it can't find any dlls. How am I supposed to run it?
>>>
>>> -Tyler
>>>
>>>
>>> On Tue, Aug 11, 2009 at 1:47 PM, Tyler Laing wrote:
>>>
 Exactly as the title says. How do I add a new extension to compile to
 the windows compilation order for pygame? I know Setup.in needs the
 modification, which it does. But I also know that one of the config files
 needs to be modified. In config_unix.py, I use:

 Dependency('FFMPEG', 'libavformat/avformat.h', 'libavformat.a',
 ['avformat', 'swscale', 'SDL_mixer']),

 and it works.

 Do I modify config_win.py or config_msys.py? And what do I do to add to
 it? Obviously, I need to somehow tell it to target the three necessary 
 dlls.

 -Tyler

 --
 Visit my blog at http://oddco.ca/zeroth/zblog

>>>
>>>
>>>
>>> --
>>> Visit my blog at http://oddco.ca/zeroth/zblog
>>>
>>
>>
>>
>> --
>> Visit my blog at http://oddco.ca/zeroth/zblog
>>
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] default font

2009-08-12 Thread Bo Jangeborg

thanks :)

James Paige skrev:

On Wed, Aug 12, 2009 at 04:04:56PM +0200, Bo Jangeborg wrote:
  

Two problems with pygame.font.SysFont:

1.
How do I determine which font face it actually returned ? If
it fails it returns the default font, but how do I know that
it failed ?

2.
If I make an exe file with py2exe,  freesansbold.ttf is not copied
with it. So when I use pygame.font.SysFont it fails without
an error message and just terminates the application. Try: and
except: wont catch it which seems a bit harsh. It Took me a while
to figure it out.
I tried to put the font in the same directory as the exe and
in the library.zip, and all over the place in the build
directory but neither works. Any way to make it work ?
Or is it broken ?

Bo)



Personally I never use the default font. I always include the ttf file 
with my game's data files, and load it explicitly.


However, there is a workaround for the problem you describe here:

  http://pygame.org/wiki/Pygame2exe

I don't know how current that page is.

---
James Paige



No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.392 / Virus Database: 270.13.52/2298 - Release Date: 08/12/09 06:09:00


  




[pygame] unsubscribe

2009-08-12 Thread Keith Nemitz
unsubscribe


[pygame] Re: Adding a new extension to the Windows compilation order

2009-08-12 Thread Tyler Laing
Finally got it to work. Had to alter the Setup_win.in in the prebuilt
directory to add my extension, to get it compiled. Now its actually
compiling it looks like.

I however, was wondering, what compiler flag can I check for conditional
compilation for support of Windows?

-Tyler

On Tue, Aug 11, 2009 at 2:33 PM, Tyler Laing  wrote:

> Here's a picture of the dll error since msys won't let me copy terminal
> text...
>
> -Tyler
>
>
> On Tue, Aug 11, 2009 at 2:18 PM, Tyler Laing  wrote:
>
>> I've determined I am supposed to use config_win.py, by checking the .pyc
>> files.
>>
>> Now, I've added this:
>>
>> dep = Dependency('FFMPEG', [r'avformat\.dll', r'swscale\.dll',
>> r'SDL_mixer-[1-9].*'], ['avformat', 'swscale', 'SDL_mixer'], required=0)
>> DEPS.dependencies.append(dep)
>> DEPS.dlls.append(DependencyDLL(r'avformat\.dll|swscale\.dll|SDL_mixer-[1-9].*',
>> link=dep, libs=['avformat', 'swscale', 'SDL_mixer']))
>>
>> Is that correct?
>>
>> I'm getting an error from python setup.py build --compiler=mingw32 which
>> says basically, that it can't find any dlls. How am I supposed to run it?
>>
>> -Tyler
>>
>>
>> On Tue, Aug 11, 2009 at 1:47 PM, Tyler Laing  wrote:
>>
>>> Exactly as the title says. How do I add a new extension to compile to the
>>> windows compilation order for pygame? I know Setup.in needs the
>>> modification, which it does. But I also know that one of the config files
>>> needs to be modified. In config_unix.py, I use:
>>>
>>> Dependency('FFMPEG', 'libavformat/avformat.h', 'libavformat.a',
>>> ['avformat', 'swscale', 'SDL_mixer']),
>>>
>>> and it works.
>>>
>>> Do I modify config_win.py or config_msys.py? And what do I do to add to
>>> it? Obviously, I need to somehow tell it to target the three necessary dlls.
>>>
>>> -Tyler
>>>
>>> --
>>> Visit my blog at http://oddco.ca/zeroth/zblog
>>>
>>
>>
>>
>> --
>> Visit my blog at http://oddco.ca/zeroth/zblog
>>
>
>
>
> --
> Visit my blog at http://oddco.ca/zeroth/zblog
>



-- 
Visit my blog at http://oddco.ca/zeroth/zblog


Re: [pygame] default font

2009-08-12 Thread James Paige
On Wed, Aug 12, 2009 at 04:04:56PM +0200, Bo Jangeborg wrote:
> Two problems with pygame.font.SysFont:
> 
> 1.
> How do I determine which font face it actually returned ? If
> it fails it returns the default font, but how do I know that
> it failed ?
> 
> 2.
> If I make an exe file with py2exe,  freesansbold.ttf is not copied
> with it. So when I use pygame.font.SysFont it fails without
> an error message and just terminates the application. Try: and
> except: wont catch it which seems a bit harsh. It Took me a while
> to figure it out.
> I tried to put the font in the same directory as the exe and
> in the library.zip, and all over the place in the build
> directory but neither works. Any way to make it work ?
> Or is it broken ?
> 
> Bo)

Personally I never use the default font. I always include the ttf file 
with my game's data files, and load it explicitly.

However, there is a workaround for the problem you describe here:

  http://pygame.org/wiki/Pygame2exe

I don't know how current that page is.

---
James Paige


[pygame] unsubscribe

2009-08-12 Thread Frozenball
unsubscribe


[pygame] default font

2009-08-12 Thread Bo Jangeborg

Two problems with pygame.font.SysFont:

1.
How do I determine which font face it actually returned ? If
it fails it returns the default font, but how do I know that
it failed ?

2.
If I make an exe file with py2exe,  freesansbold.ttf is not copied
with it. So when I use pygame.font.SysFont it fails without
an error message and just terminates the application. Try: and
except: wont catch it which seems a bit harsh. It Took me a while
to figure it out.
I tried to put the font in the same directory as the exe and
in the library.zip, and all over the place in the build
directory but neither works. Any way to make it work ?
Or is it broken ?

Bo)