Add some information on running from the build directory.
authorGuy Harris <guy@alum.mit.edu>
Thu, 31 Jul 2014 20:55:56 +0000 (13:55 -0700)
committerGuy Harris <guy@alum.mit.edu>
Thu, 31 Jul 2014 20:56:29 +0000 (20:56 +0000)
Change-Id: I6c01141cd02af358152d007175ec0b51357e42b3
Reviewed-on: https://code.wireshark.org/review/3298
Reviewed-by: Guy Harris <guy@alum.mit.edu>
README.cmake

index 2b6fdea3b7aa26e4c77ff3e29464594b55dc9fc0..94b06a723f200f04c0702b4a88802fddef6bbe55 100644 (file)
@@ -127,10 +127,26 @@ What needs to be done?
   Solaris, Win32, Win64, ...)
 - Support building against an SDK for OS X.
 - Add support for cmake configurations.
-- Get plugins loading when running *shark from the build directory.
 - Automatically figure out if *shark is running from the build directory
   (making WIRESHARK_RUN_FROM_BUILD_DIRECTORY unnecessary like it is with
   autofoo).
+  Sadly:
+
+      $ file run/qtshark
+      run/qtshark: Mach-O 64-bit x86_64 executable
+
+  so what you're running from the build directory is the executable
+  itself.  autofoo includes libtool in our case, so what you're running
+  from the build directory is a script that then runs the executable,
+  and the executable is in a .libs directory; the code that checks for
+  "running from the build directory?" checks for that.
+
+  We could perhaps check for the pathname containing "run/", although
+  that wouldn't help if we ran it while *in* the "run" directory;
+  getting an absolute path for the executable would be necessary for
+  that.
+- Get plugins loading when running *shark from the build directory.
+  That might involve handling ".libs" and "run" differently.
 - Get cross-compilation working (or ensure it does). It works with autofoo.
 ...