We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
文件都是可以找到的,因为只要lib目录下或者include目录下文件删除都不是下面的错误 https://www.mr-cn.net/2020/07/07/AWTK-GUI-in-Anyka-Arm-Linux/ 我编译了 1.4(https://github.com/libts/tslib/releases/download/1.4/tslib-1.4.tar.gz) 1.22(https://github.com/libts/tslib/releases/download/1.22/tslib-1.22.tar.gz) ./configure --disable-static --enable-shared --enable-input=shared --enable-linear=shared --enable-iir=shared --host=aarch64-linux-gnu --prefix=/home/ylin/AWTK/tslib/build_dir/tslib CC=/usr/bin/aarch64-linux-gnu-gcc CXX=/usr/bin/aarch64-linux-gnu-g++ 两个版本都是以下的错误 交叉编译我用的是树莓派3B, 不编译tslib 是可以运行的 直接在树莓派编译也一样的问题
scons: done reading SConscript files. scons: Building targets ... aarch64-linux-gnu-gcc -o bin/demo1 -Wl,-rpath=./bin -Wl,-rpath=./ build/var/awtk/demos/demo1_app.o -L/home/ylin/AWTK/tslib/build_dir/tslib/lib -Llib -Lbin -lassets_old -lts -lawtk_global -lextwidgets -lwidgets -lawtk_linux_fb -lbase -lgpinyin -llinebreak -lfribidi -ldebugger -lfscript_ext -lstreams -lconf_io -lhal -lxml -lcharset -lcsv -lubjson -lcompressors -lminiz -ltkc_core -lmbedtls -lnanovg-agge -lagge -lnanovg -lstdc++ -lpthread -lrt -lm -ldl /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: lib/libawtk_linux_fb.a(tslib_thread.o): in function tslib_run': tslib_thread.c:(.text+0xb0): undefined reference to ts_close' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0xbc): undefined reference to ts_open' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x124): undefined reference to ts_read' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x1ec): undefined reference to ts_close' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x210): undefined reference to ts_config' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: lib/libawtk_linux_fb.a(tslib_thread.o): in function tslib_thread_run': tslib_thread.c:(.text+0x334): undefined reference to ts_open' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x358): undefined reference to ts_config' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x3ac): undefined reference to ts_close' collect2: error: ld returned 1 exit status scons: *** [bin/demo1] Error 1 scons: building terminated because of errors.
tslib_run': tslib_thread.c:(.text+0xb0): undefined reference to
ts_open' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x124): undefined reference to
ts_close' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x210): undefined reference to
tslib_thread_run': tslib_thread.c:(.text+0x334): undefined reference to
ts_config' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x3ac): undefined reference to
Originally posted by @peachT in #44 (comment)
The text was updated successfully, but these errors were encountered:
https://github.com/PeachT/tslib_API_TEST 做了一个简单测试,是可以调用到 链接库中的API的 如果有大神知道怎么回事,指点一下,给点思路非常感谢!
Sorry, something went wrong.
做 ./configure前 先export ex: export PATH=$PATH:/opt/ivot/aarch64-ca53-linux-gnueabihf-8.4.01/bin export LD_LIBRARY_PATH=/opt/ivot/aarch64-ca53-linux-gnueabihf-8.4.01/lib 再做 ./configure and make
另外 c and cpp link 時需加入 extern "C" { void C_function(); }
No branches or pull requests
文件都是可以找到的,因为只要lib目录下或者include目录下文件删除都不是下面的错误
https://www.mr-cn.net/2020/07/07/AWTK-GUI-in-Anyka-Arm-Linux/
我编译了
1.4(https://github.com/libts/tslib/releases/download/1.4/tslib-1.4.tar.gz)
1.22(https://github.com/libts/tslib/releases/download/1.22/tslib-1.22.tar.gz)
./configure --disable-static --enable-shared --enable-input=shared --enable-linear=shared --enable-iir=shared --host=aarch64-linux-gnu --prefix=/home/ylin/AWTK/tslib/build_dir/tslib CC=/usr/bin/aarch64-linux-gnu-gcc CXX=/usr/bin/aarch64-linux-gnu-g++
两个版本都是以下的错误
交叉编译我用的是树莓派3B, 不编译tslib 是可以运行的
直接在树莓派编译也一样的问题
scons: done reading SConscript files.
scons: Building targets ...
aarch64-linux-gnu-gcc -o bin/demo1 -Wl,-rpath=./bin -Wl,-rpath=./ build/var/awtk/demos/demo1_app.o -L/home/ylin/AWTK/tslib/build_dir/tslib/lib -Llib -Lbin -lassets_old -lts -lawtk_global -lextwidgets -lwidgets -lawtk_linux_fb -lbase -lgpinyin -llinebreak -lfribidi -ldebugger -lfscript_ext -lstreams -lconf_io -lhal -lxml -lcharset -lcsv -lubjson -lcompressors -lminiz -ltkc_core -lmbedtls -lnanovg-agge -lagge -lnanovg -lstdc++ -lpthread -lrt -lm -ldl
/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: lib/libawtk_linux_fb.a(tslib_thread.o): in function
tslib_run': tslib_thread.c:(.text+0xb0): undefined reference to
ts_close'/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0xbc): undefined reference to
ts_open' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x124): undefined reference to
ts_read'/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x1ec): undefined reference to
ts_close' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x210): undefined reference to
ts_config'/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: lib/libawtk_linux_fb.a(tslib_thread.o): in function
tslib_thread_run': tslib_thread.c:(.text+0x334): undefined reference to
ts_open'/usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x358): undefined reference to
ts_config' /usr/lib/gcc-cross/aarch64-linux-gnu/10/../../../../aarch64-linux-gnu/bin/ld: tslib_thread.c:(.text+0x3ac): undefined reference to
ts_close'collect2: error: ld returned 1 exit status
scons: *** [bin/demo1] Error 1
scons: building terminated because of errors.
Originally posted by @peachT in #44 (comment)
The text was updated successfully, but these errors were encountered: