Scott,
The qmake in the cross compiled QT is infact for your x86 machine. You must run this qmake on the project file if you want to cross compile. This will automatically create the neccessary make files including your cross compiler.
On Mon, Aug 17, 2009 at 7:46 PM, Scott Zimmerman <> wrote:
Thanks Donal,
Unfortunately, I tried that already. No dice. I finished installing the Trolltech stuff in /usr/local and now I find that I can't run qmake either. When I try running that one (which is in my path) it says "can't execute binary file". If I do file on it, I get:
qmake: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
ELF and 80386????!!! Sounds like the architecture didn't get set right in one of the configures. If I build helloworld with my cross compiler, I get this:
helloworld: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.21, statically linked, not stripped
So the cross compiler is okay. Just need to figure out where to specify the architecture and rebuild.
Stay tuned,
...Zz On Mon, Aug 17, 2009 at 11:30 AM, Donal O'Connor <> wrote:
I know this is obvious but (but just in case!) are you sure you've changed permissions to make it executable after copying over,
ie: chmod 755 myapp and then ./myapp
On Mon, Aug 17, 2009 at 7:25 PM, Scott Zimmerman <> wrote:
Okay,
So I've been able to use my nice EABI cross compiler to build all of Qt including tslib. Everything looks good and I can even cross compile a simple example using the Ubuntu version of qmake and then cleaning up the makefile it produces. When I look at the executable, it's definitely ELF. But when I copy the executable to my 7390, I get a "No such file or directory" error when I try to run it. Running the file command on the 7390 also says the executable is ARM ELF. So I'm assuming this has something to do with the executable being EABI.
At one point Doug said I would need to run an EABI root. I'm not exactly sure what that means. I can grab the Debian .dd file off the embeddedarm site and create an SD card that boots fine. I've never been able to figure out how to use any of the other .dd files up there. I was hoping to use the tslinux root at one point as all I really need for my project is serial port access and Qt, but the instructions for how to turn one of those dd files into a bootable SD card are pretty thin.
I'm currently in the process of moving the contents of /usr/local/Trolltech/QtEmbedded-4.4.3-arm/ over to the 7390 to try to build there, but I'm not very optimistic. It seems like I need to get to a world where everything has been built with the EABI. Is that true?
I have updated instructions from Donal's site on building Qt. As soon as I can get a sample application running, I'll post those to the list.
Thanks!
...Zz
__._,_.___
__,_._,___
|