Help - Search - Members - Calendar
Full Version: Problems Crosscompiling Imagemagick
OESF Portables Forum > Model Specific Forums > Sharp Zaurus > Zaurus - pdaXrom
Here's the error message I get when trying to cross compile ImageMagick:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: skipping incompatible /opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib/ when searching for -lX11
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [magick/] Error 1
make[1]: Leaving directory `/home/dq/archives/zaurus/ImageMagick-6.1.6'
make: *** [all] Error 2

I'm new at this cross compiling thing but I think I followed the instructions given on the pdaxrom site correctly. I'm not even sure what other info you need in order to help troubleshoot. I will say that I'm running Gentoo on my main machine and 1.0.5 on my Zaurus, but the latter shouldn't matter at this stage should it? (that last sentence is kinda poetic...)

thanks in advance.

What ./configure command-line are you using? I use:
LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib" ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr

I think the setting of LDFLAGS at the start is what you need.
Note that I'm using the VFP SDK (RC5-RC8) so you might need to change 3.3.2-vfp to 3.3.2 if you're copying and pasting.
also, imagemagick is gnarly when it comes to perl support.

if you can get it to compile with perl support -- more power to you --
but I haven't ever had any luck compiling this unless I disabled perl support.

I seemed to get farther this time, and in fact I even get executables. I needed to disable X and TTF fonts. But the executables don't seem to work. When I copy them to my Zaurus I get:
# ./convert
./convert: line 1: cd: /home/dq/archives/zaurus/ImageMagick-6.1.6: No such file or directory
./convert: line 1: gcc: command not found

Any suggestions? I'm totally confused.


You copied the script that libtool generates instead of the actual binary smile.gif

When libtool is used to build binaries, it creates a script in place of the binary that does a lot of autofoo-type magic to re-link the REAL binary, which is stored in a '.libs' subdirectory of wherever the script is placed.

My suggestion is to do something like

INSTALL_ROOT=/tmp/ImageMagick-6.xxxx make install

Then in /tmp/ImageMagick-6.xxxx you'll get everything installed as if it went to '/'. Including the real binaries and libraries this time smile.gif

Ok I did what you said and I got some binary files! Yay. Unfortunately, I can't get them to work on my Zaurus. I get a message saying "cannot execute binary file". Argh.

I couldn't run the armv5tel-linux-strip tool either. I got a message something like: "cannot perform operation due to above errors"-- the only problem was that there were no "above errors"!

Also I noticed that the binaries were placed it ./usr/bin instead of ./usr/local/bin as it is in the tutorial? Is this a bad thing?


In spite of all my efforts to build this program. I found a copy here:

The only thing is that I had to change the extension from `.ipk.bin' to just `.ipk'.

Also, it's worth noting that the operations do take a long time (a few minutes) so these tools should only be used by the patient.

Is there a way we can get this into the feed?


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.