Date: 12 Jul 2003 12:41:08 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Pascal Pype <pascal.pype@skynet.be> Cc: freebsd-gnome@freebsd.org Subject: Re: Gtk , gdk and glib used with free pascal. Message-ID: <1058028068.3217.0.camel@shumai.marcuscom.com> In-Reply-To: <3F10099B.7020302@skynet.be> References: <3F10099B.7020302@skynet.be>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-JFrl5YV04hyd6p3HDr41 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2003-07-12 at 09:14, Pascal Pype wrote: > Hello , >=20 > There seem to be some problems about the usage of the free pascal > compiler for freeBSD. An application that once was written for windows > 3.1 in turbo pascal needs to be ported to freeBSD and linux. In order > to be able to keep the recoding effort to a minimal level , programming > tools were sought that are compatible to turbo pascal as much as > possible. Free pascal was the answer to that. I choose to use free > pascal 1.0.6. Within free pascal gtk-gnome is highly supported , so > gtk-gnome will serve as toolkit for porting the gui part of the > application. On slackware linux there were no problems about using the > gtk-gnome API at all. On freeBSD however there are several problems > about using the gtk toolkit via the free pascal bindings to gtk. >=20 > I use gnome 1-2a on my freeBSD machine and my slackware machine runs > gnome 1.4 upon slackware version 8.0. The version of freeBSD I use is > 4.8. The first problem arose when free pascal tried to link the > application. It didn't find the necessary libraries. So I made the > following symlinks: >=20 > /usr/local/lib/libgmodule.a -> /usr/local/lib/libgmodule12.a > /usr/local/lib/libglib.a -> /usr/local/lib/libglib12.a > /usr/X11R6/lib/libgdk.a -> /usr/X11R6/lib/libgdk12.a > /usr/X11R6/lib/libgtk.a -> /usr/X11R6/lib/libgtk12.a >=20 > Then those libraries were found , but the linker issued a whole bunch > of linker errors: >=20 > Linking coll > /usr/X11R6/lib//libgtk.a(gtkcolorsel.o): In function=20 > `gtk_color_selection_init': > gtkcolorsel.o(.text+0x738): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtkcolorsel.o): In function=20 > `gtk_color_selection_dialog_init': > gtkcolorsel.o(.text+0x3687): undefined reference to `libintl_dgettext' > gtkcolorsel.o(.text+0x3703): undefined reference to `libintl_dgettext' > gtkcolorsel.o(.text+0x3771): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtkfilesel.o): In function=20 > `gtk_file_selection_init': > gtkfilesel.o(.text+0x19f): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtkfilesel.o)(.text+0x298): more undefined=20 > references to `libintl_dgettext' follow > /usr/X11R6/lib//libgtk.a(gtkmain.o): In function `gtk_init_check': > gtkmain.o(.text+0x4b5): undefined reference to `libintl_bindtextdomain' > /usr/X11R6/lib//libgtk.a(gtknotebook.o): In function=20 > `gtk_notebook_update_labels': > gtknotebook.o(.text+0x3914): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtknotebook.o): In function=20 > `gtk_notebook_set_tab_label': > gtknotebook.o(.text+0x7672): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtkrc.o): In function `gtk_rc_find_pixmap_in_pat= h': > gtkrc.o(.text+0x235e): undefined reference to `libintl_dgettext' > gtkrc.o(.text+0x2383): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtkthemes.o): In function `gtk_theme_engine_get'= : > gtkthemes.o(.text+0x86): undefined reference to `libintl_dgettext' > /usr/X11R6/lib//libgtk.a(gtktipsquery.o)(.text+0x1db): more undefined=20 > references to `libintl_dgettext' follow > coll.pas(19) Error: Error while linking > Closing script ppas.sh >=20 > So one feels the need to add the linker option "-lintl" to resolve > this one. And yes , all linker errors are gone afterwards! >=20 > But when one tries to run the application in gnome under the pixmap > theme one receives a true shopping-list of gtk errors and warnings : >=20 > gdk_imlib ERROR: gdk has not connected to the display >=20 > Gdk-CRITICAL **: file gdkwindow.c: line 1406 (gdk_window_get_visual):=20 > assertion `window !=3D NULL' failed. >=20 > Gtk-CRITICAL **: file gtkwidget.c: line 4258 (gtk_widget_push_visual):=20 > assertion `visual !=3D NULL' failed. >=20 > Gtk-CRITICAL **: file gtkwidget.c: line 4242 (gtk_widget_push_colormap):=20 > assertion `cmap !=3D NULL' failed. >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 40 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button4.png" line 58 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button1.png" line 67 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button_def.png" line 89 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button1.png" line 99 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button2.png" line 109 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button4.png" line 119 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button6.png" line 129 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 139 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button4.png" line 149 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button3.png" line 159 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button8.png" line 186 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "extension_top1.png" line 194 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "extension_bottom1.png" line 203 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "extension_left1.png" line 212 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "extension_right1.png" line 221 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "notebook1.png" line 233 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_top.png" line 236 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_top_start.png" line 238 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_top_end.png" line 240 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "notebook1.png" line 248 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_bottom.png" line 251 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_bottom_start.png" line 253 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_bottom_end.png" line 255 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "notebook1.png" line 263 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_left.png" line 266 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_left_start.png" line 268 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_left_end.png" line 270 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "notebook1.png" line 278 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_right.png" line 281 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_right_start.png" line 283 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "gap_right_end.png" line 285 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "notebook1.png" line 296 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 313 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button7.png" line 329 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "menubar.png" line 345 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button2.png" line 362 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button1.png" line 370 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "progressbar.png" line 388 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "ruler_vert.png" line 405 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "ruler_horiz.png" line 414 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 431 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button2.png" line 439 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "brown_bg1.png" line 456 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "curve_bg1.png" line 472 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_horiz1.png" line 503 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_thumb2.png" line 506 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_horiz1.png" line 517 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_thumb.png" line 520 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_vert1.png" line 531 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_thumb2.png" line 534 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_vert1.png" line 544 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_thumb.png" line 547 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "trough.png"=20 > line 560 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "ruler_horiz.png" line 572 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 584 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 596 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 609 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button2.png" line 618 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 628 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button2.png" line 637 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "brown_bg2.png" line 646 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_up1.png" line 657 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_up2.png" line 666 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_up3.png" line 675 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_down1.png" line 685 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_down2.png" line 694 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_down3.png" line 703 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_left1.png" line 713 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_left2.png" line 722 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_left3.png" line 731 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_right1.png" line 741 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_right2.png" line 750 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "arrow_right3.png" line 759 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "hline.png"=20 > line 770 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "vline.png"=20 > line 778 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "check1.png"=20 > line 790 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "check2.png"=20 > line 798 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "option1.png" line 809 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "option2.png" line 818 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "option_menu.png" line 829 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_horiz1.png" line 839 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "scrollbar_vert1.png" line 848 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button5.png" line 860 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "handle_vert_thumb.png" line 863 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "entry2.png"=20 > line 877 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "entry1.png"=20 > line 885 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "focus.png"=20 > line 895 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "shadow2.png" line 907 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "shadow1.png" line 916 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "frame1.png"=20 > line 925 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path: "frame2.png"=20 > line 934 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "frame_gap.png" line 945 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "frame_gap_top_start.png" line 948 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "frame_gap_top_end.png" line 950 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button9.png" line 962 >=20 > Gtk-WARNING **: Unable to locate image file in pixmap_path:=20 > "button7.png" line 970 >=20 > When one changes the theme to the default theme , then suddenly whoosh > , those pesky gtk warnings are gone ... > And yes , those images are correctly located according to my > "/usr/X11R6/share/themes/Pixmap/gtk/gtkrc" ! >=20 > If there is no easy solution to that probem , can someone please tell > me how to invoke that single app in such a way that none of the gtk > resource files are taken into account ? So I can continue to use that > app in combination with the pixmap theme that I simply find amazingly > beautiful. You should consider going through /usr/ports/Mk/bsd.gnome.mk to see how we port GNOME applications to FreeBSD. Also, the resources at http://www.freebsd.org/gnome/ might be of some use to you. You will have to hack the sources to get your desired results. Joe >=20 > My kind regards , Pype Pascal. >=20 > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org" --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-JFrl5YV04hyd6p3HDr41 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/EDojb2iPiv4Uz4cRAtg/AJ9roA3RyQT4pA6DUMUge0tveQ0+XQCgqrL3 zQyGtsWwT/4RlTbi8ZdR0UY= =aETT -----END PGP SIGNATURE----- --=-JFrl5YV04hyd6p3HDr41--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1058028068.3217.0.camel>