Building SMPEG on MacOSX

I am trying to make a version of BASIC derived from sdlBasic but the runtime
library depends on SMPEG to play MP3s and video files.

I’ve downloaded the SMPEG source from Icculus and run autoconf and automake
on the files there. They each complained about some files missing and the
resultant configure script bombs out with an error after it identifies my
machine as an Intel-based DarwinBSD machine.

The instructions listed in the directory suggested that there would be a
ready-made makefile but there wasn’t one there.

I’d welcome any suggestions of how to build SMPEG on my MacOSX 10.5.4 system.

When we built it for Haiku we used this patch:
http://svn.gna.org/viewcvs/pingwinek/trunk/packages/smpeg/smpeg-upstream.patch?rev=9758&view=markup
Might work for OSX?
Not sure why this patch hasn’t been added to SMPEG’s svn…
-scottmcOn Tue, Jan 20, 2009 at 5:26 PM, Samuel Crow wrote:

I am trying to make a version of BASIC derived from sdlBasic but the runtime
library depends on SMPEG to play MP3s and video files.

I’ve downloaded the SMPEG source from Icculus and run autoconf and automake
on the files there. They each complained about some files missing and the
resultant configure script bombs out with an error after it identifies my
machine as an Intel-based DarwinBSD machine.

The instructions listed in the directory suggested that there would be a
ready-made makefile but there wasn’t one there.

I’d welcome any suggestions of how to build SMPEG on my MacOSX 10.5.4 system.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

scott mc <scottmc2 gmail.com> writes:

When we built it for Haiku we used this patch:

http://svn.gna.org/viewcvs/pingwinek/trunk/packages/smpeg/smpeg-upstream.patch?rev=9758&view=markup

Might work for OSX?
Not sure why this patch hasn’t been added to SMPEG’s svn…
-scottmc

I think your patch applies to version 0.4.4 and 0.4.5 is what the current
version is. I applied it anyway and added a line to configure.in to get the
autogen.sh file to work. This generated a semi-functional configure script
that ran all the way through. The resultant makefile worked all the way
through the build but the install target didn’t work correctly even as admin.
I looked at the default locations in smpeg-config and copied all of the
appropriate files there.

After that, I got SDLengine.a to build! I can make an Intel Mac version of
BASIC now.

Thanks Scott,

–Sam

Sam,
Not sure if this also works on OSX, but if you want to get a shared
lib (.so file) try running libtoolize --force --copy, then aclocal,
autoconf, automake then run ./configure as you did before. This seems
to force the OS specific cases to be added into configure.
Is that version of BASIC available as source code?
-scottOn Wed, Jan 21, 2009 at 12:45 PM, Samuel Crow wrote:

scott mc <scottmc2 gmail.com> writes:

When we built it for Haiku we used this patch:

http://svn.gna.org/viewcvs/pingwinek/trunk/packages/smpeg/smpeg-upstream.patch?rev=9758&view=markup

Might work for OSX?
Not sure why this patch hasn’t been added to SMPEG’s svn…
-scottmc

I think your patch applies to version 0.4.4 and 0.4.5 is what the current
version is. I applied it anyway and added a line to configure.in to get the
autogen.sh file to work. This generated a semi-functional configure script
that ran all the way through. The resultant makefile worked all the way
through the build but the install target didn’t work correctly even as admin.
I looked at the default locations in smpeg-config and copied all of the
appropriate files there.

After that, I got SDLengine.a to build! I can make an Intel Mac version of
BASIC now.

Thanks Scott,

–Sam


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

scott mc <scottmc2 gmail.com> writes:

Sam,
Not sure if this also works on OSX, but if you want to get a shared
lib (.so file) try running libtoolize --force --copy, then aclocal,
autoconf, automake then run ./configure as you did before. This seems
to force the OS specific cases to be added into configure.
Is that version of BASIC available as source code?
-scott

Hello again Scott,

The website for sdlBasic is http://www.sdlbasic.altervista.org/main/index.php
and the stable release is called Actarus. You can find the source under the
Software menu on the website.

Thanks again,

–Sam