龙芯3A3000源码编译安装deepin-ide

安装环境

系统为统信专业版1050 CPU为龙芯3A3000

安装步骤

1.安装所有依赖库

sudo apt-get install git debhelper cmake qt5-qmake qtbase5-dev qttools5-dev qttools5-dev-tools lxqt-build-tools libssl-dev llvm llvm-dev libclang-dev libutf8proc-dev libmicrohttpd-dev libjsoncpp-dev libargtable2-dev libhiredis-dev catch libzstd-dev libjson-c-dev libelf-dev libcapstone-dev libunwind-dev libelfin-dev libdbus-1-dev libxi-dev qtscript5-dev libqt5scripttools5 clang doxygen

以下几个包需要单独安装(如果一起安装会出现apt依赖冲突问题,该现象也出现在了X86的debian系机器上,暂时原因未知):

sudo apt install  libcurl4-openssl-dev

sudo apt install libcurl4-nss-dev

sudo apt install libcurl4-gnutls-dev

2、确保已经安装所有依赖库。

复制代码
$ git clone https://github.com/linuxdeepin/deepin-unioncode.git 
(gitee: $ git clone https://gitee.com/deepin-community/deepin-unioncode.git)
$ cd deepin-unioncode
$ sudo apt build-dep ./

3、构建:

复制代码
$ cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
$ cmake --build build

构建时遇到的问题:

process ts file result : 1, with error: lupdate: could not exec

baixin@baixin-PC:~/Desktop/deepin-unioncode/deepin-unioncode$ cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
-- build version 0.0.1
-- LIBRARY_INSTALL_PREFIX /usr/lib/mips64el-linux-gnuabi64/deepin-unioncode
-- RUNTIME_INSTALL_RPEFIX /usr/bin
-- SOURCES_INSTALL_RPEFIX /usr/share/deepin-unioncode
-- INCLUDE_INSTALL_RPEFIX /usr/include/deepin-unioncode
-- PLUGIN_INSTALL_PATH /usr/lib/mips64el-linux-gnuabi64/deepin-unioncode/plugins
-- TOOLS_INSTALL_PATH /usr/lib/mips64el-linux-gnuabi64/deepin-unioncode/tools
-- CMAKE_INSTALL_RPATH /usr/lib/mips64el-linux-gnuabi64/deepin-unioncode
-- add cmake params found thread library from mips64
QtModule found Core OK!
QtModule found Gui OK!
QtModule found Widgets OK!
QtModule found Concurrent OK!
QtModule found Network OK!
QtModule found DBus OK!
-- Enable testing: OFF
-- Keyboard layouts will be installed in: /usr/share/deepin-unioncode/unioncode-qtermwidget/kb-layouts
-- Color schemes will be installed in: /usr/share/deepin-unioncode/unioncode-qtermwidget/color-schemes
-- Translations will be installed in: /usr/share/deepin-unioncode/unioncode-qtermwidget/translations
-- CMAKE_MODULE_PATH /home/baixin/Desktop/deepin-unioncode/deepin-unioncode/3rdparty/unioncode-jsonrpccpp/libjson-rpc-cpp/cmake
-- Jsoncpp header: /usr/include
-- Jsoncpp lib : /usr/lib/mips64el-linux-gnuabi64/libjsoncpp.so
-- UNIX_DOMAIN_SOCKET_SERVER: NO
-- UNIX_DOMAIN_SOCKET_CLIENT: NO
-- TCP_SOCKET_SERVER: YES
-- TCP_SOCKET_CLIENT: YES
-- HTTP_SERVER: NO
-- HTTP_CLIENT: NO
-- REDIS_SERVER: NO
-- REDIS_CLIENT: NO
-- UNIXDOMAINSOCKET_SERVER: NO
-- UNIXDOMAINSOCKET_CLIENT: NO
-- COMPILE_TESTS: NO
-- COMPILE_STUBGEN: NO
-- COMPILE_EXAMPLES: NO
-- Jsoncpp header: /usr/include
-- Jsoncpp lib : /usr/lib/mips64el-linux-gnuabi64/libjsoncpp.so
-- Jsoncpp header: /usr/include
-- Jsoncpp lib : /usr/lib/mips64el-linux-gnuabi64/libjsoncpp.so
-- Jsoncpp header: /usr/include
-- Jsoncpp lib : /usr/lib/mips64el-linux-gnuabi64/libjsoncpp.so
Build type is Release
-- Architecture: mips64
emd build option is :-Wall -Wextra -O2 -UDEBUG -DNDEBUG
preload build option is :-fno-stack-protector -fPIC -Wall -Wextra -O2 -UDEBUG -DNDEBUG
eveentman build option is :-Wall -Wextra -O2 -UDEBUG -DNDEBUG
-- process ts file: /home/baixin/Desktop/deepin-unioncode/deepin-unioncode/assets/translations/en_US.ts
CMake Error at assets/CMakeLists.txt:22 (message):
process ts file result : 1, with error: lupdate: could not exec
'/usr/lib/mips64el-linux-gnuabi64/qt4/bin/lupdate': No such file or
directory

解决方法:

qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake' since it links to qmake itself. Check your installation.

在linux系统上装了多个Qt版本,直接修改default.conf,输入qmake -v,打印qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake' since it links to qmake itself. Check your installation.

1、打开/usr/lib/x86_64-linux-gnu/qtchooser目录,查看对应版本的conf文件,打开,查看

2、编辑/usr/lib/x86_64-linux-gnu/qt-default/qtchooser/default.conf,将步骤1的conf文件内容拷贝到这个文件中保存

4、安装:

复制代码
$ sudo cmake --build build --target install

5、运行

可执行程序为 /usr/bin/deepin-unioncode

安装完成

Qt设计器

ide版本信息

相关推荐
孤客网络科技工作室9 小时前
在 Jupyter Notebook 中使用 Matplotlib 进行交互式可视化的教程
ide·jupyter·matplotlib
kim565912 小时前
android studio 更改gradle版本方法(备忘)
android·ide·gradle·android studio
咸芝麻鱼12 小时前
Android Studio | 最新版本配置要求高,JDK运行环境不适配,导致无法启动App
android·ide·android studio
kim565913 小时前
各版本android studio下载地址
android·ide·android studio
饮啦冰美式13 小时前
Android Studio 将项目打包成apk文件
android·ide·android studio
一个松13 小时前
IDEA报包不存在,但实际存在
java·ide·intellij-idea
雷达学弱狗16 小时前
visual studio编译
ide·visual studio
牙买加_小杨16 小时前
用vscode编写verilog时,如何有信号定义提示、信号定义跳转(go to definition)、模块跳转这些功能
ide·vscode·编辑器
南郁16 小时前
06.VSCODE:备战大项目,CMake专项配置
ide·vscode·编辑器