jianglei12138 / cups Goto Github PK
View Code? Open in Web Editor NEWcups for android (UNIX通用打印系统)
License: Other
cups for android (UNIX通用打印系统)
License: Other
另外移植到android上之后,./cupsd -f 并没有日志输出,但是浏览器中能够打开631页面,但是点击添加打印机全是显示not found,另外发现生成的var/文件夹下面有文件夹但是各文件夹里面的内容全是空的,是否与此有关?
$make Using ARCHFLAGS= Using ALL_CFLAGS=-Ifontembed -I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT Using ALL_CXXFLAGS=-Ioprs -Iopvp -I../opvp -I../.. -I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT Using CC=arm-linux-androideabi-clang Using CXX=arm-linux-androideabi-clang Using DSOFLAGS=-L../cups -Wl,-soname,all -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -D_GNU_SOURCE Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -D_GNU_SOURCE Using LIBS=-lcups -lavahi-client -lavahi-core -lavahi-common -lz -pthread -lm -lz -llocale Making all in cups... Compiling adminutil.c... Compiling array.c... Compiling attr.c... Compiling auth.c... Compiling backchannel.c... Compiling backend.c... Compiling conflicts.c... Compiling custom.c... Compiling debug.c... Compiling dest.c... dest.c:38:12: fatal error: 'avahi-client/client.h' file not found # include ^~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make[1]: *** [dest.o] Error 1 make: *** [all] Error 1
Hi,
your liblocale's custom locale.h header file miss the definition of setlocale whose linkage symbol can be found in sysroot/usr/lib/libc.so by nm
extern char *setlocale(int category, const char *locale); //this line missed
老哥,按照你的操作步骤来。成功移植到了Android系统,访问127.0.0.1:631之后,home界面正常显示。但是其他界面,打印机管理啊,任务管理啊等,全部显示NOT FOUND,会是什么原因呢?并且想向您请教一下,您的cups做了哪些更改。
1、操作系统,新安装的ubuntu16.04x64
2、NDK版本android-ndk-r10e-linux-x86_64
编译时出现以下错误:
Compiling ieee1284.c...
In file included from ieee1284.c:22:0:
backend-private.h:34:26: fatal error: linux/lp.h: No such file or directory
include <linux/lp.h>
compilation terminated.
../Makedefs:253: recipe for target 'ieee1284.o' failed
make[1]: *** [ieee1284.o] Error 1
Makefile:31: recipe for target 'all' failed
make: *** [all] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.