artificerpi

在Ubuntu中安装LiteIDE

该文章主要讲述从源码编译LiteIDE的步骤。

 

编译环境

  Ubuntu 16.04  64bit,   Qt 5.5.1

  $ uname -a

Linux kev-ubuntu 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 

        $ gcc -version

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

        $ qmake --version

QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

 

先决条件

  编译liteIDE需要安装golang开发环境(设置好gopath即可)。

  Git (推荐使用,便于手动“升级软件”)

sudo apt-get install git-core
View Code

 

编译步骤

  • 获取源码
    • git clone https://github.com/visualfc/liteide.git
  • 设置QTDIR环境变量
    • # 此处使用的是qt5
      export QTDIR=/usr/share/qt5          
  • 更新package
    • cd liteide/build
      ./update_pkg.sh
  • Build源码
    • ./build_linux.sh
  • Deploy 
    •   ./deploy_linux_x64_qt5.sh

 

成功之后在src的同级目录(build目录)下,会生成一个liteide目录,进入 liteide/bin目录运行liteide 就可以了。你也可以选择将生成的文件复制到你想要的位置,将liteide加入启动器就OK了。

 

直接安装兼容性更好

  https://sourceforge.net/projects/liteide/

 

参考: https://github.com/visualfc/liteide/blob/master/liteidex/deploy/welcome/zh_CN/install.md

posted @ 2016-09-03 23:17  artificerpi  阅读(4033)  评论(0编辑  收藏  举报

Copyright ©2017 artificerpi