龙芯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版本信息

相关推荐
xqlily4 小时前
通过 Visual Studio Code 启动 IPython
ide·vscode·ipython
梓沂5 小时前
idea修改模块名导致程序编译出错
java·ide·intellij-idea
dot.Net安全矩阵7 小时前
拒绝 Github 投毒,通过 Sharp4SuoBrowser 分析 Visual Studio 隐藏文件
ide·安全·web安全·github·.net·.netcore·visual studio
江西理工大学小杨8 小时前
VScode连接远程Linux服务器环境配置
ide·vscode·编辑器
aloneboyooo14 小时前
Android Studio安装配置
android·ide·android studio
蘑菇丁20 小时前
ansible批量生产kerberos票据,并批量分发到所有其他主机脚本
java·ide·eclipse
沈梦研1 天前
【Vscode】Vscode不能执行vue脚本的原因及解决方法
ide·vue.js·vscode
%小农1 天前
vscode的字体图标库-icomoon
ide·vscode·编辑器
踏上青云路1 天前
xceed PropertyGrid 如何做成Visual Studio 的属性窗口样子
ide·wpf·visual studio
菜泡泡@1 天前
vscode 自用插件
ide·vscode·编辑器