OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 466931.0
July 18, 2009 01:07 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

crimsonredmk

Member
Joined: 05/17/2009

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.

Discussion:    Add a Comment | Comments 1-9 of 9 | Latest Comment

September 15, 2009 2:27 PM

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

October 14, 2009 9:11 PM

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?

October 20, 2009 6:09 PM

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.

November 19, 2009 5:08 AM

Thanks Matt - that did the trick - it works now and I have tested it on the Plug as well.

November 19, 2009 5:12 PM

Ashu, OpenPogo.com/forum and install the OS on a Sheevaplug and then install base-devel for on-the-plug development.

October 4, 2010 8:36 PM

Does anyone have an idea where the pogoplug-gcc.tar.bz2 has gone?
It's no longer available at the afore mentioned URL.

October 14, 2010 7:10 PM

For anybody doing cross compiling for the pogoplug.
http://www.nslu2-linux.org/wiki/Optware/PlugComputers

March 7, 2011 12:34 AM

@geert The file has been moved to http://download.pogoplug.com/opensource/pogoplug-gcc.tar.bz2

March 13, 2011 11:48 PM

I ve tried with copy and past but I got error like "bash: ./configure: No such file or directory"

Discussion:    Add a Comment | Back to Top | Comments 1-9 of 9 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window