Help - Search - Members - Calendar
Full Version: Gcc296 And Qpe
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Qt/Qtopia
troika
Sorry if this is a dumb question, but do I really need gcc 2.96 to cross-compile a Qt application for the Zaurus? I've followed the compiler setup instructions on the OESF wiki to the letter, but I get this error when I try to compile the example application in /opt/Qtopia/example:

[joshs@localhost example]$ /opt/Qtopia/tmake/bin/tmake -o Makefile example.pro
[joshs@localhost example]$ make
/opt/Qtopia/bin/uic examplebase.ui -o ./examplebase.h
gcc296 -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o main.o main.cpp
make: gcc296: Command not found
make: *** [main.o] Error 127

I've tried using GCC 4.0.2 to compile the example, but of course I just get scads of linker errors. The thing is, my application (the one I'm actually trying to port to Qtopia) is written Qt4 anyway, and this example is for Qt3. So I'm wondering whether there isn't a more current example out there (is qtopia-free-1.5.0-1.i386.rpm compatible with Qt4?) which I could work off of, and which doesn't need an older version of GCC. I'm a little confused about the interdependencies among the various versions of Qt, QPE, Qtopia, and the Embedix tools, and could really use a working example to model my own project after while I sort it out.
speculatrix
the way the C compiler generates code for function calls is different so you can't mix and match

try "which gcc296" to see where it is and manually hack the makefile?
troika
Thank you for your reply speculatrix. However it turns out it was a dumb question. I wasn't setting my environment variables properly, which is why tmake used gcc296 in the Makefile instead of arm-linux-gcc.
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.