[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Fwd: Problems cross-compiling oRTP



Thank you very much David and John for your answers.

I have clarified very much the idea of how to build a GNU ./configure style apps with a cross compiler.
As you said me David, I have copied makefile1 to user/ortp (cp makefile.1 user/ortp/makefile
). I am sure that my dist uses ucfront because I have built httptunnel (the makefile is of the same type) successfully.

When I try to compile uClinux I get an error. I don't think that it is a thing of oRTP because with quagga I get the same error:


checking build system type... i686-pc-linux-gnuaout
checking host system type... i686-pc-linux-gnuaout
checking target system type... i686-pc-linux-gnuaout
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... ucfront-gcc mb-gcc
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.
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/root/uClinux-dist/user/quagga'
make[2]: *** [quagga] Error 2
make[2]: Leaving directory `/root/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/uClinux-dist/user'
make: *** [subdirs] Error 1
root@potxandio-laptop:~/uClinux-dist#
root@potxandio-laptop:~/uClinux-dist#



checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking warning make an error on compilation... checking for gcc... ucfront-gcc mb-gcc
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.
make[3]: *** [build/build] Error 1
make[3]: Leaving directory `/root/uClinux-dist/user/ortp'
make[2]: *** [ortp] Error 2
make[2]: Leaving directory `/root/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/uClinux-dist/user'
make: *** [subdirs] Error 1


I don't know if it is a chance but I think that among all the GNU ./configure apps under user I only get to build those apps whose .c files are in the same directory that the makefile. In the case of quagga or ortp, the makefile is not in the same directory of .c files.


Is this ok?


Any advice?

Regards,

Pello



2007/9/13, John Williams <jwilliams@xxxxxxxxxxxxxx >:
Hi Pello,

Pello Otxandiano wrote:

> I'm trying to compile oRTP for MicroBlaze and it is turning me quite
> difficult. The installation guide of oRTP is quite simple but it does
> not say clearly how to compile with a cross-compiler.
>
> The standard installation is the following one:
>
> -Type ./configure to generate the makefile
> -Make
> -Make install
> -Compile uClinux with oRTP

Take a look at, e.g. user/eth-tools for an example of how to bulid GNU
./configure style apps within the petalinux build environment.

Regards,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/