|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Native Gtk2-Perl apps on Mac OS X</lurk>
Hi all, Forgive me if someone's already posted about doing this: having installed the GTK+ package from Imendio (gtk-osx.org) on my Macbook I found installing the Gtk2-Perl mods pretty easy. You pretty much just need to do this: $ export PKG_CONFIG_PATH="/Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/GLib.framework/Resources/dev/lib/pkgconfig:/Library/Frameworks/Gtk.framework/Resources/dev/lib/pkgconfig" $ sudo -H cpan -i ExtUtils::Depends $ sudo -H cpan -i ExtUtils::PkgConfig $ sudo -H cpan -i Glib $ sudo -H cpan -i Cairo $ sudo -H cpan -i Gtk2 Screenshot at http://jodrell.net/journal/article/k87uog.html. G. <lurk> _______________________________________________ gtk-perl-list mailing list gtk-perl-list@... http://mail.gnome.org/mailman/listinfo/gtk-perl-list |
|
|
Re: Native Gtk2-Perl apps on Mac OS X> Forgive me if someone's already posted about doing this: having installed
> the GTK+ package from Imendio (gtk-osx.org) on my Macbook I found installing > the Gtk2-Perl mods pretty easy. I installed the GTK+ package from Imendio. However, Cairo compilation fails with the following error. [snip] /usr/bin/gcc-4.0 -c -I. -Ibuild -I/Library/Frameworks/Cairo.framework/Headers -I/usr/local/include/freetype2 -I/usr/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/opt/local/include -O3 -DVERSION=\"1.060\" -DXS_VERSION=\"1.060\" "-I/opt/local/lib/perl5/5.8.8/darwin-2level/CORE" CairoFt.c CairoFt.c: In function 'XS_Cairo__FtFontFace_create': CairoFt.c:30: error: 'FT_Face' undeclared (first use in this function) CairoFt.c:30: error: (Each undeclared identifier is reported only once CairoFt.c:30: error: for each function it appears in.) CairoFt.c:30: error: parse error before 'face' CairoFt.c:34: error: 'face' undeclared (first use in this function) CairoFt.xs:17: warning: assignment makes pointer from integer without a cast make: *** [CairoFt.o] Error 1 [/snap] My guess is this has something to do with freetype. Is that correct? Is there a way I can compile Cairo without freetype? Regards, _Ofey _______________________________________________ gtk-perl-list mailing list gtk-perl-list@... http://mail.gnome.org/mailman/listinfo/gtk-perl-list |
|
|
Re: Native Gtk2-Perl apps on Mac OS Xofey aikon wrote:
> My guess is this has something to do with freetype. Is that correct? > Is there a way I can compile Cairo without freetype? Makefile.PL checks whether to compile FreeType support by using `pkg-config --exists --silence-errors cairo-ft`. Apparently, this works for you, so you have the cairo-ft.pc file installed. Makefile.PL then uses the equivalent of `pkg-config --cflags --libs cairo-ft` to get the correct compiler and linker flags. The compilation error suggests that, despite cairo-ft.pc's presence, you don't have the FreeType development stuff installed. If you insist on not installing it, simply removing cairo-ft.pc should also work. -Torsten _______________________________________________ gtk-perl-list mailing list gtk-perl-list@... http://mail.gnome.org/mailman/listinfo/gtk-perl-list |
|
|
Re: Native Gtk2-Perl apps on Mac OS X>> My guess is this has something to do with freetype. Is that correct?
>> Is there a way I can compile Cairo without freetype? > > Makefile.PL checks whether to compile FreeType support by using `pkg-config > --exists --silence-errors cairo-ft`. Apparently, this works for you, so you > have the cairo-ft.pc file installed. Makefile.PL then uses the equivalent > of `pkg-config --cflags --libs cairo-ft` to get the correct compiler and > linker flags. > > The compilation error suggests that, despite cairo-ft.pc's presence, you > don't have the FreeType development stuff installed. If you insist on not > installing it, simply removing cairo-ft.pc should also work. I removed cairo-ft.pc and tried, but the error persists. I also built freetype on my machine. Tried copying .pc files and .h files into the /Library/Frameworks/FreeType.framework tree. None of that seems to work. I must admit that I am rather new to OS X dev environment. Any tip will be awesome. Also, the Extutils-* and GLib compiled without any problems. I am also able to compile everything using X11. It's the without-X11 attempt (using Imendio libraries) that fails. _Ofey. _______________________________________________ gtk-perl-list mailing list gtk-perl-list@... http://mail.gnome.org/mailman/listinfo/gtk-perl-list |
|
|
Re: Native Gtk2-Perl apps on Mac OS Xofey aikon wrote:
>> The compilation error suggests that, despite cairo-ft.pc's presence, you >> don't have the FreeType development stuff installed. If you insist on not >> installing it, simply removing cairo-ft.pc should also work. > > I removed cairo-ft.pc and tried, but the error persists. You need to re-run `perl Makefile.PL` and `make` for this to have any effect. > I also built freetype on my machine. Tried copying .pc files and .h > files into the /Library/Frameworks/FreeType.framework tree. None of > that seems to work. The compilation command line you posted earlier suggests that the freetype headers are looked for in /usr/local/include/freetype2. The cairo-ft.pc file should contain more details. -Torsten _______________________________________________ gtk-perl-list mailing list gtk-perl-list@... http://mail.gnome.org/mailman/listinfo/gtk-perl-list |
| Free Forum Powered by Nabble | Forum Help |