OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dhns on October 04, 2004, 09:13:21 am

Title: Which gcc cross-toolchain?
Post by: dhns on October 04, 2004, 09:13:21 am
Might sound like a beginner's question but I cound not easily figure out: Which gcc version and which glibc are (minimum) required to compile applications and libraries for OZ 3.5.1?

And, is there already a MacOS X / Xcode toolchain?

If not, I plan to extend Zaurus-X-gcc which currently only supports gcc 2.95.3.

-- hns
Title: Which gcc cross-toolchain?
Post by: dhns on October 05, 2004, 04:07:08 am
Here what I found so far:
* OZ seems to use gcc 3.3.2
* glibc - I could not fgure out yet
* there appears to be no precompiled gcc for use with Xcode

One option seems to install a full OE http://openembedded.org/oe_wiki/index.php/...ildrootOnMacOSX (http://openembedded.org/oe_wiki/index.php/OeBuildrootOnMacOSX) and run from the command line on a Mac - but that appears to be too complex and not "Mac-like" just to compile gcc, libraries, kernel, full OZ and then finally a small application.

-- hns
Title: Which gcc cross-toolchain?
Post by: dhns on October 06, 2004, 08:10:21 am
just found on the "3.5.1 released" thread:
Quote
OZ is linked against libc2.3, while pdaXrom is still using libc2.2.
So, questions are answered.

-- hns
Title: Which gcc cross-toolchain?
Post by: lardman on October 06, 2004, 08:18:34 am
But off the top of my head I con't know which version.

Do you have a Z with 3.5.1? Look in /lib and see what version libc is.

GCC is 3.xx, I think 3.4.x at the mo.

Download the packages tarball from treke.net and see what the .oe files are called, etc.


Simon
Title: Which gcc cross-toolchain?
Post by: ClosetPacifist on October 06, 2004, 08:12:59 pm
There's a gcc3 toolchain available at http://handhelds.org/download/toolchain/osx/ (http://handhelds.org/download/toolchain/osx/) . Personally, I just made a symlink from /opt/cross to the mounted disk image, as it has to be on a case sensitive filesystem, which a disk image is convenient for. In addition, if you decide to try the OE system, http://openembedded.org/oe_wiki/index.php/...ildrootOnMacOSX (http://openembedded.org/oe_wiki/index.php/OeBuildrootOnMacOSX) is quite helpful. The above toolchain seems to work fine with OE.

I'm currently struggling with OE; having some problems getting qt compiled (or some tool in it's code, rather; I forget what exactly) - it fails with some errors to do with qpsprinter.cpp and stuff. Only progress I've made is, I think, you need to replace the #include of qt_X11.h with an include of <X11/Xlib.h> - or perhaps find a qt_X11.h, not sure, I'm just bumbling my way along, heh.

Good luck! Hopefully you'll get it working!