<div dir="ltr"><div>ho ancora bisogno di aiuto, intanto: tutti i passaggi che ho fatto</div><div><a href="https://forum.openwrt.org/viewtopic.php?id=47094">https://forum.openwrt.org/viewtopic.php?id=47094</a><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/31 Adm <span dir="ltr"><<a href="mailto:linuxloverstaff@gmail.com" target="_blank">linuxloverstaff@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">quello che vi ho mandato ieri non era il vero errore di compilazione. Era una stupidaggine.<div>Quello che vi mando ora č il vero problema:</div><div><br></div><div><div>linuxlover@hide:~/openwrt_py/pycups-1.9.63$ echo $PATH</div>
<div>/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</div><div>linuxlover@hide:~/openwrt_py/pycups-1.9.63$ make clean</div>
<div>rm -rf build cups.so *.pyc *~</div><div>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</div><div class="im"><div>running build</div>
<div>running build_ext</div>
<div>building 'cups' extension</div></div><div>creating build</div><div>creating build/temp.linux-x86_64-2.7</div><div class="im"><div>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</div>
</div><div>In file included from /usr/include/python2.7/Python.h:58:0,</div><div> from cupsmodule.c:22:</div><div>/usr/include/python2.7/pyport.h:873:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."</div>
<div>cupsmodule.c:23:23: fatal error: cups/cups.h: No such file or directory</div><div>compilation terminated.</div><div class="im"><div>error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1</div>
<div>make: *** [cups.so] Error 1</div>
</div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/31 Adm <span dir="ltr"><<a href="mailto:linuxloverstaff@gmail.com" target="_blank">linuxloverstaff@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">sto provando a compilare la libraria pycups per i dispositivi supportati da opewrt.<div><br></div><div>
Non ci riesco.</div>
<div><br></div><div>Mi dareste una mano?</div><div><br></div><div>Guida openwrt:</div>
<div><a href="http://wiki.openwrt.org/doc/devel/crosscompile" target="_blank">http://wiki.openwrt.org/doc/devel/crosscompile</a><br></div><div><br></div><div>La libreria:</div><div><a href="https://pypi.python.org/pypi/pycups" target="_blank">https://pypi.python.org/pypi/pycups</a><br>
</div><div><br></div><div>Il mio output:</div><div><div>make CC=mips-openwrt-linux-uclibc-gcc LD=mips-openwrt-linux-uclibc-ld V=s</div><div>python setup.py build</div><div>running build</div><div>running build_ext</div><div>
building 'cups' extension</div><div>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</div>
<div>unable to execute mips-openwrt-linux-uclibc-gcc: No such file or directory</div><div>error: command 'mips-openwrt-linux-uclibc-gcc' failed with exit status 1</div><div>make: *** [cups.so] Error 1</div></div>
<div>
<br></div><div><br></div><div>grazie</div><span><font color="#888888"><div>ADM</div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>