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

相关推荐
陈苏同学2 小时前
4. 将pycharm本地项目同步到(Linux)服务器上——深度学习·科研实践·从0到1
linux·服务器·ide·人工智能·python·深度学习·pycharm
菜鸟一皓13 小时前
IDEA的lombok插件不生效了?!!
java·ide·intellij-idea
white.tie1 天前
vscode配置golang
ide·vscode·golang
mashagua2 天前
本地访问autodl的jupyter notebook
ide·python·jupyter·autodl
DaphneOdera172 天前
Jupyter | jupyter notebook 使用 conda 环境
ide·jupyter·conda
一只积极向上的小咸鱼2 天前
jupyter本地配置
ide·python·jupyter
4v1d2 天前
Jupyter的使用分享
ide·python·jupyter
艾伦~耶格尔2 天前
IDEA 配置 Git 详解
java·ide·git·后端·intellij-idea
HoneyMoose2 天前
大厂笔试现已经禁用本地IDE怎么看
ide
十画_8242 天前
Visual Studio 字体与主题推荐
ide·visual studio