rest_rpc
rest_rpc copied to clipboard
ubuntu上配置
在ubuntu16.04的环境中使用cmake编译example的程序,在编译之前安装了boost。想请教一下,是不是只需要安装boost就可以了。但是在example 下执行cmake 出现了如下的错误: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Boost: /usr/include (found version "1.58.0") found components: system filesystem CMake Error at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Call Stack (most recent call first): /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake-3.20/Modules/FindJNI.cmake:382 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:14 (find_package)
gcc version 5.4.0 boost 1.58.0
同样的问题,boost 1.77, github最新的代码,报的同样的错误
你好,你需要装一下jdk,试着装一下openjdk8 看看能不能解决你的问题
后面会有一个pr加一个编译选项,默认不打开JAVA,文档会加一下如果要用java 接口需要注意的地方。
最新版已经去掉了boost依赖。