From: http://www.rocrocket.cn /? P = 29
Preface
The latest BBS software qterm0.5.1 was downloaded a few days ago. However, the unzipped file list is as follows:
Drwxr-XR-x 2 root Root 4096 build
Drwxr-XR-x 2 1000 1000 4096 cmake
-RW-r-1 1000 1000 542 cmakelists.txt
-RW-r-1 1000 1000 121 config. H. cmake
-RW-r-1 1000 1000 16 2008-03-04 readme
Drwxr-XR-x 8 1000 1000 4096 SRC
-RW-r-1 1000 1000 829 todo
No makefile or configure. How can I install makefile ?...
A Software Installation Method learned by qterm0.5.1
1. Because my system does not have the cmake command, yum has a cmake-2.4.8-1. fc8.i386 package
2. You also need the qmake command, which requires the yum install qt4-devel *
3. OK. All necessary tools are installed. Install qterm below ~
4. Go to the decompressed qterm0.5.1 directory qterm, create a new build directory (mkdir build) in it, and then enter the build directory (CD build)
5. Execute cmake ..-dqt_qmake_executable =/usr/lib/qt4/bin/qmake-dcmake_install_prefix =/usr/local/qterm-0.5.1 In the build directory
5.1-dqt_qmake_executable indicates the path of the qmake command. You can use the locate command to find the path or which qmake to obtain it.
5.2-dcmake_install_prefix indicates the directory where the qterm software is installed, which is equivalent to the-Prefix parameter of configure.
5.3 note that qmake of qt4 is required here. qt3 qmake cannot work ~
6. Execute make & make install in the build directory!
Knowledge link:
1. cmake is a derivative of kitware and some open-source developers in the process of developing several tool kits (VTK). It eventually forms a system and becomes an independent open-source project. The project was born in 2001. Its official website is www.cmake.org.
2. The popularity of cmake is actually attributed to the development of kde4 (it seems that like Svn in the past, Kde migrated the code repository from CVS to SVN, and also proved the availability of Svn in managing large projects)
3. Generally, cmake is not installed by default. You can use Yum install cmake to install cmake.
4. The objects file exists.
5. The process of writing cmake is actually a programming process. It is the same as the previous process of using autotools. However, you need to write cmakelists.txt (one for each directory), using the "cmake language and Syntax"
6. Do you want to select cmake?
6.1 if your project has only a few files, writing makefile directly is the best option.
6.2 if you are using a language other than C/C ++/Java, do not use cmake (at least currently)
6.3 If you only use QT programming, there is no need to use cmake, because qmake manages the professionalism and automation of QT engineering much higher than cmake.