Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I've been working on building libbtbb under OSX and I succeeded with the checkout from master branch with a minor modification which makes the building steps look like this:
Encouraged by my probably first ever success in making something with makefiles work i went to the next step from Ubertooth build guide, and that's Wireshark step.
Output from cmake looks like this (I've added one message for debugging):
Now calling make is the place I've got stuck at. For the most of the time I've had problems with inclusion paths but after this got resolved (with the nasty local wireshark directory + symlink to config.h) but after that I've started getting errors which look more like the btbb plugin is supposed to be built against different version of Wireshark headers:
I've tried different sources, even ones from apt-get repository (after unpacking with
I've a few more attempts to compile the plugin, and got to the point where compilation goes through and linker fails. To get there, after looking through wireshark's sources, I've had to add the following flags to CMakeLists.txt
So I've got to the following steps for building the btbb wireshark plugin (after adding flags to CMakeLists.txt)
This results in following output:
Given all that here are my questions regarding OSX build:
How could I make the build scripts see the library?
I got similar error.
it looks ok.
$ cmake -DWIRESHARK_INCLUDE_DIRS="/usr/local/Cellar/wireshark/1.12.5/include;/usr/local/Cellar/wireshark/1.12.5/include/wireshark" -DWIRESHARK_LIBRARIES="/usr/local/Cellar/wireshark/1.12.5" .. -- Plugin will be installed in: ~/.wireshark/plugins -- Configuring done -- Generating done -- Build files have been written to: /Users/miminashi/projects/libbtbb/wireshark/plugins/btle/build
but, I also got
$ make [ 33%] Generating plugin.c Scanning dependencies of target btle [ 66%] Building C object CMakeFiles/btle.dir/plugin.c.o [100%] Building C object CMakeFiles/btle.dir/packet-btle.c.o /Users/miminashi/projects/libbtbb/wireshark/plugins/btle/packet-btle.c:301:6: warning: implicit declaration of function 'check_col' is invalid in C99 [-Wimplicit-function-declaration] if (check_col(pinfo->cinfo, COL_PROTOCOL)) ^ 1 warning generated. Linking C shared module btle.so ld: library not found for -lwireshark clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [btle.so] Error 1 make: *** [CMakeFiles/btle.dir/all] Error 2 make: *** [all] Error 2