[Golem] Compilazione libreria Python - pycups

Adm linuxloverstaff@gmail.com
Gio 31 Ott 2013 17:44:26 CET


ho ancora bisogno di aiuto, intanto: tutti i passaggi che ho fatto
https://forum.openwrt.org/viewtopic.php?id=47094


2013/10/31 Adm <linuxloverstaff@gmail.com>

> quello che vi ho mandato ieri non era il vero errore di compilazione. Era
> una stupidaggine.
> Quello che vi mando ora  il vero problema:
>
> linuxlover@hide:~/openwrt_py/pycups-1.9.63$ echo $PATH
>
> /home/linuxlover/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/linuxlover/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.6-linaro_uClibc-0.9.33.2/bin
> linuxlover@hide:~/openwrt_py/pycups-1.9.63$ make clean
> rm -rf build cups.so *.pyc *~
> linuxlover@hide:~/openwrt_py/pycups-1.9.63$ make
> CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-uclibc-ld V=spython
> setup.py build
> running build
> running build_ext
> building 'cups' extension
> creating build
> creating build/temp.linux-x86_64-2.7
> mips-openwrt-linux-uclibc-gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
> -Wall -Wstrict-prototypes -fPIC -DVERSION="1.9.63" -I/usr/include/python2.7
> -c cupsmodule.c -o build/temp.linux-x86_64-2.7/cupsmodule.o
> In file included from /usr/include/python2.7/Python.h:58:0,
>                  from cupsmodule.c:22:
> /usr/include/python2.7/pyport.h:873:2: error: #error "LONG_BIT definition
> appears wrong for platform (bad gcc/glibc config?)."
> cupsmodule.c:23:23: fatal error: cups/cups.h: No such file or directory
> compilation terminated.
> error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1
> make: *** [cups.so] Error 1
>
>
>
> 2013/10/31 Adm <linuxloverstaff@gmail.com>
>
>> sto provando a compilare la libraria pycups per i dispositivi supportati
>> da opewrt.
>>
>> Non ci riesco.
>>
>> Mi dareste una mano?
>>
>> Guida openwrt:
>> http://wiki.openwrt.org/doc/devel/crosscompile
>>
>> La libreria:
>> https://pypi.python.org/pypi/pycups
>>
>> Il mio output:
>> make CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-uclibc-ld V=s
>> python setup.py build
>> running build
>> running build_ext
>> building 'cups' extension
>> mips-openwrt-linux-uclibc-gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv
>> -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION="1.9.63"
>> -I/usr/include/python2.7 -c cupsmodule.c -o
>> build/temp.linux-x86_64-2.7/cupsmodule.o
>> unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory
>> error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1
>> make: *** [cups.so] Error 1
>>
>>
>> grazie
>> ADM
>>
>
>
-------------- parte successiva --------------
Un allegato HTML  stato rimosso...
URL: <http://lists.linux.it/pipermail/golem/attachments/20131031/e2564a33/attachment.html>


Maggiori informazioni sulla lista golem