Description
According to the official GitHub installation instructions, we need to install Qt and guile1.8, then download the project code and build it with the command [cmake], Finally use the command [make] to install TeXmac. The difficult steps are [install Qt, install guile and install cmake], as explained below.
-
Install Qt
[Qt: Qt is a cross-platform C++ application development framework. It is widely used to develop GUI programs, which in this case is also called component toolbox. It can also be used to develop non-GUI programs such as console tools and servers.
Qt Creator: Qt Creator is a cross-platform integrated development environment, especially for Qt developers, which is a part of the Qt SDK. It can be run on Windows, Linux/X11 and Mac OS X desktop operating systems, allowing developers to create applications for desktop environments and mobile device platforms. It includes a visual debugging tool and an integrated GUI layout and shape designer. ]
The installation package used is qt-opensource-linux-x64-5.11.3.run
Installation command:
chmod +x qt.......
./qt......
You can refer to this link [http://www.cnblogs.com/huicanlin/p/5279089.html] for configuration. -
Install guile
[Scheme is a programming language, and Guile (Scheme interpreter and library) converts it into an embedded scripting 5935 language, which is a great way to introduce dynamics into static applications. It is powerful in building scalable applications.】
Three guile-related packages have been downloaded, namely guile-1.8_1.8.8+1-10_amd64.deb, guile-1.8-libs_1.8.8+1-10_amd64.deb, and guile-1.8-dev_1.8.8+1-10_amd64. Deb;
The first two packages are currently installed and no error is reported. -
Install cmake
[cmake: CMake is an open source cross-platform automation building system for managing software builds and is not dependent on a particular compiler. It can support multiple levels of directories, multiple applications, and multiple libraries. It uses configuration files to control the construction process in a similar way to Unix make, except that cmake's configuration file is named CMakeLists.txt. 】
First, in ubuntu, enter the command [sudo apt-get install cmake], which will install a lower version of cmake, which generally needs to be upgraded by:
sudo apt-get upgrade
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update[Intractable disease: apt-get install xx can not be successfully installed due to dependent package reasons]
The solution:
sudo apt-get -f autoremove
In the process of analyzing the code, I found that I need to master the cmake syntax, the relevant cmake learning links are as follows:
https://github.com/Akagi201/learning-cmake
Https://github.com/ttroy50/cmake-examples