欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tufao安装过程出现的问题

程序员文章站 2022-06-25 20:28:08
...

tufao安装过程出现的问题

安装步骤:

1、下载tufao
下载地址:https://github.com/vinipsmaker/tufao/releases
友情提示:1.4.0以及以上的版本在接下来编译时会出错,详见问题三,建议下载1.3.10版本
2、解压安装
tar -zxvf tufao-1.3.10.tar.gz
cd tufao-1.3.10/
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=/usr …
make
sudo make install

问题一:Could not find a package configuration file provided by “Qt5Core”

问题出现:
出现在执行cmake -DCMAKE_INSTALL_PREFIX=/usr … 之后
解决办法:
打开build文件夹下的CPackConfig.cmake,找到Qt5Core_DIR,发现PATH=Not found,按照如下修改,重新执行cmake

//The directory containing a CMake configuration file for Qt5Core.

Qt5Core_DIR:PATH=/home/ubuntu/Qt5.9.3/5.9.3/gcc_64/lib/cmake/Qt5Core

问题二:Could not find a package configuration file provided by “Qt5Network”

问题出现以及解决办法跟问题一都一样,
//The directory containing a CMake configuration file for Qt5Network.
Qt5Network_DIR:PATH=/home/ubuntu/Qt5.9.3/5.9.3/gcc_64/lib/cmake/Qt5Network

问题三:fatal error: boost/http/reader/request.hpp: No such file or directory

问题截图:
tufao安装过程出现的问题
tufao-1.4.0以上的版本都有这个问题,我搞了好久,换成1.3.10版本的就行了

相关标签: tufao qt