Compiling libMAD and libTremor

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Post Reply
Sir^Knigget
Posts: 3
Joined: Sun Dec 09, 2012 3:59 pm

Compiling libMAD and libTremor

Post by Sir^Knigget »

Hi,
I am attempting to compile the project on Android in order to run Simon 1.

I have successfully compiled ScummVM and ran the game, however - I haven't been able to compile the music playing libraries in order to hear Simon's speech.

I act according to these instructions:
http://wiki.scummvm.org/index.php/Compi ... _libraries

The link for the precompiled binaires is broken (404), and when I attemt to compile the libraries myself, I get endless errors from the configuration script (autogen.sh or configure).
I already bypassed one error, and now I am stuck on the following:

Code: Select all

checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
My config.log contains:

Code: Select all

configure:3662: checking how to run the C preprocessor
configure:3702: /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -E  conftest.c
In file included from /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/syslimits.h:7,
                 from /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/limits.h:11,
                 from conftest.c:11:
/Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/limits.h:122:61: error: no include path in which to search for limits.h
configure:3708: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3702&#58; /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -E  conftest.c
In file included from /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/syslimits.h&#58;7,
                 from /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/limits.h&#58;11,
                 from conftest.c&#58;11&#58;
/Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/include-fixed/limits.h&#58;122&#58;61&#58; error&#58; no include path in which to search for limits.h
configure&#58;3708&#58; $? = 1
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3702&#58; /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -E -traditional-cpp  conftest.c
conftest.c&#58;13&#58; error&#58; assert.h&#58; No such file or directory
configure&#58;3708&#58; $? = 1
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3702&#58; /Applications/android-ndk-r7b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -E -traditional-cpp  conftest.c
conftest.c&#58;13&#58; error&#58; assert.h&#58; No such file or directory
configure&#58;3708&#58; $? = 1
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3702&#58; /lib/cpp  conftest.c
./configure&#58; line 3703&#58; /lib/cpp&#58; No such file or directory
configure&#58;3708&#58; $? = 127
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3702&#58; /lib/cpp  conftest.c
./configure&#58; line 3703&#58; /lib/cpp&#58; No such file or directory
configure&#58;3708&#58; $? = 127
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3778&#58; result&#58; /lib/cpp
configure&#58;3807&#58; /lib/cpp  conftest.c
./configure&#58; line 3808&#58; /lib/cpp&#58; No such file or directory
configure&#58;3813&#58; $? = 127
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3807&#58; /lib/cpp  conftest.c
./configure&#58; line 3808&#58; /lib/cpp&#58; No such file or directory
configure&#58;3813&#58; $? = 127
configure&#58; failed program was&#58;
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| 		     Syntax error
configure&#58;3875&#58; error&#58; C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Seems like the script encounters some dependency problem in the NDK toolchain.
It happens both on MAD and Tremor configure scripts, but the main ScummVM configure worked perfectly.

I also tried with NDK r5b as in the instructions.


Does anyone have his own set of precompiled binaries for MAD and Tremor, or knows how to solve this?
Post Reply