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 
        

 

目录
相关文章
|
5月前
|
存储 Cloud Native Linux
QtCreator中三种不同编译版本 debug、release、profile 的区别
QtCreator中三种不同编译版本 debug、release、profile 的区别
|
25天前
|
Ubuntu 编译器 Linux
Ubuntu下Qt编程,从QT的安装到编写notepad
Ubuntu下Qt编程,从QT的安装到编写notepad
|
5月前
|
存储 NoSQL Java
安装win版本的neo4j(2023最新版本)
安装win版本的neo4j(2023最新版本)
90 0
|
10月前
|
Ubuntu 编译器 Linux
Ubuntu中gcc-arm-none-eabi的安装、移除和版本切换
Ubuntu中gcc-arm-none-eabi的安装、移除和版本切换
715 0
Ubuntu中gcc-arm-none-eabi的安装、移除和版本切换
|
Ubuntu Linux
Ubuntu20.04 编译Buildroot(支持Qt编译)
Ubuntu20.04 编译Buildroot(支持Qt编译)
1311 0
Ubuntu20.04 编译Buildroot(支持Qt编译)
|
开发工具 git
develop版本fastdeploy win下安装错误
develop版本fastdeploy win下安装错误
1075 0
|
Ubuntu
Ubuntu find 命令
Ubuntu find 命令
123 0
|
Ubuntu Linux
Ubuntu 安装Qt
下载Qt,这里步骤略过
214 0
Ubuntu 安装Qt
|
缓存 NoSQL Linux
CentOS/Deepin遇到Qt系列问题的解决方案(例如error: cannot find -lGL和搜狗输入法无效等)
CentOS/Deepin遇到Qt系列问题的解决方案(例如error: cannot find -lGL和搜狗输入法无效等)
458 0