I have been working on cross-compiling Octave for Android and have
succeeded (with a small number of features scaled back).  But, Octave
relies on makeinfo for displaying some of its documentation.

First issue:

First I run:
./configure -host=arm-linux-androideabi &> config.txt
That seems fine.  Then if I run:
make
I get this:
make[4]: Entering directory `/home/corbin/android/texinfo-4.13/tools/info'
gcc -DHAVE_CONFIG_H -I. -I/home/corbin/android/texinfo-4.13/info -I..
-I/home/corbin/android/texinfo-4.13
-I/home/corbin/android/texinfo-4.13/gnulib/lib -I../gnulib/lib
-DLOCALEDIR=\"/usr/local/share/locale\" -DINFODIR=\"/usr/local/share/info\"
-DINFODIR2=\"/usr/local/share/info\"   -g -O2 -MT makedoc.o -MD -MP -MF
.deps/makedoc.Tpo -c -o makedoc.o
/home/corbin/android/texinfo-4.13/info/makedoc.c
mv -f .deps/makedoc.Tpo .deps/makedoc.Po
make[4]: *** No rule to make target `../gnulib/lib/libgnu.a', needed by
`makedoc'.  Stop.
Does the make flow not build libgnu.a automatically?

Second issue:

I really only need makeinfo, so if I:
cd makeinfo; make
I get some errors right away specific to some issues they have solved in
gnulib for Android

The version of gnulib that is used by release 4.13 (looks like the latest)
is old and doesn't have some changes that allow gnulib to be built for
Android.  So, I want to update gnulib.  This is what I did:
gnulib-tool --import --m4-base=gnulib/m4 --source-base=gnulib/lib
--no-vc-files getopt
and that seems to have touched many of the files under libgnu...great.

Then if I do:
cd makeinfo; make
I get further, but I get:
index.c:52: error: 'mbscasecmp' undeclared here (not in a function)
I don't see where mbscasecmp.h is being included by any file.  How is this
not normally a problem?

Third issue:

Now that I have updated gnulib and have noticed that libgnu.a is not being
built automatically, I do:
cd gnulib/lib
make
That fails on:
./sys/time.h:23: error: stray '@' in program
What normally fills in those @PRAGMA@ lines in the gnulib files?

Forth issue:
I had to update which config.guess and config.sub I used, but I have had to
do that for just about everything I have built for Android.

Any help would be great!
Thanks,
Corbin

Reply via email to