Help - Search - Members - Calendar
Full Version: Problems Crosscompiling Imagemagick
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
donquixote
Here's the error message I get when trying to cross compile ImageMagick:
CODE
/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/libX11.so 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/libMagick.la] 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.

dq
rgrep
What ./configure command-line are you using? I use:
CODE
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.
rgrep
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.
ScottYelich
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.

Scott
donquixote
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:
CODE
# ./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.

Thanks.

dq
blakeyez
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

CODE
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

Dave
donquixote
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?

thanks,

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

http://www.ayati.com/KOMONO/c7soft.htm

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?

Thanks.

dq
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-2014 Invision Power Services, Inc.