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

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Beginner's Cross Compile Question
wrc4
post May 18 2006, 09:21 PM
Post #1





Group: Members
Posts: 114
Joined: 12-May 06
Member No.: 9,848



I'm trying the SDK tutorial at http://www.pdaxrom.org/index.php?showid=35&menuid=1

I tried the newvox sample on my SuSE Linux10(x86) host. I'm using the C750 SDK and it seemed changed a little bit, so I adjusted the commandline provided in tutorial like this:

LDFLAGS="-Wl,-rpath-link,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/lib" ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local

I'm not sure about the /X11R6/ part because I can't find it in the SDK folder. Anyway, the output is as follows:

checking whether the C compiler (gcc -Wl,-rpath-link,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/lib) works... yes
checking whether the C compiler (gcc -Wl,-rpath-link,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for sdl-config... /opt/cross/arm/3.4.5-xscale-softvfp/bin/sdl-config
checking for SDL - version >= 1.0.1... no
*** Could not run SDL test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /opt/cross/arm/3.4.5-xscale-softvfp/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!

It seems like the compiler is working. But it says "no" on:
checking whether the C compiler (gcc -Wl,-rpath-link,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/X11R6/lib) is a cross-compiler.

Am I using the wrong parameters?

Also, do I need to compile SDL before compiling newvox? The SDK installation page says the SDK contains SDL, though.
Go to the top of the page
 
+Quote Post
pgas
post May 18 2006, 09:59 PM
Post #2





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



better tutorials:
http://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
http://www.oesf.org/index.php?title=Pdaxro...te_An_Ipk_Howto

The X11 headers and libs are together with the other headers and libs so you shouldn't have to set the x includes and library path
Go to the top of the page
 
+Quote Post
pgas
post May 18 2006, 10:02 PM
Post #3





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



did you run /opt/cros..../runsdk before running the configure script?
Go to the top of the page
 
+Quote Post
anunakin
post May 19 2006, 04:25 AM
Post #4





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



Install new cross SDK....
Go to the top of the page
 
+Quote Post
wrc4
post May 19 2006, 06:40 AM
Post #5





Group: Members
Posts: 114
Joined: 12-May 06
Member No.: 9,848



Thanks for the hints. Will try next Monday.

BTW, I'm thinking about having a Linux on my laptop(so I can try this at home). Is Debian the best choice? I only want to do pdaXrom cross-compiling and maybe some PIM apps. Is a Live-CD a good idea? (My laptop doesn't have much free disk spaces)
Go to the top of the page
 
+Quote Post
omro
post May 19 2006, 02:06 PM
Post #6





Group: Members
Posts: 798
Joined: 28-May 04
Member No.: 3,474



QUOTE(wrc4 @ May 19 2006, 06:40 AM)
Thanks for the hints. Will try next Monday.

BTW, I'm thinking about having a Linux on my laptop(so I can try this at home). Is Debian the best choice? I only want to do pdaXrom cross-compiling and maybe some PIM apps. Is a Live-CD a good idea? (My laptop doesn't have much free disk spaces)
*


This might help

link
Go to the top of the page
 
+Quote Post
karlto
post May 21 2006, 11:39 AM
Post #7





Group: Members
Posts: 343
Joined: 3-October 05
From: NZ
Member No.: 8,243



QUOTE(wrc4 @ May 20 2006, 03:40 AM)
Thanks for the hints. Will try next Monday.

BTW, I'm thinking about having a Linux on my laptop(so I can try this at home). Is Debian the best choice? I only want to do pdaXrom cross-compiling and maybe some PIM apps. Is a Live-CD a good idea? (My laptop doesn't have much free disk spaces)
*

Why not use the pdaXrom X86 live CD? It is built for just this.
Go to the top of the page
 
+Quote Post
wrc4
post May 21 2006, 10:43 PM
Post #8





Group: Members
Posts: 114
Joined: 12-May 06
Member No.: 9,848



QUOTE(karlto @ May 21 2006, 11:39 AM)
QUOTE(wrc4 @ May 20 2006, 03:40 AM)
Thanks for the hints. Will try next Monday.

BTW, I'm thinking about having a Linux on my laptop(so I can try this at home). Is Debian the best choice? I only want to do pdaXrom cross-compiling and maybe some PIM apps. Is a Live-CD a good idea? (My laptop doesn't have much free disk spaces)
*

Why not use the pdaXrom X86 live CD? It is built for just this.
*



I end up using the pdaXrom VMWare image. For me, It's convenient than the LiveCD because I can take the development environment with me between office and home. (I copied the whole image files to a 512M USB thumb drive.)

Many thanks to pgas! I successfully built my first Z application (hello) following the new guide you suggested. I'm still trying to build other apps to learn more before I can build something really useful.
Go to the top of the page
 
+Quote Post
wrc4
post May 22 2006, 12:28 AM
Post #9





Group: Members
Posts: 114
Joined: 12-May 06
Member No.: 9,848



QUOTE(pgas @ May 18 2006, 09:59 PM)
better tutorials:
http://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
http://www.oesf.org/index.php?title=Pdaxro...te_An_Ipk_Howto

The X11 headers and libs are together with the other headers and libs so you shouldn't have to set the x includes and library path
*


Still have problems: I was following the steps in the tutorials exactly but ended up with a 80386 version of the "links" program.

When I executed ...runsdk.sh and input:
"CC=armv5tel-cacko-linux-gcc ./configure --host=armv5tel-cacko-linux --build=i686-linux --enable-graphics --enable-javascript"

The output had somelike this:
...
checking for gcc... (cached) gcc
checking whether the c compiler (gcc ) works ... yes
checking whether the c compiler (gcc ) is a cross compiler ... no
...

I think this is where my problem is--the program is still using gcc instead of armv5tel-cacko-linux-gcc. What should I do to fix this?
Go to the top of the page
 
+Quote Post
wrc4
post May 22 2006, 12:44 AM
Post #10





Group: Members
Posts: 114
Joined: 12-May 06
Member No.: 9,848



QUOTE(wrc4 @ May 22 2006, 12:28 AM)
QUOTE(pgas @ May 18 2006, 09:59 PM)
better tutorials:
http://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
http://www.oesf.org/index.php?title=Pdaxro...te_An_Ipk_Howto

The X11 headers and libs are together with the other headers and libs so you shouldn't have to set the x includes and library path
*


Still have problems: I was following the steps in the tutorials exactly but ended up with a 80386 version of the "links" program.

When I executed ...runsdk.sh and input:
"CC=armv5tel-cacko-linux-gcc ./configure --host=armv5tel-cacko-linux --build=i686-linux --enable-graphics --enable-javascript"

The output had somelike this:
...
checking for gcc... (cached) gcc
checking whether the c compiler (gcc ) works ... yes
checking whether the c compiler (gcc ) is a cross compiler ... no
...

I think this is where my problem is--the program is still using gcc instead of armv5tel-cacko-linux-gcc. What should I do to fix this?
*



Deleted the config.cache file and things seemed going well. (Looks like I have a long way to go... tongue.gif )
Go to the top of the page
 
+Quote Post
Raul
post May 22 2006, 07:16 AM
Post #11





Group: Members
Posts: 133
Joined: 10-February 06
Member No.: 9,110



QUOTE(anunakin @ May 19 2006, 02:25 PM)
Install new cross SDK....
*

Where could we find it?

Kind regards,
Raul
Go to the top of the page
 
+Quote Post
anunakin
post May 22 2006, 08:24 AM
Post #12





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



QUOTE(Raul @ May 22 2006, 03:16 PM)
QUOTE(anunakin @ May 19 2006, 02:25 PM)
Install new cross SDK....
*

Where could we find it?

Kind regards,
Raul
*



Documentation:
Pdaxrom:_Cross_Compilation

Lastest Cross SDK:
cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2
Go to the top of the page
 
+Quote Post
Raul
post May 23 2006, 06:14 AM
Post #13





Group: Members
Posts: 133
Joined: 10-February 06
Member No.: 9,110



QUOTE(anunakin @ May 22 2006, 06:24 PM)

Does it matter if it's for C7xx or Cxxx series? I have C3100 myself smile.gif
Go to the top of the page
 
+Quote Post
pgas
post May 23 2006, 09:51 PM
Post #14





Group: Members
Posts: 1,099
Joined: 17-December 03
From: Athens, Greece
Member No.: 1,210



QUOTE
Lastest Cross SDK:
cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2
Does it matter if it's for C7xx or Cxxx series? I have C3100 myself

no. binaries built with newer version of the sdk might not run on older pdaxrom release though.
Go to the top of the page
 
+Quote Post
Raul
post May 24 2006, 02:23 AM
Post #15





Group: Members
Posts: 133
Joined: 10-February 06
Member No.: 9,110



I cannot download files from pdaxrom page - page not found error. I will send e-mail to sash about it.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
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: 25th October 2014 - 05:29 AM