1. Because of the needs of a recent project, the need to use TUFAO as a server on the service side, so go to the official website to download the TUFAO.TAR.GZ installation package and extract (TAR-ZXVF tufao.tar.gz); Enter the TUFAO directory; Configure (if there is no configure under the current directory, proceed to step 2 (1)); Then execute make, and this time the following error message appears:
2. On-line information about TUFAO is too little, looked for a long period of information has not been found, finally based on their long-standing experience, finally solve the problem; steps: Step (1)
CMake. -DCMAKE_INSTALL_PREFIX=/USR/
* Pay attention to cmake, to see where you are currently located, for example, in the extracted TUFAO directory, such as lxg@ubuntu~/tufao$, the execution of the above command In the previous level directory, execute:
cmake.-dcmake_install_prefix=/usr
*/
3. Then execute the make command, and the following error message appears:
lxg@ubuntu:~/tufao$ make
[ 3%] Automatic MOC for target tufao1
[ 3%] Built target Tufao1_autogen
[ 100%] Built target tufao1
lxg@ubuntu:~/tufao$ make install
[ 3%] Automatic MOC for target tufao1
[ 3 %] Built target Tufao1_autogen
[100%] Built target TUFAO1
Install the project ...
--Install configuration: ""
CMake Error at cmake_install.cmake:36 (file):
file Cannot create directory:/usr/l Ib/cmake/tufao1. Maybe need
administrative privileges.
/* Make error *
/Make: * * [Install] Error 1
Step (2) Use the sudo command to execute:
sudo make
Step (3) Use the sudo command to execute:
sudo make install
4. By this time, the problem has been successfully solved, now the lxg@ubuntu:/usr/include$ directory has tufao-1, as shown below:
5. Enter the directory below to see a lot of TUFFAO related header files, as shown below: