Problems building pango-1.18.0 on Mac

2008-01-26 Thread Egon Andersen
Hi,

I've recently got a Mac on which I try to install all the GTK+ stuff :-)
I've come a long way, but now I seem to be stuck with the building of 
pango-1.18.0

I'm trying to build with X11 support and have all X11 installed on the 
Mac (as far as I can tell - I'm still very new to Mac...)

In the directory where I have extracted the pango-1.18.0 I run
./configure --with-x --x-includes=/usr/X11/include 
--x-libraries=/usr/X11/lib

The configure succeeded well.

Now I run
make

Runs fine until the linking phase where it complains with:
---
Undefined symbols:
   "_pangoft2_viewer", referenced from:
   -viewers in pango-view.o
   "_pangocairo_viewer", referenced from:
   -viewers in pango-view.o
ld: symbol(s) not found
---

It seems to me to be something internally in the pango-package that 
can't be found when linking?

Can someone help me through this problem?

(pango-1.18.0 and other GTK+ related packages are downloaded from gtk.org)

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Michael Tuexen
Hi Egon,

the following worked for me...

curl -O http://pkgconfig.freedesktop.org/releases/pkg- 
config-0.22.tar.gz;
tar xvfz pkg-config-0.22.tar.gz;
cd pkg-config-0.22;
./configure;
make -j 2;
sudo make install;
cd ..;

curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz;
tar xvfz gettext-0.17.tar.gz;
cd gettext-0.17;
./configure;
make -j 2;
sudo make install;
cd ..;


curl -O -u anonymous:@ ftp://ftp.gtk.org/pub/glib/2.14/glib-2.14.5.tar.gz 
;
tar xvfz glib-2.14.5.tar.gz;
cd glib-2.14.5;
./configure;
make -j 2;
sudo make install;
cd ..

curl -O http://cairographics.org/releases/cairo-1.4.12.tar.gz;
tar xvfz cairo-1.4.12.tar.gz;
cd cairo-1.4.12;
env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable-png  
--enable-quartz;
make -j 2;
sudo make install;
cd ..

curl -O -u anonymous:@ 
ftp://ftp.gtk.org/pub/gtk/v2.10/dependencies/atk-1.9.1.tar.bz2 
;
bunzip2 atk-1.9.1.tar.bz2;
tar xvf atk-1.9.1.tar;
cd atk-1.9.1;
./configure;
make -j 2;
sudo make install;
cd ..;

curl -O -u anonymous:@ ftp://ftp.gtk.org/pub/pango/1.18/pango-1.18.0.tar.gz 
;
tar xvfz pango-1.18.0.tar.gz;
cd pango-1.18.0;
env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure;
make -j 2;
sudo make install;
cd ..

Best regards
Michael

On Jan 26, 2008, at 10:34 AM, Egon Andersen wrote:

> Hi,
>
> I've recently got a Mac on which I try to install all the GTK+  
> stuff :-)
> I've come a long way, but now I seem to be stuck with the building of
> pango-1.18.0
>
> I'm trying to build with X11 support and have all X11 installed on the
> Mac (as far as I can tell - I'm still very new to Mac...)
>
> In the directory where I have extracted the pango-1.18.0 I run
> ./configure --with-x --x-includes=/usr/X11/include
> --x-libraries=/usr/X11/lib
>
> The configure succeeded well.
>
> Now I run
> make
>
> Runs fine until the linking phase where it complains with:
> ---
> Undefined symbols:
>   "_pangoft2_viewer", referenced from:
>   -viewers in pango-view.o
>   "_pangocairo_viewer", referenced from:
>   -viewers in pango-view.o
> ld: symbol(s) not found
> ---
>
> It seems to me to be something internally in the pango-package that
> can't be found when linking?
>
> Can someone help me through this problem?
>
> (pango-1.18.0 and other GTK+ related packages are downloaded from  
> gtk.org)
>
> Best regards
> Egon Andersen
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Egon Andersen
Michael Tuexen wrote:

> curl -O http://cairographics.org/releases/cairo-1.4.12.tar.gz;
> tar xvfz cairo-1.4.12.tar.gz;
> cd cairo-1.4.12;
> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable-png  
> --enable-quartz;
> make -j 2;
> sudo make install;
> cd ..
> 

I see you have used a never version of cairo than version refered to 
under the download section on gtk.org.

Are there any specific reason for using the two configure options:
--disable-png
--enable-quartz
I may like to have png support, so if --disable-png is optional, I'll 
probably want to have support for png.

I'll try and see if I succeed with this never cairo before I configure 
and compile pango.

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Egon Andersen
Michael Tuexen wrote:

> 
> curl -O -u anonymous:@ ftp://ftp.gtk.org/pub/pango/1.18/pango-1.18.0.tar.gz 
> ;
> tar xvfz pango-1.18.0.tar.gz;
> cd pango-1.18.0;
> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure;
> make -j 2;
> sudo make install;
> cd ..
> 

I tried as you described above.
The configure fails:
--
configure: error: *** Didn't find any of FreeType, X11, ATSUI, or Win32.
*** Must have at least one backend to build Pango.
--

If I try as earlier with:
./configure --with-x --x-includes=/usr/X11/include 
--x-libraries=/usr/X11/lib

The configure succeeded well, but the make fails with the same linker 
error as in the original posting.
---
Undefined symbols:
"_pangoft2_viewer", referenced from:
-viewers in pango-view.o
"_pangocairo_viewer", referenced from:
-viewers in pango-view.o
ld: symbol(s) not found
---

So I seem to be stuck at the same point still, because when I before 
tried with configure without the x-options, I got the exact same 
configure error as above. Therefore I added the x-options and got a tiny 
bit further.

Do I need to install something else on my Mac? I believe I've installed 
everything related to programming and X11 available on the discs that 
followed the Mac.

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Michael Tuexen
Hi Egon,

I just wanted to have minimal gtk build to be able to use
wireshark.

You can add png, tiff and jpeg support, I guess.

Best regards
Michael

On Jan 26, 2008, at 12:07 PM, Egon Andersen wrote:

> Michael Tuexen wrote:
> 
>> curl -O http://cairographics.org/releases/cairo-1.4.12.tar.gz;
>> tar xvfz cairo-1.4.12.tar.gz;
>> cd cairo-1.4.12;
>> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable- 
>> png  --enable-quartz;
>> make -j 2;
>> sudo make install;
>> cd ..
>
> I see you have used a never version of cairo than version refered to  
> under the download section on gtk.org.
>
> Are there any specific reason for using the two configure options:
> --disable-png
> --enable-quartz
> I may like to have png support, so if --disable-png is optional,  
> I'll probably want to have support for png.
>
> I'll try and see if I succeed with this never cairo before I  
> configure and compile pango.
>
> Best regards
> Egon Andersen
>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Michael Tuexen
Did you also do

env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable-png  
--enable-quartz;

It is important to set the PKG_CONFIG_PATH...

(BTW, I'm using the tcsh, if you use anther shell you might
need a different way to set the environment variable...)

Best regards
Michael

On Jan 26, 2008, at 12:40 PM, Egon Andersen wrote:

> Michael Tuexen wrote:
> 
>> curl -O -u anonymous:@ ftp://ftp.gtk.org/pub/pango/1.18/pango-1.18.0.tar.gz 
>>  ;
>> tar xvfz pango-1.18.0.tar.gz;
>> cd pango-1.18.0;
>> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure;
>> make -j 2;
>> sudo make install;
>> cd ..
>
> I tried as you described above.
> The configure fails:
> --
> configure: error: *** Didn't find any of FreeType, X11, ATSUI, or  
> Win32.
> *** Must have at least one backend to build Pango.
> --
>
> If I try as earlier with:
> ./configure --with-x --x-includes=/usr/X11/include --x-libraries=/ 
> usr/X11/lib
>
> The configure succeeded well, but the make fails with the same  
> linker error as in the original posting.
> ---
> Undefined symbols:
>   "_pangoft2_viewer", referenced from:
>   -viewers in pango-view.o
>   "_pangocairo_viewer", referenced from:
>   -viewers in pango-view.o
> ld: symbol(s) not found
> ---
>
> So I seem to be stuck at the same point still, because when I before  
> tried with configure without the x-options, I got the exact same  
> configure error as above. Therefore I added the x-options and got a  
> tiny bit further.
>
> Do I need to install something else on my Mac? I believe I've  
> installed everything related to programming and X11 available on the  
> discs that followed the Mac.
>
> Best regards
> Egon Andersen
>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Egon Andersen
Michael Tuexen wrote:
> Did you also do
> 
> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable-png  
> --enable-quartz;
> 
> It is important to set the PKG_CONFIG_PATH...
> 
> (BTW, I'm using the tcsh, if you use anther shell you might
> need a different way to set the environment variable...)
> 

I've set the PKG_CONFIG_PATH in .bashrc (I use bash) before starting the 
x-terminal I use. The path is displayed when I type: env
And it was done before cairo configure and make.
I believe I've followed the description you gave, but apparently the 
machines are behaving differently :-(

When I use the x-options for configure for pango, I get through the 
configure phase, but the make is failing with the linker error described 
earlier.

I've tried to follow your description even though I don't think it is 
using X11, but quartz. For the moment I'm just interested in having the 
pango installed and I'll then look at the X11 details later, if I need 
it, just as I don't care for the png part right now.
Still it seems that I can't get passed the configure or make of pango :-(

(I have to stop for today, but will continue tomorrow, so any ideas to 
overcome the pango build problems are welcome.)

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Marius Schamschula

Egon,

What version of Mac OS X? PPC or intel?

A couple of points:

1) You may be running into the obsolete version of freetype that come  
pre-installed in /usr/X11R6. I make sure that these headers are  
hidden or removed.


2) Why are you not using MacPorts or fink? I also have builds  
available @ hmug.org:




The Readme files will show you the dependencies.

On Jan 26, 2008, at 7:33 AM, Egon Andersen wrote:


Michael Tuexen wrote:

Did you also do

env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable- 
png

--enable-quartz;

It is important to set the PKG_CONFIG_PATH...

(BTW, I'm using the tcsh, if you use anther shell you might
need a different way to set the environment variable...)



I've set the PKG_CONFIG_PATH in .bashrc (I use bash) before  
starting the

x-terminal I use. The path is displayed when I type: env
And it was done before cairo configure and make.
I believe I've followed the description you gave, but apparently the
machines are behaving differently :-(

When I use the x-options for configure for pango, I get through the
configure phase, but the make is failing with the linker error  
described

earlier.

I've tried to follow your description even though I don't think it is
using X11, but quartz. For the moment I'm just interested in having  
the

pango installed and I'll then look at the X11 details later, if I need
it, just as I don't care for the png part right now.
Still it seems that I can't get passed the configure or make of  
pango :-(


(I have to stop for today, but will continue tomorrow, so any ideas to
overcome the pango build problems are welcome.)

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list




Marius
--
Marius Schamschula
Webmaster

The Huntsville Macintosh Users Group
www.hmug.org

webmaster at hmug dot org
marius at schamschula dot com



___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Michael Tuexen
Hi Egon,

comments in-line.

Best regards
Michael

On Jan 26, 2008, at 2:33 PM, Egon Andersen wrote:

> Michael Tuexen wrote:
>> Did you also do
>> env PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig ./configure --disable- 
>> png  --enable-quartz;
>> It is important to set the PKG_CONFIG_PATH...
>> (BTW, I'm using the tcsh, if you use anther shell you might
>> need a different way to set the environment variable...)
>
> I've set the PKG_CONFIG_PATH in .bashrc (I use bash) before starting  
> the x-terminal I use. The path is displayed when I type: env
> And it was done before cairo configure and make.
> I believe I've followed the description you gave, but apparently the  
> machines are behaving differently :-(
Hmm. I'm not using an x-term, but the Terminal App... What does you  
$PATH look like?
Which OS version are your running? My is 10.5.1...
>
>
> When I use the x-options for configure for pango, I get through the  
> configure phase, but the make is failing with the linker error  
> described earlier.
>
> I've tried to follow your description even though I don't think it  
> is using X11, but quartz. For the moment I'm just interested in  
> having the pango installed and I'll then look at the X11 details  
> later, if I need it, just as I don't care for the png part right now.
> Still it seems that I can't get passed the configure or make of  
> pango :-(
Cut-and-paste on my side. I'm also using the X11 stuff. Just do not  
user the --enable-quartz...
Sorry for the mistake.
>
>
> (I have to stop for today, but will continue tomorrow, so any ideas  
> to overcome the pango build problems are welcome.)
>
> Best regards
> Egon Andersen
>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Newbie Question about Navigating API doco

2008-01-26 Thread ritz
Hello

On Sat, 2008-01-26 at 09:28 +1100, Peter E Dennis wrote:
> Thanks for the tip ritz, I am using ubuntu and have installed it but
> can't see any of the gtk api stuff in it.
> 
> Is there a way to add it?
Install the requisite gtk devel package, atleast on fedora.

$ rpm -q gtk2-devel -l |grep devhelp
/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp
/usr/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2
/usr/share/gtk-doc/html/gdk/gdk.devhelp
/usr/share/gtk-doc/html/gdk/gdk.devhelp2
/usr/share/gtk-doc/html/gtk/gtk.devhelp
/usr/share/gtk-doc/html/gtk/gtk.devhelp2

> 
> On 25/01/2008, ritz <[EMAIL PROTECTED]> wrote:
> > Hello
> >
> > On Tue, 2008-01-22 at 09:08 +1100, Peter E Dennis wrote:
> > > Hi All,
> > 
> > > I can't find a reference to "delete_event" in the API.  But possibly
> > > not looking in the right place.  Can someone point me to it and others
> > > like it for other widgets?
> > I would suggest devhelp to browse through documentation. rather helpful
> > little tool with nifty search capability.
> >
> >
> > >
> > > Many thanks,
> > >
> > > Peter.
> > > ___
> > > gtk-list mailing list
> > > gtk-list@gnome.org
> > > http://mail.gnome.org/mailman/listinfo/gtk-list
> > --
> > Ritesh Khadgaray
> > ॐ मणि पद्मे हूँ
> > Desktop LinuX N Stuff
> > Ph: +919970164885
> > Eat Right, Exercise, Die Anyway.
> > Fedora is the best of what works today.  Enterprise Linux is the best of
> > what will work consistently for the next seven years.
> >
> >
-- 
Ritesh Khadgaray
ॐ मणि पद्मे हूँ
Desktop LinuX N Stuff
Ph: +919970164885
Eat Right, Exercise, Die Anyway.
Fedora is the best of what works today.  Enterprise Linux is the best of
what will work consistently for the next seven years.

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


cairo 1.2.6 and atk and cairo 1.0.2

2008-01-26 Thread Darko
Cairo 1.2.6 gives me following error during ./configure


checking whether cairo's Microsoft Windows font backend could be 
enabled... no (requires a Win32 platform)
checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled
[EMAIL PROTECTED]:~/GtkT/cairo-1.2.6$

Cairo makes me following mistake (error)and cairo 1.0.2 

/tmp/ccI1Jeqi.s: Assembler messages:
/tmp/ccI1Jeqi.s:8651: Error: symbol `_cairo_pixman_composite' is already 
defined
make[3]: *** [fbpict.lo] Greška 1 (<=Stands for error 1 )
make[3]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2/pixman/src'
make[2]: *** [all-recursive] Greška 1 (<=Stands for error 1 )
make[2]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2/pixman'
make[1]: *** [all-recursive] Greška 1 (<=Stands for error 1 )
make[1]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2'
make: *** [all] Greška 2 (<=Stands for error 2 )
localhost:/home/darko/GtkT/cairo-1.0.2#airo
/tmp/ccI1Jeqi.s: Assembler messages:
/tmp/ccI1Jeqi.s:8651: Error: symbol `_cairo_pixman_composite' is already 
defined
make[3]: *** [fbpict.lo] Greška 1 (<=Stands for error 1 )
make[3]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2/pixman/src'
make[2]: *** [all-recursive] Greška 1 (<=Stands for error 1 )
make[2]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2/pixman'
make[1]: *** [all-recursive] Greška 1 (<=Stands for error 1 )
make[1]: Izlazim iz direktorija `/home/darko/GtkT/cairo-1.0.2'
make: *** [all] Greška 2 (<=Stands for error 2)
localhost:/home/darko/GtkT/cairo-1.0.2#

and atk list me this
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.8.6, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
Help


-- 


Darko.
Linux debian-etch 2.6.18-5-686 # i686 GNU/Linux 

"I'm not a vegetarian because I love animals, I'm a vegetarian because I hate 
vegetables!"
unknown 

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Egon Andersen
Marius Schamschula wrote:
> Egon,
> 
> What version of Mac OS X? PPC or intel?

Max OS X 10.5, Darwin 9.0.0, intel processor
> 
> A couple of points:
> 
> 1) You may be running into the obsolete version of freetype that come 
> pre-installed in /usr/X11R6. I make sure that these headers are hidden 
> or removed.

Which headers should then be used?

> 
> 2) Why are you not using MacPorts or fink? I also have builds available 
> @ hmug.org:

Probably because I'm very new to Mac :-)
On macports.org I find MacPorts verson 1.6.0, but that doesn't tell 
anything about what it contains - does it contain gtk and all that 
stuff? Probably not, it is only 2 MB.

One other thing! The packages must be available for normal download, not 
requiring a small install program that in turn starts the download.
In other words - I must be able to download it on my Linux machine, put 
it on some media and installe from there on my Mac.

> 
> 
> 
Looks interesting, but does not seem to be available for OS X 10.5 and 
intel or do I misunderstand the naming convention - believe osx5 is for 
OS X 10.5

I found gtk+2-2.12.5-1 on your site too, but still only for ppc

Best regards
Egon Andersen
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Problems building pango-1.18.0 on Mac

2008-01-26 Thread Marius Schamschula


On Jan 26, 2008, at 3:57 PM, Egon Andersen wrote:


Marius Schamschula wrote:

Egon,
What version of Mac OS X? PPC or intel?


Max OS X 10.5, Darwin 9.0.0, intel processor

A couple of points:
1) You may be running into the obsolete version of freetype that  
come pre-installed in /usr/X11R6. I make sure that these headers  
are hidden or removed.


You need to run Software Update to get 10.5.1. This will not change  
anything in terms of the Developer Tools, however.



Which headers should then be used?


The ones you get from building a current copy of freetype.

2) Why are you not using MacPorts or fink? I also have builds  
available @ hmug.org:


Probably because I'm very new to Mac :-)
On macports.org I find MacPorts verson 1.6.0, but that doesn't tell  
anything about what it contains - does it contain gtk and all that  
stuff? Probably not, it is only 2 MB.


The MacPorts program automatically downloads, builds and installs the  
software. It does not contain pre-built binaries (fink works the same  
way).


One other thing! The packages must be available for normal  
download, not requiring a small install program that in turn starts  
the download.
In other words - I must be able to download it on my Linux machine,  
put it on some media and installe from there on my Mac.




Looks interesting, but does not seem to be available for OS X 10.5  
and intel or do I misunderstand the naming convention - believe  
osx5 is for OS X 10.5


I found gtk+2-2.12.5-1 on your site too, but still only for ppc


That is correct. I currently don't have a 10.5 Intel build machine  
(if I did, I wouldn't a 10.4 machine. I hope to change this soon). I  
gave the link more as a reference, in terms of what i did to build gtk 
+2.



Best regards
Egon Andersen


Marius
--
Marius Schamschula
Webmaster

The Huntsville Macintosh Users Group
www.hmug.org

webmaster at hmug dot org
marius at schamschula dot com



___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list