安装环境
系统为统领专业版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