Automake possibly the worst thing ever

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.

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?

Extremely frustrated with automake right now.

~
Doug.


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

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?

Extremely frustrated with automake right now.

~
Doug.

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

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On 09/21/2013 09:29 PM, Doug wrote:

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 <john at leafygreengames.com <mailto:john at leafygreengames.com>> 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

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

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/

iQEcBAEBAgAGBQJSPkoFAAoJEG1mXZJKEjy27TkIAL3sBw+O2z0HgwT6wq5LN6PF
zQKJhxeS8ioPXGLv78Y/1BbJu7j1JyNSEJWzVwOXtl+HoNuwqOda+b8qwqAV5Y+G
FHMIAeksxx2Q7NLVEa5ADvztegbOZmg1cKTCWug3z9O51eHl+c9wvLj3bcyE8qzJ
pEhdgLkt5BQkgRRQl1M90tCrzctNaOj7UoYKTawmafqd8wv1JIcyomxa1D73V6YM
keIzdyDaPGPJJvNes8cXGN0a7XAcEw0v+e9V/NYvwmSnfBsJm5/v2x5RvvZRuIjP
WYvguzVexxKUM2DE096cUt09n+x8BNXaHQUi9Mn3lI0fNUC5sQXszvQif2Z02KQ=
=W7aN
-----END PGP SIGNATURE-----

Ah, right. Like I said, save your notes :slight_smile: 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.

CPPFLAGS=-I$prefix/include
LDFLAGS="-L$prefix/lib"
LIBS="-lvorbisfile -lvorbis -logg -lm"
./configure
–with-sdl-prefix=$prefix
–prefix=$prefix
–enable-static
–disable-shared
–disable-dependency-tracking
–disable-smpegtest
–disable-sdltest
–enable-music-ogg
–disable-music-ogg-shared
–disable-music-flac
–disable-music-flac-shared
–disable-music-mp3
–disable-music-mp3-shared
–disable-music-mod
–disable-music-mod-shared
–disable-music-midi
–disable-music-timidity-midi
–disable-music-native-midi
–disable-music-native-midi-gplOn 09/21/2013 09:29 PM, Doug wrote:

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>

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