This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

macosx-setup.sh

0

When running the macosx-setup.sh command I get an error. Any ideas what is going on here? I am running Mac OS 10.6.8 and have XCode 3.6.2 installed.

In file included from pangocairo-fontmap.c:30: pangocairo-coretext.h:28:26: error: cairo-quartz.h: No such file or directory make[4]: *** [libpangocairo_1_0_la-pangocairo-fontmap.lo] Error 1

asked 23 Aug '11, 16:36

Nate's gravatar image

Nate
1112
accept rate: 0%


2 Answers:

0

The setup script commented out Cairo. Perhaps you need it. Try running the script with those lines uncommented.

answered 23 Aug '11, 17:52

helloworld's gravatar image

helloworld
3.1k42041
accept rate: 28%

You should not need Cairo IF you have X11 installed, complete with the X11 SDK (I don't remember whether you need to separately install the X11 SDK or not). As macosx-setup.sh currently builds GTK+ and its support libraries with X11, you need the X11 SDK to build the libraries.

(23 Aug '11, 17:55) Guy Harris ♦♦

Thanks for the hint. As far as I can tell I have X11 and X11 SDK installed.

(24 Aug '11, 11:53) Nate

0

Try updating to the latest SVN version (if you're running macosx-setup.sh, you're building from SVN or from a source tarball built from SVN); if macosx-setup.sh says "Please install X11 and the X11 SDK first.", you need to install X11 and, possibly, the X11 SDK.

answered 24 Aug '11, 03:29

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Thanks. I checked out a clean copy of wireshark SVN, uninstalled XCode 3.2.6 and reinstalled with all options selected. I also completely removed my MacPorts install and Mono (it had a few duplicate libraries and an executable, aclocal). After running macosx-setup.sh I get the following:

You are now prepared to build Wireshark. To do so do:

autogen.sh appears to have worked as well:

Now type "./configure [options]" and "make" to compile Wireshark.

configure failes with:

checking for GTK+ - version >= 2.12.0... Package cairo was not found in the pkg-config search path.

Thanks.

(24 Aug '11, 12:11) Nate

Try setting the PKG_CONFIG_PATH environment variable to

/usr/X11/lib/pkgconfig:/usr/local/lib/pkgconfig
(24 Aug '11, 12:13) Guy Harris ♦♦

Thanks again. We're getting closer. I got through configure after setting the env var. Now I'm getting an error when I call make -j 3 (as instructed by macosx-setup.sh):

I'll post the error in another comment since it won't fit in this window.

(24 Aug '11, 12:36) Nate

cc1: warnings being treated as errors tcp_graph.c: In function 'expose_event': tcp_graph.c:3231: warning: unused parameter 'widget' tcp_graph.c: In function 'button_press_event': tcp_graph.c:3495: warning: unused parameter 'widget' tcp_graph.c: In function 'motion_notify_event': tcp_graph.c:3532: warning: unused parameter 'widget'

(24 Aug '11, 12:37) Nate

tcp_graph.c: In function 'button_release_event': tcp_graph.c:3589: warning: unused parameter 'widget' tcp_graph.c: In function 'leave_notify_event': tcp_graph.c:3696: warning: unused parameter 'widget' tcp_graph.c: In function 'enter_notify_event': tcp_graph.c:3706: warning: unused parameter 'widget' make[2]: *** [libui_a-tcp_graph.o] Error 1

(24 Aug '11, 12:37) Nate

OK, so that means your question is now answered - you cleaned your machine up and set PKG_CONFIG_PATH so it picks up the system version of Cairo.

The problems you're seeing now are the result of building from top-of-tree SVN; we're in the middle of doing a whole bunch of stuff to support GTK+ 3.x, and sometimes that breaks things. Keep updating your SVN tree, and eventually you'll get something buildable.

(24 Aug '11, 12:40) Guy Harris ♦♦
1

After updating from SVN and noticing a new tcp_graph.c downloaded, I rebuilt. It compiled and successfully ran under X11. Thanks for your help.

(24 Aug '11, 14:35) Nate
showing 5 of 7 show 2 more comments