在按照Ubuntu下 lpp0900320123的嵌入式Qt开发环境的搭建 中的方法步骤安装安装触摸屏校验工具tslib时遇到两个问题:
1.粘贴复制网页上的命令#./configure --prefix=/usr/local/tslib --host=arm-linux ac_cv_func_malloc_0_nonnull=yes到中断执行时报错。解决办法将命令中所有的空格删掉,在回复。
2.执行完上面命令后,继续执行make,发现报了两个错误:
In function ‘open’,
inlined from ‘main’ at ts_calibrate.c:227:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function ‘open’,
inlined from ‘main’ at ts_calibrate.c:229:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [ts_calibrate.o] Error 1
make[2]: Leaving directory `/o