tslib编译arm版本

转载:https://blog.csdn.net/wang_shuai_ww/article/details/78465216


# ./autogen.sh

# ./configure --host=arm-linux-gnueabihf --prefix=/qt/tslib-1.4/install --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no ac_cv_func_malloc_0_nonnull=yes

# make -j4

# make install


1.执行./autogen.sh

提示错误:

./autogen.sh: 4: autoreconf: not found

解决方法:

sudo apt-get install autoconf automake libtool 

2. 执行 make 出错

error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

解决方法:

修改 cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR ,0777) (据说是交叉编译器版本问题)


3. 在开发板上运行校正程序时出现 No raw modules loaded

解决方法

把 tslib/etc 目录下的 ts.conf 的 "#module_raw input"的注释符号"#"去掉。但记住不要在前面留有空格 ,否则还会出现错误。



猜你喜欢

转载自blog.csdn.net/weixin_40385285/article/details/80239381