Configure can be a little different depending on the version that came with the package you are trying to compile.
But I compiled up mediatomb and ffmpeg last night and here's what I used:
FFMPEG:
./configure --cross-prefix=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/LinuxHost/gcc/bin/arm-none-linux-gnueabi- \
--arch=arm \
--enable-cross-compile \
--prefix=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree \
--enable-nonfree \
--enable-gpl \
--enable-shared
Sometimes you need the CC and CXX environment variables set:
CC=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/LinuxHost/gcc/bin/arm-none-linux-gnueabi-gcc \
CXX=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/LinuxHost/gcc/bin/arm-none-linux-gnueabi-g++ \
CPPFLAGS=-I/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/include \
LDFLAGS=-L/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/lib \
./configure --host=arm-none-linux-gnueabi \
--prefix /home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree \
--with-sqlite3-h=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/include \
--with-sqlite3-libs=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/lib \
--with-expat-h=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/include \
--with-expat-libs=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/lib \
--with-search=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/lib \
--with-zlib-h=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/include \
--with-zlib-libs=/home/mphilpott/PAB/Suppliers/Marvell/SheevaPlug/OS_tree/lib \
--enable-db-autocreate
I alway set the "prefix=" so when make install is done you can
just tar up that location unpack it somewhere on your flash/HD.
The use export LD_LIBRARY_PATH=/mnt/disk/lib to set the location of where you installed the shared libraries.
Good luck
Cheers
Matt
Categories: PogoPlug Development
So I've downloaded the Pogoplug-GCC cross-compiler from http://pogoplug.com/opensource/pogoplug-gcc.tar.bz2 but now what? I'm assuming these folders have to go somewhere - I've tried /usr/, but then when running ./configure on an app I get an error that arm-none-linux-gnueabi is unable to produce binaries or something like that. I'm running this on Ubuntu 9.04 i686.
Here's my configure command: sudo ./configure --build=i386-linux --host=arm-none-linux-gnueabi --prefix=/workingdir
The package in question is CUPS 1.3.11. Help? This'll get a guide for making the Pogoplug a print server. Sounds weird that a relatively "Linux" guy asks a Linux question - but the "ar" binary on the Pogoplug doesn't support the kind of archiving that CUPS wants, so I have to cross-compile, which I've never done before.
Hi Matt,
I tried using the method above to compile FFMPEG - I get the following error:
libavcodec/mpegaudiodec.c: In function 'huffman_decode':
libavcodec/mpegaudiodec.c:1606: internal compiler error: internal consistency failure
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [libavcodec/mpegaudiodec.o] Error 1
Any idea on what is going on?
That appears to be a bug in the compiler. You need to compile that 1 file with a "-O 1" flag. Just cut and past the line for that file and change the flag for that one file. Then continue with the rest of the compile using make again.
I haven't noticed any issues with using the competed binary even at that optimization level.
Thanks Matt - that did the trick - it works now and I have tested it on the Plug as well.
Ashu, OpenPogo.com/forum and install the OS on a Sheevaplug and then install base-devel for on-the-plug development.
Does anyone have an idea where the pogoplug-gcc.tar.bz2 has gone?
It's no longer available at the afore mentioned URL.
For anybody doing cross compiling for the pogoplug.
http://www.nslu2-linux.org/wiki/Optware/PlugComputers
@geert The file has been moved to http://download.pogoplug.com/opensource/pogoplug-gcc.tar.bz2
I ve tried with copy and past but I got error like "bash: ./configure: No such file or directory"

RSS


