Felipe, Instead of adding the wiki lines to your fpc.cfg, just specify them in an additional .cfg file on the Compiler Options Other tab for use when compiling with gtk2. If these lines interfere with gtk, then just uncheck the Use additional Compiler Config File box.
I've attached my original gimplib.cfg file to this message. Also, to run an executable that's linked against the Gimp libraries, you have to "export" some of the Gimp gtk2 library locations. The easiest way to do this is with the attached script file. Run Lazarus like this: ./glaunch.sh lazarus That's the way Gimp is launched and I adapted my script from Gimp's. Study the script for more information. Thanks. -Phil -----Original Message----- From: Felipe Monteiro de Carvalho [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 5:02 AM To: [email protected] Subject: [lazarus] Lazarus and Gtk2 under Mac OS X Hi, Today I tryed again to use lazarus with gtk2 under Mac OS X. I reviwed old e-mails, and synthetised some instructions: http://wiki.lazarus.freepascal.org/GTK2_Interface#Using_the_Gtk2_interfa ce_under_Mac_OS_X Lazarus compiles file, but when I try to run it, I get: felipe2:~/Programas/lazarus felipemonteirodecarvalho$ ./lazarus dyld: Library not loaded: /usr/local/lib/libgtk-x11-2.0.0.dylib Referenced from: /Users/felipemonteirodecarvalho/Programas/lazarus/./lazarus Reason: image not found Trace/BPT trap I tryed adding a new line to fpc.cfg, which would be: -k'-dylib_file' -k'/usr/local/lib/libgtk-x11-2.0.0.dylib:/Applications/Gimp.app/Contents /Resources/lib/libgtk-x11-2.0.0.600.10.dylib' I also tryed similar lines adding the .600.10 to the first part, but it doesn't seam to help. Any ideas? thanks, -- Felipe Monteiro de Carvalho _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
glaunch.sh
Description: glaunch.sh
gimplib.cfg
Description: gimplib.cfg
