Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

everest-playground cmake failure - missing libpcap #143

Open
DanLipsitt opened this issue May 23, 2024 · 0 comments
Open

everest-playground cmake failure - missing libpcap #143

DanLipsitt opened this issue May 23, 2024 · 0 comments

Comments

@DanLipsitt
Copy link

I am trying to use docker/everest-playground/.devcontainer.json in VSCode. After launching the docker container and sourcing init.sh, cmake fails saying No package 'libcap' found. I verified that libpcap-dev is installed in the devcontainer.

Error log:

$ cmake ..
-- Dependency sigslot enabled:
--   EVEREST_DEPENDENCY_ENABLED_SIGSLOT=ON
-- Dependency libmodbus enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBMODBUS=ON
-- Dependency pugixml enabled:
--   EVEREST_DEPENDENCY_ENABLED_PUGIXML=ON
-- Dependency libtimer enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBTIMER=ON
-- Dependency libslac enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBSLAC=ON
-- Dependency libfsm enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBFSM=ON
-- Dependency libcurl enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBCURL=ON
-- Dependency libocpp enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBOCPP=ON
-- Dependency Josev enabled:
--   EVEREST_DEPENDENCY_ENABLED_JOSEV=ON
-- Dependency ext-openv2g enabled:
--   EVEREST_DEPENDENCY_ENABLED_OPENV2G=ON
-- Dependency ext-mbedtls enabled:
--   EVEREST_DEPENDENCY_ENABLED_MBEDTLS=ON
-- Dependency libevse-security enabled:
--   EVEREST_DEPENDENCY_ENABLED_LIBEVSE_SECURITY=ON
-- Dependency sqlite_cpp enabled:
--   EVEREST_DEPENDENCY_ENABLED_SQLITE_CPP=ON
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: filesystem program_options system thread 
[edm]: Scanning "/workspace/everest-cpp/everest-core" for dependencies.
[edm]: Parsing dependencies file: /workspace/everest-cpp/everest-core/dependencies.yaml
[edm]: Using parent directory as workspace path: /workspace/everest-cpp
[edm]: Setting up dependency "everest-framework" in workspace
[edm]: Setting up dependency "Josev" in workspace
[edm]: Setting up dependency "libmodbus" in workspace
[edm]: Setting up dependency "ext-mbedtls" in workspace
[edm]: Setting up dependency "libocpp" in workspace
[edm]: Setting up dependency "libslac" in workspace
[edm]: Setting up dependency "libtimer" in workspace
[edm]: Setting up dependency "ext-openv2g" in workspace
[edm]: Setting up dependency "everest-utils" in workspace
[edm]: Setting up dependency "libevse-security" in workspace
[edm]: Setting up dependency "libfsm" in workspace
[edm]: Dependency "everest-framework": available locally
[edm]: Dependency "libmodbus": available locally
[edm]: Dependency "libtimer": available locally
[edm]: Dependency "libslac": available locally
[edm]: Dependency "libfsm": available locally
[edm]: Dependency "libevse-security": available locally
[edm]: Dependency "libocpp": available locally
[edm]: Dependency "Josev": available locally
[edm]: Dependency "ext-openv2g": available locally
[edm]: Dependency "ext-mbedtls": available locally
[edm]: Dependency "everest-utils": available locally
[edm]: Dependency "sigslot": "v1.2.0" is a tag
[edm]: Dependency "sqlite_cpp": "3.3.1" is a tag
[edm]: Dependency "pugixml": "v1.12.1" is a tag
[edm]: Dependency "catch2": "v3.4.0" is a tag
[edm]: Dependency "gtest": "release-1.12.1" is a tag
[edm]: Dependency "libcurl": "curl-8_4_0" is a tag
[edm]: Saving dependencies in: /workspace/everest-cpp/everest-core/build/dependencies.cmake
-- CPM: adding package everest-framework@ (/workspace/everest-cpp/everest-framework)
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options system thread 
-- Checking for module 'libcap'
--   No package 'libcap' found
CMake Error at /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:545 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (_pkg_check_modules_internal)
  /workspace/everest-cpp/everest-framework/CMakeLists.txt:37 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/workspace/everest-cpp/everest-core/build/CMakeFiles/CMakeOutput.log".
See also "/workspace/everest-cpp/everest-core/build/CMakeFiles/CMakeError.log".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant