qtcreator cannot find -lts

简介: /********************************************************************* * qtcreator cannot find -lts * 声明: * 在对虚拟机文件夹整理的时候不小心将tslib的库目录给整理没了,然后 * 对Qt程序进行编译的时候发现找不到库文件,幸好保留了编译Qt库的配置脚本 * 文件,省了好多事。
/*********************************************************************
 *                qtcreator  cannot find -lts
 * 声明:
 *     在对虚拟机文件夹整理的时候不小心将tslib的库目录给整理没了,然后
 * 对Qt程序进行编译的时候发现找不到库文件,幸好保留了编译Qt库的配置脚本
 * 文件,省了好多事。
 *
 *                                   2016-1-14 深圳 南山平山村 曾剑锋
 ********************************************************************/


一、错误现象:
    /home/Qt/arm-linux-gcc/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lts
    collect2: ld returned 1 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 16,18,24,32 \
    -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.5-arm/qml 

四、恢复库位置:
    1. /home/Qt/Qt/tslib-install/include 
    2. /home/Qt/Qt/tslib-install/lib 
        

 

目录
相关文章
|
8月前
|
Ubuntu 开发工具 Android开发
Repo下载、编译AOSP源码:基于Ubuntu 21.04,android-12.1.0_r27
文章记录了作者在Ubuntu 21.04服务器上配置环境、下载并编译基于Android 12.1.0_r27版本的AOSP源码的过程,包括解决编译过程中遇到的问题和错误处理方法。
562 0
|
11月前
|
关系型数据库 MySQL Linux
centos7 编译报错 cannot find -lmysqlclient
centos7 编译报错 cannot find -lmysqlclient
|
11月前
|
Linux Windows
教你在Linux上安装Node并用Electron打包deb和rpm包
教你在Linux上安装Node并用Electron打包deb和rpm包
611 9
|
Linux
Linux下的find的使用方法
Linux下的find的使用方法
137 0
|
11月前
|
运维 JavaScript Linux
Linux find
Linux find
49 0
|
机器学习/深度学习 Linux
linux:find查看最近修改的文件
linux:find查看最近修改的文件
200 0
|
Ubuntu
Ubuntu find 命令
Ubuntu find 命令
170 0
|
机器学习/深度学习 数据可视化 Java
Linux find 命令介绍
Linux find 命令介绍
375 0
Linux find 命令介绍
|
Linux
Linux - find 命令
Linux - find 命令
152 0
|
机器学习/深度学习 Linux
linux find
-perm 权限 -prune 忽略 -user 属主 -groupname -gid -mtime -n +n 按照文件的更改时间来查找文件, -n表示文件更改时间距现在n天以内,+n表示文件更改时间距现在n天以前。
1006 0