Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
An update, after looking at some of the alternatives (and how much work I'd have to do to refactor), I decided to give it one last final shot.

I hunted down everything SDL related and manually deleted it. (Ubuntu doesn't want to let SDL-Mixer go without uninstalling ubuntu-desktop).

One problem I've had repeatedly is smpeg. It doesn't seem to be actively developed and half of the mirrors listed aren't up. Not a good sign. I've always had problems getting it to compile (complaints of syntax errors, usually something to do with friend functions).

So I decided to use smpeg and smpeg-dev and hope I could just build everything else from source. Now I just get pure static.

So I decided to try building smpeg again from src (smpeg-0.4.5+cvs20030824). After much head bashing, I determine I need autotools-1.4 installed (I've got 1.9), so I install that, and now I'm getting token errors about AM_PATH_GTK, after much more googling, I find that this should be defined in some GTK m4 file. So I download every gtk dev package I can find, and now the definition is there, but it still doesn't work.

I try running .configure again (after make realclean) and still no dice. I'm about to give up, and find another post on an unrelated autotools problem mentioning something about running autogen.sh

So I run autogen.sh, run ./configure again, and what do you know. It works.

Not only does it work, everything works pretty much flawlessly, even when suspending and restoring.

Unless something happens, pretty sure I'll be looking at these alternatives for future projects, too much frustration with SDL.

Figured I'd just pass along my resolution in case this helps anybody with similar problems.

Here's the packages I used.

The last source of SDL_Perl-2.1.3 I could get to build, with all my patches to fix the memory leaks, and the addition of panning to SDL::Mixer along with some related constants (the pod has been updated as well), it's available here. mySDL-Perl-2.1.3.tar.gz The following sources.
freetype-2.1.10.tar.gz
jpegsrc.v6b.tar.gz
SDL-1.2.11.tar.gz
SDL_gfx-2.0.13.tar.gz
SDL_image-1.2.5.tar.gz
SDL_mixer-1.2.7.tar.gz
SDL_net-1.2.6.tar.gz
SDL_ttf- 2.0.8.tar.gz
smpeg-0.4.5+cvs20030824
For the GL stuff, I just used the ubuntu packages.

Again, thanks for all the input.

-Lee
"To be civilized is to deny one's nature."

In reply to Re: Alternatives to SDL by shotgunefx
in thread Alternatives to SDL by shotgunefx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found