2009-02-02 09:13:54     getting Python...

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2009-02-02 09:13:54     getting Python...

Emanuele Italia (ITALY)

Message: 68675   

 

Hello,

 

i'm tring to get Python on my uClinux(Blackfin).  I tried to find the binary in some repository but i didn't found python....so i choose to compile by myself the Python packages with toolchian but without any results, even patching it (Python's configure really don't like the cross compling).

 

Do you have any hints? does it exists some wide repository for uClinux's ipkg (bigger then "http://rowetel.com/ucasterisk/ipkg")?

 

Thanks in advance

 

Emanuele

TranslateQuoteReplyEditDelete

 

 

2009-02-02 11:36:43     Re: getting Python...

Mike Frysinger (UNITED STATES)

Message: 68681   

 

if you want prebuilt binaries / ipkg support, you should talk to the ucasterisk guys.  this forum does not cover that project.

 

python is already integrated into the uClinux distribution and builds from source just fine

QuoteReplyEditDelete

 

 

2009-02-03 06:55:20     Re: getting Python...

Emanuele Italia (ITALY)

Message: 68720   

 

i tring to compile python....but i foundout this problem:

 

 

 

debian:~/uClinux-dist-2008R1.5-RC3/user/python# CC=bfin-uclinux-gcc ./configure --host=i686-pc-linux-gnu --target=bfin-linux-uclibc

configure: WARNING: If you wanted to set the --build type, don't use --host.

  If a cross compiler is detected then cross compile mode will be used.

checking MACHDEP... linux2

checking EXTRAPLATDIR...

checking for --without-gcc... no

checking for --with-cxx=<compiler>... no

checking for c++... c++

checking for C++ compiler default output file name... a.out

checking whether the C++ compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for i686-pc-linux-gnu-gcc... bfin-uclinux-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.

 

 

TranslateQuoteReplyEditDelete

 

 

2009-02-03 11:36:58     Re: getting Python...

Mike Frysinger (UNITED STATES)

Message: 68781   

 

you can see how we build it in the Makefile, or just use uclinux-dist to do the building.  trying to build it yourself by hand isnt really supported (nor does it even make sense).

QuoteReplyEditDelete

 

 

2009-02-05 09:29:02     Re: getting Python...

Emanuele Italia (ITALY)

Message: 68902   

 

In my uClinux python it's NOT installed by default.

 

The question is:  how can i get Python binary?

 

 

TranslateQuoteReplyEditDelete

 

 

2009-02-05 10:51:38     Re: getting Python...

Mike Frysinger (UNITED STATES)

Message: 68910   

 

no one said python is installed by default.  you have to select it in the menuconfig system like any other package if you want it installed.

Attachments

    Outcomes