TSLIB_LIB_DIR='/opt/28x/tslib/lib'
TSLIB_INC_DIR='/opt/28x/tslib/include'
TOOLS_PREFIX='/opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-'
#TOOLS_PREFIX='/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-'
现在需要指向tslib库不知道目录怎么查找
离线
编译 tslib 的时候, 安装目录选 /opt/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/ 就可以了,
或者用 buildroot 太省事
离线
我没明白您的意思下面的目录是awtk在别的环境中的目录
TSLIB_LIB_DIR='/opt/28x/tslib/lib'
TSLIB_INC_DIR='/opt/28x/tslib/include'
我想根据环境改成自己的改怎么改
离线
我也没明白你的意思, 干脆用 buildroot 勾选 tslib
离线
我的意思就是要运行awtk但是tslib库不知道怎么回事?
离线
我用buildroot直接编译的应该是成功了勾选上enable tslib支持了
离线
./output/build/qt5base-5.9.1/src/plugins/generic/tslib
./output/build/qt5base-5.9.1/src/plugins/generic/tslib/tslib.pro
./output/build/qt5base-5.9.1/src/plugins/generic/tslib/tslib.json
./output/build/qt5base-5.9.1/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosfileengineassetslibrary.mm
./output/build/qt5base-5.9.1/src/plugins/platforms/ios/optional/nsphotolibrarysupport/qiosfileengineassetslibrary.h
./output/build/qt5base-5.9.1/src/platformsupport/input/.obj/moc_qtslib_p.o
./output/build/qt5base-5.9.1/src/platformsupport/input/.obj/qtslib.o
./output/build/qt5base-5.9.1/src/platformsupport/input/tslib
./output/build/qt5base-5.9.1/src/platformsupport/input/tslib/qtslib_p.h
./output/build/qt5base-5.9.1/src/platformsupport/input/tslib/qtslib.cpp
./output/build/qt5base-5.9.1/src/platformsupport/input/tslib/tslib.pri
./output/build/qt5base-5.9.1/src/platformsupport/input/.moc/moc_qtslib_p.cpp
./output/build/qt5base-5.9.1/include/QtInputSupport/5.9.1/QtInputSupport/private/qtslib_p.h
./output/build/qt5base-5.9.1/plugins/generic/libqtslibplugin.so
./output/build/qt5base-5.9.1/config.tests/unix/tslib
./output/build/qt5base-5.9.1/config.tests/unix/tslib/tslib
./output/build/qt5base-5.9.1/config.tests/unix/tslib/tslib.pro
./output/build/qt5base-5.9.1/config.tests/unix/tslib/tslib.cpp
./output/build/qt5base-5.9.1/config.tests/unix/tslib/tslib.o
./output/build/qt5base-5.9.1/mkspecs/modules-inst/qt_plugin_qtslibplugin.pri
./output/build/qt5base-5.9.1/mkspecs/modules/qt_plugin_qtslibplugin.pri
./output/build/tslib-1.11
./output/build/tslib-1.11/src/tslib-private.h
./output/build/tslib-1.11/src/tslib.h
./output/build/tslib-1.11/src/tslib-filter.h
./output/build/tslib-1.11/tslib.pc
./output/build/tslib-1.11/m4/internal/tslib_modules.m4
./output/build/tslib-1.11/tslib.pc.in
./output/build/buildroot-config/br2/package/tslib.h
./output/build/buildroot-config/br2/package/qt5base/tslib.h
./output/target/usr/lib/qt/plugins/generic/libqtslibplugin.so
./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/tslib.h
./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/qt5/QtInputSupport/5.9.1/QtInputSupport/private/qtslib_p.h
./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/qt/plugins/generic/libqtslibplugin.so
./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/pkgconfig/tslib.pc
./dl/tslib-1.11.tar.xz
./package/tslib
./package/tslib/tslib.hash
./package/tslib/tslib.mk
./package/x11r7/xdriver_xf86-input-tslib
./package/x11r7/xdriver_xf86-input-tslib/xdriver_xf86-input-tslib.mk
./package/x11r7/xdriver_xf86-input-tslib/xdriver_xf86-input-tslib.hash
./package/python-rtslib-fb
./package/python-rtslib-fb/python-rtslib-fb.hash
./package/python-rtslib-fb/python-rtslib-fb.mk
root@ubuntu:/home/fanyunzi/buildroot-2017.08.1#
这些是我在buildroot中搜索tslib 执行的find ./ -name *tslib*找到的结果不知道哪个是编译好的,因为awtk指定的tslib路径是是要求编译好的
最近编辑记录 泽被苍生 (2020-03-01 16:58:26)
离线
然后把编译好的tslib路径替换下面语句中的“/op/28xt”
TSLIB_LIB_DIR='/opt/28x/tslib/lib'
TSLIB_INC_DIR='/opt/28x/tslib/include'
离线
TSLIB_LIB_DIR='output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/'
TSLIB_INC_DIR='output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/'
TOOLS_PREFIX='output/host/bin/arm-linux-'
上面这样应该可以, 不过你仍然可能需要把路径改成绝对路径.
我是这样搜索的:
whycan@ubuntu:/opt/buildroot-2019.08-sf$ find . |grep /tslib.h$
./output/build/tslib-1.20/src/tslib.h
./output/build/buildroot-config/br2/package/tslib.h
./output/build/buildroot-config/br2/package/qt5base/tslib.h
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/tslib.h
whycan@ubuntu:/opt/buildroot-2019.08-sf$
whycan@ubuntu:/opt/buildroot-2019.08-sf$
whycan@ubuntu:/opt/buildroot-2019.08-sf$
whycan@ubuntu:/opt/buildroot-2019.08-sf$
whycan@ubuntu:/opt/buildroot-2019.08-sf$ find . |grep libts.so
./output/build/tslib-1.20/src/.libs/libts.so.0.10.2
./output/build/tslib-1.20/src/.libs/libts.so.0
./output/build/tslib-1.20/src/.libs/libts.so
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libts.so.0.10.2
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libts.so.0
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libts.so
./output/target/usr/lib/libts.so.0.10.2
./output/target/usr/lib/libts.so.0
./output/target/usr/lib/libts.so
在线
好的晕哥我试试,晕哥太负责任了
最近编辑记录 泽被苍生 (2020-03-01 17:41:14)
离线
可以了晕哥再次感谢晕哥的帮助,awtk已经可以在v3s上运行了,按晕哥的方式修改了
TSLIB_LIB_DIR='output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/'
TSLIB_INC_DIR='output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/'
TOOLS_PREFIX='output/host/bin/arm-linux-'
然后在awtk-linux-fb目录下运行 scons 指令就可以交叉编译了。
然后运行 .sh ./release.sh 就可以打包获得 release.tar.gz
然后就可以解压 tar -zxvf release.tar.gz 得到 release
把release考到荔枝zero上就可以运行了
离线
想发张图片但是不会发图片
离线
离线
感谢晕哥,刚刚对照这个来了一发lvgl ts lib,搞定了
离线