Author Topic: Beginner's Cross Compile Question  (Read 9413 times)

wrc4

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Beginner's Cross Compile Question
« on: May 19, 2006, 01:21:11 am »
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.
Zaurus SL-C1000 (Debian)
Zaurus SL-7500C
Nokia N810
KOHJINSHA SC3
ASUS EEEPC 701
ASUS WL-HDD 2.5
ASUS WL-500GPv2
WD MyBookWorldEdition (with a Segate 500G HD inside)

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Beginner's Cross Compile Question
« Reply #1 on: May 19, 2006, 01:59:06 am »
better tutorials:
https://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
https://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
SLC-860 cacko / senao wifi

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Beginner's Cross Compile Question
« Reply #2 on: May 19, 2006, 02:02:33 am »
did you run /opt/cros..../runsdk before running the configure script?
SLC-860 cacko / senao wifi

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Beginner's Cross Compile Question
« Reply #3 on: May 19, 2006, 08:25:03 am »
Install new cross SDK....
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

wrc4

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Beginner's Cross Compile Question
« Reply #4 on: May 19, 2006, 10:40:39 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)
Zaurus SL-C1000 (Debian)
Zaurus SL-7500C
Nokia N810
KOHJINSHA SC3
ASUS EEEPC 701
ASUS WL-HDD 2.5
ASUS WL-500GPv2
WD MyBookWorldEdition (with a Segate 500G HD inside)

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Beginner's Cross Compile Question
« Reply #5 on: May 19, 2006, 06:06:34 pm »
Quote
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)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

This might help

[a href=\"http://www.linuxforums.org/desktop/a_linux_distribution_for_an_old_laptop.html]link[/url]
Zaurus C-1000

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Beginner's Cross Compile Question
« Reply #6 on: May 21, 2006, 03:39:59 pm »
Quote
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)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127766\"][{POST_SNAPBACK}][/a][/div]
Why not use the pdaXrom X86 live CD? It is built for just this.
SL6000-L, RC12

wrc4

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Beginner's Cross Compile Question
« Reply #7 on: May 22, 2006, 02:43:38 am »
Quote
Quote
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)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127766\"][{POST_SNAPBACK}][/a][/div]
Why not use the pdaXrom X86 live CD? It is built for just this.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127987\"][{POST_SNAPBACK}][/a][/div]

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.
Zaurus SL-C1000 (Debian)
Zaurus SL-7500C
Nokia N810
KOHJINSHA SC3
ASUS EEEPC 701
ASUS WL-HDD 2.5
ASUS WL-500GPv2
WD MyBookWorldEdition (with a Segate 500G HD inside)

wrc4

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Beginner's Cross Compile Question
« Reply #8 on: May 22, 2006, 04:28:03 am »
Quote
better tutorials:
https://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
https://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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127692\"][{POST_SNAPBACK}][/a][/div]

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?
Zaurus SL-C1000 (Debian)
Zaurus SL-7500C
Nokia N810
KOHJINSHA SC3
ASUS EEEPC 701
ASUS WL-HDD 2.5
ASUS WL-500GPv2
WD MyBookWorldEdition (with a Segate 500G HD inside)

wrc4

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Beginner's Cross Compile Question
« Reply #9 on: May 22, 2006, 04:44:34 am »
Quote
Quote
better tutorials:
https://www.oesf.org/index.php?title=Pdaxro...oss_Compilation
https://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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127692\"][{POST_SNAPBACK}][/a][/div]

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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128023\"][{POST_SNAPBACK}][/a][/div]

Deleted the config.cache file and things seemed going well. (Looks like I have a long way to go...  )
Zaurus SL-C1000 (Debian)
Zaurus SL-7500C
Nokia N810
KOHJINSHA SC3
ASUS EEEPC 701
ASUS WL-HDD 2.5
ASUS WL-500GPv2
WD MyBookWorldEdition (with a Segate 500G HD inside)

Raul

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Beginner's Cross Compile Question
« Reply #10 on: May 22, 2006, 11:16:51 am »
Quote
Install new cross SDK....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127739\"][{POST_SNAPBACK}][/a][/div]
Where could we find it?

Kind regards,
Raul

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Beginner's Cross Compile Question
« Reply #11 on: May 22, 2006, 12:24:26 pm »
Quote
Quote
Install new cross SDK....
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Where could we find it?

Kind regards,
Raul
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128070\"][{POST_SNAPBACK}][/a][/div]

Documentation:
[a href=\"https://www.oesf.org/index.php?title=Pdaxrom:_Cross_Compilation]Pdaxrom:_Cross_Compilation[/url]

Lastest Cross SDK:
cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

Raul

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Beginner's Cross Compile Question
« Reply #12 on: May 23, 2006, 10:14:32 am »
Quote
Lastest Cross SDK:
cross-sdk-armv5tel-cacko-linux-3.4.6-2.2.5-softfloat.tar.bz2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128081\"][{POST_SNAPBACK}][/a][/div]
Does it matter if it's for C7xx or Cxxx series? I have C3100 myself

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Beginner's Cross Compile Question
« Reply #13 on: May 24, 2006, 01:51:18 am »
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.
« Last Edit: May 24, 2006, 01:51:30 am by pgas »
SLC-860 cacko / senao wifi

Raul

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Beginner's Cross Compile Question
« Reply #14 on: May 24, 2006, 06:23:56 am »
I cannot download files from pdaxrom page - page not found error. I will send e-mail to sash about it.