SDL_mixer on Android

Is it supported? How to setup everything? There is no nice
README.android for SDL_mixer repo :frowning:

I have SDL_mixer working for me, but only without Mikmod. I’ll attach the
Android.mk files that I’ve found. Put the SDL_mixer one into the SDL_mixer
directory. Then put that directory into the jni directory. You’ll need
tremor (which seems a little tough to find sometimes) and tremor needs
libogg.

Jonny DOn Tue, Mar 19, 2013 at 12:36 PM, Alexey Petruchik wrote:

Is it supported? How to setup everything? There is no nice
README.android for SDL_mixer repo :frowning:


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

-------------- next part --------------
A non-text attachment was scrubbed…
Name: Android.mk
Type: application/octet-stream
Size: 523 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130319/ab9560cd/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Android.mk
Type: application/octet-stream
Size: 809 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130319/ab9560cd/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed…
Name: Android.mk
Type: application/octet-stream
Size: 791 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130319/ab9560cd/attachment-0002.obj

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.On Tue, Mar 19, 2013 at 7:57 PM, Jonathan Dearborn wrote:

I have SDL_mixer working for me, but only without Mikmod. I’ll attach the
Android.mk files that I’ve found. Put the SDL_mixer one into the SDL_mixer
directory. Then put that directory into the jni directory. You’ll need
tremor (which seems a little tough to find sometimes) and tremor needs
libogg.

Jonny D

On Tue, Mar 19, 2013 at 12:36 PM, Alexey Petruchik wrote:

Is it supported? How to setup everything? There is no nice
README.android for SDL_mixer repo :frowning:


SDL mailing list
SDL at lists.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

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the older
ones, but I’d stick with the HG one since ideally you should use the latest
SDL HG (and I suggest so, mostly for the new touch api that does not need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/http://etw.svn.sourceforge.net/viewvc/etw/trunk/android-project/

If it can be useful to you, I’ve included in the SVN also a full tree of
libtremor, with a premade Android.mk.On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:


Bye,
Gabry

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the older
ones, but I’d stick with the HG one since ideally you should use the latest
SDL HG (and I suggest so, mostly for the new touch api that does not need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree of
libtremor, with a premade Android.mk.


Bye,
Gabry


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

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others ;)On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the older
ones, but I’d stick with the HG one since ideally you should use the latest
SDL HG (and I suggest so, mostly for the new touch api that does not need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree of
libtremor, with a premade Android.mk.


Bye,
Gabry


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

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, AlexeyOn Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the older
ones, but I’d stick with the HG one since ideally you should use the latest
SDL HG (and I suggest so, mostly for the new touch api that does not need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree of
libtremor, with a premade Android.mk.


Bye,
Gabry


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

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny DOn Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco < gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and

vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do

not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the older
ones, but I’d stick with the HG one since ideally you should use the
latest

SDL HG (and I suggest so, mostly for the new touch api that does not
need

SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download
the

SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that
is

located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree
of

libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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

Hmmm, you probably have some kind of patched libtremor. Just look at
misc.h in seems-to-be-official repo:
http://svn.xiph.org/trunk/Tremor/misc.hOn Fri, Apr 12, 2013 at 4:51 PM, Jonathan Dearborn wrote:

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny D

On Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the
older
ones, but I’d stick with the HG one since ideally you should use the
latest
SDL HG (and I suggest so, mostly for the new touch api that does not
need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download
the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that
is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree
of
libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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


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

Where did you got your libtremor sources btw?On Fri, Apr 12, 2013 at 4:59 PM, Alexey Petruchik wrote:

Hmmm, you probably have some kind of patched libtremor. Just look at
misc.h in seems-to-be-official repo:
http://svn.xiph.org/trunk/Tremor/misc.h

On Fri, Apr 12, 2013 at 4:51 PM, Jonathan Dearborn wrote:

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny D

On Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik wrote:

Thank you for your response. I’ll look through files you attached in
next few days. But in my opinion there should be some README.android
in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the
older
ones, but I’d stick with the HG one since ideally you should use the
latest
SDL HG (and I suggest so, mostly for the new touch api that does not
need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can download
the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ), that
is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full tree
of
libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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


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

Yep, that’s right.

Jonny DOn Fri, Apr 12, 2013 at 9:59 AM, Alexey Petruchik wrote:

Hmmm, you probably have some kind of patched libtremor. Just look at
misc.h in seems-to-be-official repo:
http://svn.xiph.org/trunk/Tremor/misc.h

On Fri, Apr 12, 2013 at 4:51 PM, Jonathan Dearborn <@Jonathan_Dearborn> wrote:

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny D

On Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined
twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle this?
It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik < i100500 at gmail.com> wrote:

Thank you for your response. I’ll look through files you attached
in

next few days. But in my opinion there should be some
README.android

in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the
older
ones, but I’d stick with the HG one since ideally you should use the
latest
SDL HG (and I suggest so, mostly for the new touch api that does not
need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can
download

the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ),
that

is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full
tree

of
libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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


SDL mailing list
SDL at lists.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’m not sure where I got them, actually. :-/

Jonny DOn Fri, Apr 12, 2013 at 10:07 AM, Jonathan Dearborn <@Jonathan_Dearborn>wrote:

Yep, that’s right.

Jonny D

On Fri, Apr 12, 2013 at 9:59 AM, Alexey Petruchik wrote:

Hmmm, you probably have some kind of patched libtremor. Just look at
misc.h in seems-to-be-official repo:
http://svn.xiph.org/trunk/Tremor/misc.h

On Fri, Apr 12, 2013 at 4:51 PM, Jonathan Dearborn <@Jonathan_Dearborn> wrote:

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny D

On Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined
twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle
this?

It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik < i100500 at gmail.com> wrote:

Thank you for your response. I’ll look through files you attached
in

next few days. But in my opinion there should be some
README.android

in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the
older
ones, but I’d stick with the HG one since ideally you should use
the

latest
SDL HG (and I suggest so, mostly for the new touch api that does
not

need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can
download

the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ),
that

is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full
tree

of
libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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


SDL mailing list
SDL at lists.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’m not sure where I got them, actually. :-/

Please note that there are a few really outdated libtremor source trees
around in the net.

Try to use the xiph.org one.

At least a pair of them that I’ve found miss important features (there is a
version without the vorbisfile.h header and a version that crashes with SDL
since it has a bug in the ov_close() implementation).On Fri, Apr 12, 2013 at 4:10 PM, Jonathan Dearborn wrote:


Bye,
Gabry

I probably got one of those, which is why I needed libogg (for the
vorbisfile.h).

Jonny DOn Mon, Apr 15, 2013 at 7:06 AM, Gabriele Greco <gabriele.greco at darts.it>wrote:

On Fri, Apr 12, 2013 at 4:10 PM, Jonathan Dearborn <@Jonathan_Dearborn>wrote:

I’m not sure where I got them, actually. :-/

Please note that there are a few really outdated libtremor source trees
around in the net.

Try to use the xiph.org one.

At least a pair of them that I’ve found miss important features (there is
a version without the vorbisfile.h header and a version that crashes with
SDL since it has a bug in the ov_close() implementation).


Bye,
Gabry


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

I got them from cocos2d and patched to work with SDL
https://code.google.com/p/hedgewars/source/browse/#hg%2Fmisc%2Flibtremor

I never ever got the ones from xiph.org to work on ios/android…
On the other hand, on the same svn repo there are so many tremor versions
it’s hard to pick the right one!
VittorioOn Fri, Apr 12, 2013 at 4:07 PM, Alexey Petruchik wrote:

Where did you got your libtremor sources btw?

On Fri, Apr 12, 2013 at 4:59 PM, Alexey Petruchik wrote:

Hmmm, you probably have some kind of patched libtremor. Just look at
misc.h in seems-to-be-official repo:
http://svn.xiph.org/trunk/Tremor/misc.h

On Fri, Apr 12, 2013 at 4:51 PM, Jonathan Dearborn wrote:

I have this at line 46 of misc.h:

#ifndef BYTE_ORDER
#warning “Platform doesn’t define BYTE_ORDER”

#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321

#if (defined(i386) || defined(__i386)) ||
defined(ia64) || defined(WIN32) ||
(defined(alpha) || defined(__alpha)) ||
defined(arm) ||
(defined(mips) && defined(MIPSEL)) ||
defined(SYMBIAN32) ||
defined(x86_64) ||
defined(LITTLE_ENDIAN)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif

Jonny D

On Fri, Apr 12, 2013 at 9:39 AM, Alexey Petruchik wrote:

While compiling libtremor for android I’m getting this error:

jni/tremor/misc.h:57:7: error: redefinition of 'union magic’
jni/tremor/misc.h:47:7: note: originally defined here

It seems that BYTE_ORDER is not defined and union magic is defined
twice:

#if BYTE_ORDER==LITTLE_ENDIAN
union magic {
struct {
ogg_int32_t lo;
ogg_int32_t hi;
} halves;
ogg_int64_t whole;
};
#endif

#if BYTE_ORDER==BIG_ENDIAN
union magic {
struct {
ogg_int32_t hi;
ogg_int32_t lo;
} halves;
ogg_int64_t whole;
};
#endif

Where BYTE_ORDER should be defined for libtremor? Can someone help me
with this? Thanks in advance.
Regards, Alexey

On Mon, Apr 8, 2013 at 3:22 PM, Alexey Petruchik wrote:

Can somebody really experienced with SDL_mixer on android handle
this?

It will save a lot of time for all others :wink:

On Mon, Apr 8, 2013 at 2:52 PM, Alexey Petruchik wrote:

Maybe it is a good idea to provide prebuilt android binaries for any
SDL_mixer dependencies (libtremor, libmikmod) just like we have
prebuilt frameworks for OS X in Xcode/Frameworks?

On Thu, Mar 21, 2013 at 8:38 PM, Gabriele Greco <gabriele.greco at darts.it> wrote:

On Thu, Mar 21, 2013 at 2:03 PM, Alexey Petruchik < i100500 at gmail.com> wrote:

Thank you for your response. I’ll look through files you attached
in

next few days. But in my opinion there should be some
README.android

in SDL_mixer repo for such cases.

Just to add that libtremor does NOT need libogg, it implements
vorbis and
vorbisfile, that is all SDL_Mixer needs, at least in the newest
version (do
not use the bugged version distributed with cocos2d).

HG versions of SDL_mixer have an Android.mk, don’t know about the
older
ones, but I’d stick with the HG one since ideally you should use
the

latest
SDL HG (and I suggest so, mostly for the new touch api that does
not

need
SDL_GetTouch() ).

If you want to see an example of SDL_mixer on android you can
download

the
SVN of my soccer game (Eat the Whistle,
https://play.google.com/store/apps/details?id=org.ggsoft.etw ),
that

is
located here:

http://etw.svn.sourceforge.net/viewvc/etw/trunk/

If it can be useful to you, I’ve included in the SVN also a full
tree

of
libtremor, with a premade Android.mk.


Bye,
Gabry


SDL mailing list
SDL at lists.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


SDL mailing list
SDL at lists.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