Wireshark-dev: [Wireshark-dev] MacOS Build issues

From: John Schimmel <jes@xxxxxxxxxx>
Date: Fri, 11 Oct 2024 07:20:36 -0500
Sorry if this has been covered before, I just joined the list and google did not return an answer.

I’m trying to build Wireshark on a MacBook (MacOS 15), and after running  ../tools/macos-setup-brew.sh and cmake .., I am getting the following error:

CMake Error at /usr/local/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):

  Could NOT find CARES: (Required is at least version "1.13.0") (found

  /usr/local/lib/libcares.dylib)

Call Stack (most recent call first):

  /usr/local/Cellar/cmake/3.30.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:601 (_FPHSA_FAILURE_MESSAGE)

  cmake/modules/FindCARES.cmake:49 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

  CMakeLists.txt:1305 (find_package)


It looks like c-ares is installed fine:

[Johns-MacBook:~/wireshark/build] jes% ls -l /usr/local/lib/libcares*

lrwxr-xr-x  1 jes  wheel  49 Oct 10 15:00 /usr/local/lib/libcares.2.19.1.dylib -> ../Cellar/c-ares/1.34.1/lib/libcares.2.19.1.dylib

lrwxr-xr-x  1 jes  wheel  44 Oct 10 15:00 /usr/local/lib/libcares.2.dylib -> ../Cellar/c-ares/1.34.1/lib/libcares.2.dylib

lrwxr-xr-x  1 jes  wheel  42 Oct 10 15:00 /usr/local/lib/libcares.dylib -> ../Cellar/c-ares/1.34.1/lib/libcares.dylib

lrwxr-xr-x  1 jes  wheel  45 Oct 10 15:00 /usr/local/lib/libcares_static.a -> ../Cellar/c-ares/1.34.1/lib/libcares_static.a

[Johns-MacBook:~/wireshark/build] jes% ls -l /usr/local/Cellar/c-ares/1.34.1/lib/

total 1072

drwxr-xr-x  3 jes  admin      96 Oct  9 19:59 cmake

-r--r--r--  1 jes  admin  183408 Oct 10 15:00 libcares.2.19.1.dylib

lrwxr-xr-x  1 jes  admin      21 Oct  9 19:59 libcares.2.dylib -> libcares.2.19.1.dylib

lrwxr-xr-x  1 jes  admin      16 Oct  9 19:59 libcares.dylib -> libcares.2.dylib

-r--r--r--  1 jes  admin  363168 Oct  9 19:59 libcares_static.a

drwxr-xr-x  3 jes  admin      96 Oct 10 15:00 pkgconfig


Any help would be appreciated.

Thanks,
John