Page 1 of 1

trying cross compilation for mips but getting LIBTOOL error

Posted: 04 Feb 2011 17:11
by gouravdata
Hi
I am trying to compile vlc 1.15 with mips tool chain. I am running following command

PATH=/opt/toolchain//bin:$PATH
cd extra/contrib
./bootstrap mips-linux-uclib
make src
cd src/fribidi
After running this ./configure goes fine. But when i run make i am getting following errors.


make: Warning: File `Makefile' has modification time 1.5e+04 s in the future
cd . && /bin/bash /home/gourav/Desktop/working/vlc-1.1.5/extras/contrib/src/fribidi/missing --run automake-1.11 --gnits
charset/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
charset/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
charset/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again.
charset/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
charset/Makefile.am:1: its definition is in aclocal's search path.
lib/Headers.mk:22: shell cat $(top_srcdir: non-POSIX variable name
lib/Headers.mk:22: (probably a GNU make extension)
doc/Makefile.am:26: `lib/Headers.mk' included from here
lib/Headers.mk:22: shell cat $(top_srcdir: non-POSIX variable name
lib/Headers.mk:22: (probably a GNU make extension)
lib/Makefile.am:26: `lib/Headers.mk' included from here
lib/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
lib/Makefile.am:3: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
lib/Makefile.am:3: to `configure.ac' and run `aclocal' and `autoconf' again.
lib/Makefile.am:3: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
lib/Makefile.am:3: its definition is in aclocal's search path.
test/Makefile.am:25: `%'-style pattern rules are a GNU make extension
make: *** [Makefile.in] Error 1

I did lot of google but found that libtool is missing. But i have libtool install in my system. I have autoconf, automake, aclocal, gettext installed and their version is given below.

aclocal (GNU automake) 1.11.1
automake (GNU automake) 1.11.1
autoconf (GNU Autoconf) 2.68
gettext (GNU gettext-runtime) 0.18.1
ltmain.sh (GNU libtool) 2.2.6
pkg-config .25

But i am still getting the error. Can someone please tell me what should i do. I am stuck at this point since last 2 days.
Please give some input so that i can do something further.

Gourav

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 04 Feb 2011 17:15
by Jean-Baptiste Kempf
Run
libtoolize --version

to check.

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 04 Feb 2011 17:22
by gouravdata
Hi J-b

libtoolize 2.2.6

Plz suggest something, i am really looking for ur reply.

Thanks
Gourav

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 04 Feb 2011 17:40
by Jean-Baptiste Kempf
Well, you shouldn't make inside src/fribidi
You should just make in extras/contrib/

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 04 Feb 2011 18:26
by gouravdata
Hi j-b

I am running "make src" for /extra/contrib only. I am still getting the same error.

Path from where i am running
/home/gourav/Desktop/working/vlc-1.1.5/extras/contrib
./bootstrap mipsel-linux-uclibc
make src


I hope this is correct. Any other suggestion or something i m missing?

Thanks
Gourav

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 04 Feb 2011 18:39
by gouravdata
Hi j-b
Just to make everything fine i did make disclean and again did bootstarpm make src
i got the following error

patching file fribidi/fribidi.pc.in
patching file fribidi/lib/fribidi-common.h
( cd fribidi; rm -f configure; ./bootstrap)
Usable autoreconf found, running
configure.ac:78: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:79: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
make[1]: *** [fribidi] Error 1
make[1]: Leaving directory `/home/gourav/Desktop/working/vlc-1.1.5/extras/contrib/src'
make: *** [using-src] Error 2


Regards
Gourav

Re: trying cross compilation for mips but getting LIBTOOL er

Posted: 05 Feb 2011 11:46
by gouravdata
Hi

Can someone suggest what i am missing or what i need to do to fix this error.

Regards
Gourav