首页 技术 正文
技术 2022年11月19日
0 收藏 753 点赞 2,395 浏览 1457 个字
/*********************************************************************
* qtcreator cannot find -lts
* 声明:
* 在对虚拟机文件夹整理的时候不小心将tslib的库目录给整理没了,然后
* 对Qt程序进行编译的时候发现找不到库文件,幸好保留了编译Qt库的配置脚本
* 文件,省了好多事。
*
* 2016-1-14 深圳 南山平山村 曾剑锋
********************************************************************/一、错误现象:
/home/Qt/arm-linux-gcc/gcc-4.6.-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6./../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lts
collect2: ld returned exit status二、原因:
编译Qt库的时候指定的tslib安装目录被移动了,找不到库的位置。三、查看Qt库配置脚本如下:
#!/bin/sh
./configure \
-opensource \
-confirm-license \
-release \
-shared \
-embedded arm \
-force-pkg-config \
-xplatform qws/linux-arm-fsl-gnueabi-g++ \
-depths ,,, \
-fast \
-optimized-qmake \
-pch \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-qt-libtiff -qt-libmng \
-make translations \
-qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen \
-no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput \
-no-kbd-qvfb -armfpa \
-no-mouse-qvfb \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-webkit \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -make tools -nomake docs \
-qt-mouse-tslib -DQT_QLOCALE_USES_FCVT \
-I/home/Qt/Qt/tslib-install/include \
-L/home/Qt/Qt/tslib-install/lib \
-importdir /usr/local/Trolltech/QtEmbedded-4.8.-arm/qml 四、恢复库位置:
. /home/Qt/Qt/tslib-install/include
. /home/Qt/Qt/tslib-install/lib
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,103
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,579
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,427
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,199
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,834
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,917