OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: donquixote on January 02, 2005, 12:51:41 am

Title: Problems Crosscompiling Imagemagick
Post by: donquixote on January 02, 2005, 12:51:41 am
Here's the error message I get when trying to cross compile ImageMagick:
Code: [Select]
/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
Title: Problems Crosscompiling Imagemagick
Post by: rgrep on January 02, 2005, 01:25:54 am
What ./configure command-line are you using?  I use:
Code: [Select]
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.
Title: Problems Crosscompiling Imagemagick
Post by: rgrep on January 02, 2005, 01:27:05 am
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.
Title: Problems Crosscompiling Imagemagick
Post by: ScottYelich on January 02, 2005, 08:59:21 am
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
Title: Problems Crosscompiling Imagemagick
Post by: donquixote on January 02, 2005, 05:24:28 pm
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: [Select]
# ./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
Title: Problems Crosscompiling Imagemagick
Post by: blakeyez on January 03, 2005, 12:32:38 pm
You copied the script that libtool generates instead of the actual binary  

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: [Select]
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

Dave
Title: Problems Crosscompiling Imagemagick
Post by: donquixote on January 05, 2005, 12:39:59 pm
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
Title: Problems Crosscompiling Imagemagick
Post by: donquixote on January 06, 2005, 10:28:57 pm
In spite of all my efforts to build this program. I found a copy here:

http://www.ayati.com/KOMONO/c7soft.htm (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