Page 1 of 1

Problem as cross compile vlc-1.1.4 to MIPS

Posted: 22 Oct 2010 08:01
by zhangtower
i want to corss compile vlc-1.1.4 to a MIPS platform, i can configure and make the source successfully,
but there is no lib*.so file generated in the modules directory, many *.la and *.lo files generated in the modules directory.
and then i execute "make install", the error message display as follow:
make[5]: Entering directory `/home/smp2/vlc/vlc-1.1.4/modules'
if test -z ""; then \
../bin/vlc-cache-gen "/usr/lib/vlc/plugins" ; \
else \
echo "Staged installation: cache generation skipped!" ; \
fi
/bin/bash: line 1: ../bin/vlc-cache-gen: cannot execute binary file
make[5]: *** [install-exec-hook] Error 126
make[5]: Leaving directory `/home/smp2/vlc/vlc-1.1.4/modules'
make[4]: *** [install-exec-am] Error 2
make[4]: Leaving directory `/home/smp2/vlc/vlc-1.1.4/modules'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/smp2/vlc/vlc-1.1.4/modules'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/smp2/vlc/vlc-1.1.4/modules'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/smp2/vlc/vlc-1.1.4'
make: *** [install] Error 2

i don't know the reason and how to do, please somebody help me !
thanks!!!

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 22 Oct 2010 18:14
by Rémi Denis-Courmont
You can't just "make install" when cross-compiling. That would overwrite your build system with cross-compiled binaries.

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 25 Oct 2010 05:29
by zhangtower
OK,I solve the problem!

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 05 Jan 2011 13:30
by richardsycheng
Hi,

I also cross compile the vlc-1.1.4 on mips platform and encounter the same ploblem as yours while make install. Could you tell me how to fix the problem?

Thanks!

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 05 Jan 2011 17:32
by Jean-Baptiste Kempf
Do not make install

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 29 Nov 2011 12:27
by alonm
Since I can't use "make install" when cross-compiling, what is the right procedure to install the package on the target?
Thanks.

Re: Problem as cross compile vlc-1.1.4 to MIPS

Posted: 29 Nov 2011 14:27
by Rémi Denis-Courmont
Whatever the packaging system of the target is...

Usually, you first run something like 'make install DESTDIR=/tmp/buildroot' and then let the packaging system do its job.