zoukankan      html  css  js  c++  java
  • Linux命令行编译Qt项目

    1.系统环境

    Linux系统版本   

     1 cat /etc/issue 

    系统内核             

     1 uname -a 

     2.Qt安装完成后,添加qmake的路径到PATH路径中,

    1 #添加qmake路径到PATH路径中
    2 vim.tiny /home/elephantrob/.bashrc
    3 
    4 #在打开的.bashrc最末端添加PATH
    5 export PATH=$:/home/elephantrob/Qt/5.5/gcc/bin
    6 
    7 #保存退出编辑的.bashrc文件,source重新执行该文件
    8 source /home/elephantrob/.bashrc

    确认qmake版本   

     1 qmake -v 

    3.编写shell脚本(build.sh),执行脚本build.sh,开始编译

    1 qmake TestQt.pro -r -spec linux-g++-32;
    2 make clean;
    3 make -j4
  • 相关阅读:
    How Many Answers Are Wrong
    Agri-Net —poj1258
    食物链
    A Bug's Life
    畅通工程
    Shortest path of the king
    Alex and Number
    KMP
    快速幂
    0x04
  • 原文地址:https://www.cnblogs.com/Asatic/p/12400800.html
Copyright © 2011-2022 走看看