Skip to content

wireshark/doc/plugins.example build problem

Summary

can't build plugins.example

Steps to reproduce

git clone git@gitlab.com:wireshark/wireshark.git
cd wireshark/doc/plugins.example/
mkdir build && cd build
cmake ..

What is the current bug behavior?

-- The C compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:15 (find_package):
  Could not find a package configuration file provided by "Wireshark" with
  any of the following names:

    WiresharkConfig.cmake
    wireshark-config.cmake

  Add the installation prefix of "Wireshark" to CMAKE_PREFIX_PATH or set
  "Wireshark_DIR" to a directory containing one of the above files.  If
  "Wireshark" provides a separate development package or SDK, be sure it has
  been installed.


-- Configuring incomplete, errors occurred!
See also "/Users/<user>/git/wireshark/doc/plugins.example/build/CMakeFiles/CMakeOutput.log".

What is the expected correct behavior?

all build

i already try build wireshark for example

mkdir build
cd build
cmake -GNinja ..
//success
cd ../doc/plugins.example/build/

cmake ..  -DCMAKE_PREFIX_PATH="/Users/<user>/git/wireshark/build/"
CMake Error at /Users/<user>/git/wireshark/build/WiresharkConfig.cmake:18 (message):
  File or directory /Users/<user>/lib referenced by variable Wireshark_LIB_DIR
  does not exist !
Call Stack (most recent call first):
  /Users/<user>/git/wireshark/build/WiresharkConfig.cmake:34 (set_and_check)
  CMakeLists.txt:15 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/<user>/git/wireshark/doc/plugins.example/build/CMakeFiles/CMakeOutput.log".

but it also not work(

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information