OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Qtopia With Zaurus-x-gcc, Has anyone actually done this?
d.maddock1
post Dec 22 2005, 08:43 AM
Post #1





Group: Members
Posts: 40
Joined: 20-October 04
Member No.: 5,113



I've been trying to get the Zaurus-X-gcc cross-compiler to work with the Qtopia libs. Has anyone successfully done this?

Zaurus-X-gcc was put together using these instructions:
http://www.lucid-cake.net/osx_qpe/index_en.html

But, this doesn't seem to be helping me. I'd like to avoid the last resort of removing Zaurus-X-gcc and walking through the myriad of steps in the above link exactly as he does. In particular, what <arc-dir>, <work-dir>, and <src-dir> were used to set up Zaurus-X-gcc?

Thanks.

Dave.
Go to the top of the page
 
+Quote Post
dhns
post Dec 23 2005, 01:50 PM
Post #2





Group: Members
Posts: 699
Joined: 26-February 04
From: near Munich, Germany
Member No.: 2,043



QUOTE(d.maddock1 @ Dec 22 2005, 05:43 PM)
In particular, what <arc-dir>, <work-dir>, and <src-dir> were used to set up Zaurus-X-gcc?

Hi,
what are the issues you find?

Here is the path for Zaurus-X-gcc:

<work-dir> = /Developer/Zaurus-X-gcc

with that it calls ./cross.sh --srcdir "$srcdir" --workdir "$workdir"

That one in turn does a

./configure --target=arm-linux --prefix=$absworkdir/opt/Embedix/tools

or

./configure --target=arm-linux --prefix=$absworkdir/opt/Embedix/tools --with-headers=$absworkdir/opt/Embedix/tools/arm-linux/include --with-libs=$absworkdir/opt/Embedix/tools/arm-linux/lib --enable-threads=posix

<arc-dir> is not used in generating the compiler. And <src-dir> is something local while generating the compiler.

I have never compiled any Qt program, so I did not look at the libraries...

One very important thing to remember: gcc does not like if there are space characters in the file path (e.g. $workdir).

Usually I put something like the following in my Makefiles (optimized for Objective-C)
CODE
TOOLCHAIN := /Developer/Zaurus-X-gcc/opt/Embedix/tools/arm-linux
SDK := /Developer/Zaurus-X-gcc/SDKs/mySTEP.sdk
MYSTEP := $(SDK)/usr/mySTEP
CC := $(TOOLCHAIN)/bin/gcc
LS := $(TOOLCHAIN)/bin/ld
AS := $(TOOLCHAIN)/bin/as
NM := $(TOOLCHAIN)/bin/nm
STRIP := $(TOOLCHAIN)/bin/strip

# header search paths
INCLUDES := \
-I$(SDK)/usr/ffcall/include \
-I$(SDK)/usr/X11R6/include \
-I$(SDK)/usr/mySTEP/include \
-I$(SDK)/usr/graphics/include \
-I$(SDK)/usr/sqlite/include

# standard libraries (incl. search path)
LIBS := $(LIBS) \
-L$(SDK)/usr/mySTEP/lib -lFoundation -lGdo \
-L$(SDK)/usr/ffcall/lib -lavcall \
-lm -ldl -lpthread \
-lobjc


Hope this helps.

-- hns
Go to the top of the page
 
+Quote Post
d.maddock1
post Dec 23 2005, 08:59 PM
Post #3





Group: Members
Posts: 40
Joined: 20-October 04
Member No.: 5,113



Thanks, I've got it working.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th November 2014 - 03:10 PM