So I’ve spent the last couple of hours trying to create a statically linked
binary that includes libogg and sdl_mixer, but because the automake scripts
are so ridiculously hard to work with, I’m having a hard time trying to
port the stuff that’s already there to smpeg to libogg and libvorbis.
Has anyone managed to get this to work before / have any tips?
Extremely frustrated with automake right now.~
Doug.
You can take a look at exult’s SVN source code (http://exult.sf.net). I regularily build static linked snapshots for OS X using configure switches. Our configure.ac includes instructions for OS X and linux (I think, OS X needs more loop jumping than linux).
This is done for SDL, ogg/vorbis
Keep trying. And save your notes. It’s possible.
Never had a problem with ogg and vorbis.
Use --disable-shared --enable-staticOn 09/21/2013 01:00 AM, Doug wrote:
sigh
So I’ve spent the last couple of hours trying to create a statically linked
binary that includes libogg and sdl_mixer, but because the automake scripts are
so ridiculously hard to work with, I’m having a hard time trying to port the
stuff that’s already there to smpeg to libogg and libvorbis.
Has anyone managed to get this to work before / have any tips?
The real trouble is trying to build sdl_mixer at all if you don’t have a
global copy of vorbis or ogg installed.
The best solution so far seems to be to use --enable-music-ogg-shared=no
and simple install a system wide copy of ogg and vorbis so configure will
run, and then manually use the binaries.
For reasons mysterious to me, the linking of the shared libraries uses the
ones installed statically in to a local folder if you use
–with-sdl-prefix, even though the libraries it detects are the system
wide ones.
Crazyness~~
Doug.
On Sat, Sep 21, 2013 at 10:59 PM, John wrote:
Keep trying. And save your notes. It’s possible.
Never had a problem with ogg and vorbis.
Use --disable-shared --enable-static
On 09/21/2013 01:00 AM, Doug wrote:
sigh
So I’ve spent the last couple of hours trying to create a statically
linked
binary that includes libogg and sdl_mixer, but because the automake
scripts are
so ridiculously hard to work with, I’m having a hard time trying to port
the
stuff that’s already there to smpeg to libogg and libvorbis.
Has anyone managed to get this to work before / have any tips?
The real trouble is trying to build sdl_mixer at all if you don’t
have a global copy of vorbis or ogg installed.
The best solution so far seems to be to use
–enable-music-ogg-shared=no and simple install a system wide copy
of ogg and vorbis so configure will run, and then manually use the
binaries.
For reasons mysterious to me, the linking of the shared libraries
uses the ones installed statically in to a local folder if you use
–with-sdl-prefix, even though the libraries it detects are the
system wide ones.
Keep trying. And save your notes. It’s possible. Never had a
problem with ogg and vorbis. Use --disable-shared --enable-static
On 09/21/2013 01:00 AM, Doug wrote:
sigh
So I’ve spent the last couple of hours trying to create a
statically linked binary that includes libogg and sdl_mixer, but
because the automake scripts are so ridiculously hard to work with,
I’m having a hard time trying to port the stuff that’s already
there to smpeg to libogg and libvorbis.
Has anyone managed to get this to work before / have any tips?
I agree with you there use cmake, all you have to do is google for a
FindSDL2.cmake module and you will be fine. I would give you mine but
I don’t know the policy on file uploading to the list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
Ah, right. Like I said, save your notes SDL_mixer does have its ups and
downs. Here’s my SDL_mixer build. All static, custom prefix. The comment in my
script apparently refers to a workaround for what you’ve just discovered.
These are so autoconf will find ogg/vorbis during the configure run.
The real trouble is trying to build sdl_mixer at all if you don’t have a global
copy of vorbis or ogg installed.
The best solution so far seems to be to use --enable-music-ogg-shared=no and
simple install a system wide copy of ogg and vorbis so configure will run, and
then manually use the binaries.
For reasons mysterious to me, the linking of the shared libraries uses the ones
installed statically in to a local folder if you use --with-sdl-prefix, even
though the libraries it detects are the system wide ones.
Crazyness~
~
Doug.
On Sat, Sep 21, 2013 at 10:59 PM, John <@John6 mailto:John6> wrote:
Keep trying. And save your notes. It's possible.
Never had a problem with ogg and vorbis.
Use `--disable-shared --enable-static`
On 09/21/2013 01:00 AM, Doug wrote:
*sigh*
So I've spent the last couple of hours trying to create a statically linked
binary that includes libogg and sdl_mixer, but because the automake
scripts are
so ridiculously hard to work with, I'm having a hard time trying to port the
stuff that's already there to smpeg to libogg and libvorbis.
Has anyone managed to get this to work before / have any tips?
Extremely frustrated with automake right now.
~
Doug.
_________________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/__listinfo.cgi/sdl-libsdl.org
<http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>
_________________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/__listinfo.cgi/sdl-libsdl.org
<http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>