firemail
标题:
KDSoap
[打印本页]
作者:
firemail
时间:
2017-9-29 16:37
标题:
KDSoap
本帖最后由 firemail 于 2017-9-30 17:19 编辑
https://github.com/hechengjin/KDSoap
按 INSTALL-cmake.txt 里面的内容进行编译
mkdir build
cd build/
cmake -DKDSOAP_STATIC=True -DCMAKE_BUILD_TYPE=Debug
..
没有安装qt报如下错:
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
CMake Error at /usr/share/cmake-3.7/Modules/FindQt4.cmake:1318 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:69 (find_package)
复制代码
安装到 /opt/Qt5.8.0
vim ~/.bashrc
export PATH=/opt/Qt5.8.0/5.8/gcc_64/bin:$PATH
export QTDIR=/opt/Qt5.8.0/5.8/gcc_64
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
复制代码
. ~/bashrc
再编译报如下错:
cmake -DKDSOAP_STATIC=True -DKDSoap_ENFORCE_QT4_BUILD=false -DCMAKE_BUILD_TYPE=Debug ..
CMake Error at /opt/Qt5.8.0/5.8/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
/opt/Qt5.8.0/5.8/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:146 (include)
/opt/Qt5.8.0/5.8/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:87 (find_package)
CMakeLists.txt:52 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/hechengjin/gitProjects/FM/KDSoap/build/CMakeFiles/CMakeOutput.log".
复制代码
<GL/gl.h> not found in Linux
用
apt-file
search "GL/gl.h" 查看其所在库
结果中有
esa-common-dev
mesa-common-dev: /usr/include/GL/gl.h
再参考qt的源码
/opt/Qt5.8.0/5.8/Src/qtwebengine/src/3rdparty/chromium/third_party/mesa/src/include/GL/gl.h
所以安装如下依赖库:
apt-get install
mesa-common-dev
cmake成功!
make
编译成功
导出库路径vim ~/.bashrc
LD_LIBRARY_PATH=/path/to/kdsoap/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
复制代码
. ~/.bashrc
欢迎光临 firemail (http://firemail.wang:8088/)
Powered by Discuz! X3