本帖最后由 firemail 于 2017-9-30 18:13 编辑
https://github.com/hechengjin/ews-qt
mkdir build cd build cmake .. - CMake Error at CMakeLists.txt:10 (find_package):
- By not providing "FindKDSoap.cmake" in CMAKE_MODULE_PATH this project has
- asked CMake to find a package configuration file provided by "KDSoap", but
- CMake did not find one.
- Could not find a package configuration file provided by "KDSoap" with any
- of the following names:
- KDSoapConfig.cmake
- kdsoap-config.cmake
- Add the installation prefix of "KDSoap" to CMAKE_PREFIX_PATH or set
- "KDSoap_DIR" to a directory containing one of the above files. If "KDSoap"
- provides a separate development package or SDK, be sure it has been
- installed.
- -- Configuring incomplete, errors occurred!
- 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 文件
|