Re: problem with toolchain- want to cross-compile lincity

2008-07-08 Thread John Lee
On Wed, Jul 09, 2008 at 12:06:28AM +0200, Arne Zachlod wrote:
> Hey guys,
>
> i downloaded lincity 1.13.1 today from sf.net and wanted to  
> cross-compile it with the om-toolkit, but i get errors (yes, i expected  
> this ;)). I did the following:
> 1. unzipped the source
> 2. renamed the dir to lincity
> 3. copied autogen.sh from the openmoko sample2 into the lincity dir
> 4. run "om-conf lincity"
> 5. run ./autogen.sh (here i do get the first error, but i thinks that  
> shouldn't be the problem)
> 6. run "make" (here is the fatal error what's the bigger problem)

it was a while ago but i think you don't need to run autogen.sh after
om-conf.  this might be the cause of error no.1.

> second error, that one after "make" is this:
>
> libtool: link: cannot find the library  
> `/space/fic/openmoko-daily/openmoko/staging/arm-angstrom-linux-gnueabi/usr/lib/libz.la'
>  
> or unhandled argument  
> `/space/fic/openmoko-daily/openmoko/staging/arm-angstrom-linux-gnueabi/usr/lib/libz.la'

you hit the '.la' libtool problem that Julian is working on.  there
was a thread about it on mailing list.


- John



problem with toolchain- want to cross-compile lincity

2008-07-08 Thread Arne Zachlod

Hey guys,

i downloaded lincity 1.13.1 today from sf.net and wanted to 
cross-compile it with the om-toolkit, but i get errors (yes, i expected 
this ;)). I did the following:

1. unzipped the source
2. renamed the dir to lincity
3. copied autogen.sh from the openmoko sample2 into the lincity dir
4. run "om-conf lincity"
5. run ./autogen.sh (here i do get the first error, but i thinks that 
shouldn't be the problem)

6. run "make" (here is the fatal error what's the bigger problem)


error 1 seems like this:

Running ./configure --enable-maintainer-mode ...
configure: loading site script /usr/local/openmoko/arm/site-config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t 
-mtune=arm920t

checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.

If you meant to cross compile, use `--host'.
See `config.log' for more details.

I think that's all what is interesting. but i think thats no prolem, 
because its no problem in the sample, too (there i do get the same error).


second error, that one after "make" is this:

libtool: link: cannot find the library 
`/space/fic/openmoko-daily/openmoko/staging/arm-angstrom-linux-gnueabi/usr/lib/libz.la' 
or unhandled argument 
`/space/fic/openmoko-daily/openmoko/staging/arm-angstrom-linux-gnueabi/usr/lib/libz.la'


the point is, i don't know why he needs this lib and why it should be 
there? i have no dir /space and no libz.la file in my 
openmoko-toolchain, but i do have a libz.a, so what do i have to do? I'm 
no c-expert or Makefile-expert, i know a litte bit, not more, but i'm a 
fan of lincity and freeciv and i want them on my phone, so can anyone 
help here? I would like to port them for openmoko, because I do love 
both games.


thanks a lot, regards,

arne