I tried my first cross compile last evening on a RedHat 9.0 desktop using this page\'s notes:
http://www.zaurususergroup.com/modules.php...ompiler%20SetupI used the latest TrollTech binaries distribution:
- Qtopia 1.7.0 GPL SDK Linux for Red Hat 9
Installed the RPM, which includes tmake. (Note, if you install this RPM, don\'t copy the tmake.conf file as indicated in step 1 of the How-To. The Qtopia package is configured to work witth the RedHat 9 gcc installation as is.)
I had a similar error message from Perl when I tried to compile. I then realized that /usr/bin/perl requires the *desktop* libc.so.6 file to run. (Actually, so did \"ls\" and every other command I tried to run on the command line!) It was trying to reference the ARM compiled libc.so.6 as your message indicates.
After sourcing the arm dev setup script in section 3, step 4 of the ARM compile, I set the following variable on the command line:
LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}
This gave me back my basic command line commands and allowed me to compile example.pro without problems. Transfered this wirelessly to my SL-5600 and started it on the command line as per the instructions. Worked like a charm!
I can\'t say for sure if this is the best idea in general because I don\'t know if the library search order will pick something out of here first instead of the Qtopia area for the final arm binary. Bit of a chicken and egg problem. Perhaps using dynamically linked binaries solves this by having an equivalent path to libc.so.6 on the Z? Just a guess.
Don\'t know about OPIE. I\'m using the Sharp 3.1 ROM on the SL-5600.
Happy compiling!