We're now a non-profit! Support open source packet analysis by making a donation.

Wireshark-dev: [Wireshark-dev] CMake weirdness

From: Tony Trinh <[email protected]>
Date: Sat, 16 Jul 2011 16:46:46 -0400
For dev builds, I typically use a local output directory for install by specifying `--prefix=$PWD/build` or setting the equivalent CMake config. The strange this is the CMake binaries can't find the libraries at startup:

$ ./wireshark 
dyld: Library not loaded: libwireshark.dylib
  Referenced from: /Users/tony/Developer/src/wireshark-1.7/build/bin/./wireshark
  Reason: image not found
Trace/BPT trap

The workaround is to copy the libraries into the same directory as the binary. The autoconf build has no problem. Why is that?