python now cross-compiles ok on Mac OS X host thanks to the following patch.

http://patchwork.openwrt.org/patch/3424/

Applied with:
$ cd feeds/packages ; patch -p0 < osx-python-patch-3424-file

pyserial and python now build and install ok :)

Cheers, Brendan.


On 26/02/13 9:16 PM, Brendan Simon (eTRIX) wrote:
> I have successfully build OpenWRT from svn trunk using Mac OS X as
> development host :)
> 
> I ran menuconfig and enabled pyserial which also enabled python-mini.
> 
> The build resulted in the errors below.  Is this a package dependency
> issue with the config system or is it more likely to be an issue with
> using OS X as the development host ??
> 
> Thanks for any help.
> Cheers, Brendan.
> 
> ...
> ...
> ...
> rm python-config
> /Volumes/OpenWRT/trunk/build_dir/host/Python-2.7.3/python -E ./setup.py
> install \
>            --prefix=/Volumes/OpenWRT/trunk/staging_dir/host \
>         --install-scripts=/Volumes/OpenWRT/trunk/staging_dir/host/bin \
>        
> --install-platlib=/Volumes/OpenWRT/trunk/staging_dir/host/lib/python2.7/lib-dynload
> \
>         --root=/
> running install
> running build
> running build_ext
> building dbm using bdb
> 
> Python build finished, but the necessary bits to build these modules
> were not found:
> _curses_panel      _ssl               bsddb185       
> bz2                dl                 gdbm           
> imageop            linuxaudiodev      nis            
> ossaudiodev        readline           spwd           
> sunaudiodev        zlib                              
> To find the necessary bits, look in setup.py in detect_modules() for the
> module's name.
> ...
> ...
> ...
> mips-openwrt-linux-uclibc-gcc -DNDEBUG -Os -pipe -mips32r2
> -mtune=mips32r2 -fno-caller-saves -mno-branch-likely -fhonour-copts
> -Wno-error=unused-but-set-variable -msoft-float
> -L/Volumes/OpenWRT/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib
> -L/Volumes/OpenWRT/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/lib
> -L/Volumes/OpenWRT/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib
> -L/Volumes/OpenWRT/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/lib
>  
> Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o
> Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o
> Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc.o
> Python/mysnprintf.o Python/pyctype.o Parser/tokenizer_pgen.o
> Parser/printgrammar.o Parser/pgenmain.o -lpthread -ldl  -lpthread -lutil
> -framework CoreFoundation -o Parser/pgen
> mips-openwrt-linux-uclibc-gcc: error: CoreFoundation: No such file or
> directory
> make[4]: *** [Parser/pgen] Error 1
> make[3]: ***
> [/Volumes/OpenWRT/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/Python-2.7.3/.built]
> Error 2
> make[3]: Leaving directory
> `/Volumes/OpenWRT/trunk/feeds/packages/lang/python'
> make[2]: *** [package/feeds/packages/python/compile] Error 2
> make[2]: Leaving directory `/Volumes/OpenWRT/trunk'
> make[1]: ***
> [/Volumes/OpenWRT/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/stamp/.package_compile]
> Error 2
> make[1]: Leaving directory `/Volumes/OpenWRT/trunk'
> make: *** [world] Error 2
> 
> 
> 
> _______________________________________________
> openwrt-users mailing list
> openwrt-users-ZwoEplunGu0+xA9t4nZiwti2O/[email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-users
> 

_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users

Reply via email to