I'm trying to cross-compile just the basic Qtopia example. I followed the instructions for "Red Hat 9" and am able to get the qvfb x86 version working, but when I source the dev-arm-qpe.sh script, I can't do anything.

I try to build the Makefile using "tmake -o Makefile example.pro"
and get the message:

It sounds to me like your linker is only using the $LD_LIBRARY_PATH variable to find libraries, and the dev-arm script is overwriting this variable with a value that doesn't include your ordinary library directories. Try running this as root (without having run any of the dev- scripts):

# /sbin/ldconfig -v

This will update /etc/ld.so.conf so the linker knows where your libraries are. This only needs to be done when you install any new libraries. Then $LD_LIBRARY_PATH just adds additional directories for the linker in specific situations.

I was on the right track, and would have figured it out sooner or later,
I was just going to try commenting out various differences in the arm vs. the x86 script and once I got a compile send it on down and try the executable.

@blackcardinal: But LD_LIBRARY_PATH should never be changed for a cross compile. LD_LIBRARY_PATH is not a search path for the gcc linker but rather a search path for the dynamic library loader, and you certainly don't want to try to load any ARM libs on an x86 machine, etc.

That's a very good point. Why would you need to change dynamic libraries for cross compiling? Sorry, I guess wasn't thinking very thoroughly here. I just saw there were library paths being changed and jumped to a conclusion. :oops: