firemail

标题: ews-qt [打印本页]

作者: firemail    时间: 2017-9-30 17:22
标题: ews-qt
本帖最后由 firemail 于 2017-9-30 18:13 编辑

https://github.com/hechengjin/ews-qt


mkdir build

cd build

cmake ..

  1. CMake Error at CMakeLists.txt:10 (find_package):
  2.   By not providing "FindKDSoap.cmake" in CMAKE_MODULE_PATH this project has
  3.   asked CMake to find a package configuration file provided by "KDSoap", but
  4.   CMake did not find one.

  5.   Could not find a package configuration file provided by "KDSoap" with any
  6.   of the following names:

  7.     KDSoapConfig.cmake
  8.     kdsoap-config.cmake

  9.   Add the installation prefix of "KDSoap" to CMAKE_PREFIX_PATH or set
  10.   "KDSoap_DIR" to a directory containing one of the above files.  If "KDSoap"
  11.   provides a separate development package or SDK, be sure it has been
  12.   installed.


  13. -- Configuring incomplete, errors occurred!
  14. See also "/home/hechengjin/gitProjects/FM/ews-qt/build/CMakeFiles/CMakeOutput.log".
复制代码
CMAKE_PREFIX_PATH=xxxx/KDSoap/build/KDSoap cmake ..

make
KDSoapClient/KDSoapValue.h: 没有那个文件或目录
修改CMakeLists.txt文件增加KDSoap的头文件路径即可(通过include_directories添加)
编译完成后会生成 libews-qt5.so.0.0.0 文件








欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3