Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Problems creating the OsX App

From: Dirk Jagdmann <doj@xxxxxxxxx>
Date: Thu, 18 Nov 2010 02:10:02 -0800
Hello Wireshark Developers,

I'm completely new to Apple development. I want to test my changes to Wireshark and want to compile on the three major platforms: Linux/BSD, Windows and now Mac.

So I have a OsX 10.6, installed Xcode 3 and have used MacPorts 1.9.2 to install the gtk environment. Everything worked fine and I can compile the Wireshark 1.2.12 source code just fine. I can also start the compiled wireshark and it is working.

Next I tried a "make osx-app". This is also making without errors and then I see a Wireshark.app directory is created in packaging/macosx/. However I can not start it. Trying to start it with the "wireshark" script in packaging/macosx/Wireshark.app/Contents/Resources/bin/ results in:

[djagdmann@macuser ~/wireshark/packaging/macosx/Wireshark.app/Contents/Resources/bin] $ ./wireshark
2010-11-17 23:34:29.422 defaults[13353:903] 
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2010-11-17 23:34:29.440 defaults[13354:903] 
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist

(process:13344): Gdk-WARNING **: locale not supported by C library

(process:13344): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Xlib:  extension "RANDR" missing on display "/tmp/launch-P9sieC/org.x:0".

(wireshark-bin:13344): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",

(wireshark-bin:13344): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /Users/djagdmann/wireshark/packaging/macosx/Wireshark.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so: dlopen(/Users/djagdmann/wireshark/packaging/macosx/Wireshark.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so, 1): image not found

(wireshark-bin:13344): GdkPixbuf-WARNING **: Error loading XPM image loader: Unable to load image-loading module: /Users/djagdmann/wireshark/packaging/macosx/Wireshark.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so: dlopen(/Users/djagdmann/wireshark/packaging/macosx/Wireshark.app/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so, 1): image not found

(wireshark-bin:13344): Gdk-CRITICAL **: gdk_pixbuf_render_pixmap_and_mask_for_colormap: assertion `GDK_IS_PIXBUF (pixbuf)' failed
Segmentation fault

Looking at the loaders/ directory in lib/ I indeed see no libpixbufloader shared libraries. The MacPorts GTK install did not build those.

Then I removed the MacPorts and tried native-gtk/build-gtk.sh, but even after a lot of debugging and fixing some bourne shell problems this file has too many problems, because it is referencing no longer accessible URLs and probably pretty outdated versions anyway.

So after all this long text the question: Does anybody have set up a OsX compilation environment lately and maybe has hints how to resolve all dependencies for an Application (and eventually Package) creation?

---> Dirk Jagdmann ^ doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org