Installing Lazarus under MacOsx Leopard 10.5.1 lazarus / 15-macOS - Mac OS X ---------------------------------------------------------------------- Lord_ZealoN · 2008-02-10 18:23 Hi all, I reinstalled my Macbook, and now I have OSX Leopard. I installed (or I think I did it) from fink (builded from source) the required libraries and X11. But when I try to open lazarus, I get an error: macbook-de-giuseppe-luigi-punzi-ruiz:lazarus glpunzi$ ./lazarus dyld: Library not loaded: /sw/lib/libgdk_pixbuf.2.dylib   Referenced from: /usr/local/share/lazarus/./lazarus   Reason: image not found Trace/BPT trap How can I solve this? Thanks in advance. ---------------------------------------------------------------------- Phil · 2008-02-10 19:41 Quote from: "Lord_ZealoN"dyld: Library not loaded: /sw/lib/libgdk_pixbuf.2.dylib   Referenced from: /usr/local/share/lazarus/./lazarus   Reason: image not found It looks like you don't have the GTK libraries installed. Look in /sw/lib. You should have something like this: -rwxr-xr-x   1 root  admin  245724 Mar 23  2006 libgdk_pixbuf.2.0.0.dylib lrwxr-xr-x   1 root  admin      25 Feb 11  2007 libgdk_pixbuf.2.dylib -> libgdk_pixbuf.2.0.0.dylib lrwxr-xr-x   1 root  admin      25 Feb 11  2007 libgdk_pixbuf.dylib -> libgdk_pixbuf.2.0.0.dylib If not, you don't have GTK installed. Run fink again. Thanks. -Phil ---------------------------------------------------------------------- Lord_ZealoN · 2008-02-11 11:46 I will try it at home, but I remember I installed all the GTK things, but, instead apt-get install, I used fink install, because apt-get never found something. I installed MacPorts for try with it, but I can't found the port "exceutable". In Tiger, all worked fine, but with Leopard, I have thousand problems with all. Cheers. ---------------------------------------------------------------------- windy · 2008-02-12 19:38 Hi I had similar problem with Max OSX 10.5, on a PowerPC (as fink could not find the correct dependencies) but I got there eventualy, using Mac ports... check out one of my postings on it.... ---------------------------------------------------------------------- felipemdc · 2008-02-13 06:19 I'm already using the Carbon IDE. Yes, sure it has some bugs, but the advantages are enormous: * No need for X11 * Copy+Paste fully working with apple keys * Very good looking =) * Menu on the right place * etc Oh, you will need subversion Lazarus. http://wiki.lazarus.freepascal.org/Carbon_Interface#Getting_a_.22carbo nproof.22_Lazarus I've only found small bugs so far. I would dare to say it's better then the gtk2 ide for example. One thing to be careful: When you first open it it seams to use a non- mono font. Change your font to a mono-font on the Editor options dialog. I use "Monaco" and it looks really good =) ---------------------------------------------------------------------- Phil · 2008-02-13 14:57 Quote from: "sekel"IOh, you will need subversion Lazarus. You can rebuild the IDE for Carbon from the snapshot versions too. Just drag Lazarus from /usr/local/share to your home folder where you have write privileges, then compile it as described here: http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ#How_can_I_rebu ild_LCL_or_Lazarus_IDE_for_Carbon_interface_via_terminal.3F A recent improvement that Tomas made eliminates the need to specify the Carbon framework on the Linking tab when compiling your apps for Carbon. Just select Carbon as the target the way you do with any of the other targets, and compile. Couldn't be easier. Thanks. -Phil ---------------------------------------------------------------------- Lord_ZealoN · 2008-02-18 21:53 How can I get 2 diferents versions of lazarus on MacOS? one for tests, like one from SVN, and other "stable" for production use ---------------------------------------------------------------------- Phil · 2008-02-19 00:28 Quote from: "Lord_ZealoN"How can I get 2 diferents versions of lazarus on MacOS? one for tests, like one from SVN, and other "stable" for production use If you install a snapshot, Lazarus gets installed in /usr/local/share/lazarus. Just drag the lazarus folder from /usr/local/share to someplace in your home folder. This will also allow you to rebuild it easily since files under /usr/local/share normally are read-only. How do you get to /usr/local/share in Finder? Choose Go | Go to Folder and enter /usr, then navigate as usual. The lazarus folder is completely independent of everything else, so you can have any number of lazarus installations this way. Thanks. -Phil ---------------------------------------------------------------------- Lord_ZealoN · 2008-02-19 08:20 Quote from: "Phil"Quote from: "Lord_ZealoN"How can I get 2 diferents versions of lazarus on MacOS? one for tests, like one from SVN, and other "stable" for production use If you install a snapshot, Lazarus gets installed in /usr/local/share/lazarus. Just drag the lazarus folder from /usr/local/share to someplace in your home folder. This will also allow you to rebuild it easily since files under /usr/local/share normally are read-only. How do you get to /usr/local/share in Finder? Choose Go | Go to Folder and enter /usr, then navigate as usual. The lazarus folder is completely independent of everything else, so you can have any number of lazarus installations this way. Thanks. -Phil Cool, thanks.. ---------------------------------------------------------------------- Simon08 · 2008-02-21 10:52 Can Lazarus/FreePascal produce Mac apps with QT static-linked? Quote from: "Phil"Quote from: "sekel"IOh, you will need subversion Lazarus. You can rebuild the IDE for Carbon from the snapshot versions too. Just drag Lazarus from /usr/local/share to your home folder where you have write privileges, then compile it as described here: http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ#How_can_I_rebu ild_LCL_or_Lazarus_IDE_for_Carbon_interface_via_terminal.3F A recent improvement that Tomas made eliminates the need to specify the Carbon framework on the Linking tab when compiling your apps for Carbon. Just select Carbon as the target the way you do with any of the other targets, and compile. Couldn't be easier. Thanks. -Phil ---------------------------------------------------------------------- Phil · 2008-02-21 15:23 Quote from: "Simon08"Can Lazarus/FreePascal produce Mac apps with QT static-linked? The way the Qt widgetset is designed on Mac is to use the Qt core libraries via Den Jean's Qt interface library. All of these libraries are bundled together into a framework that can be used by any number of Qt-based Lazarus apps. The Qt framework is installed under /Libraries/Frameworks so it can be found at runtime. Note that the Qt framework could also be installed with your app as part of the application bundle. Linking libraries and resources into the executable is not the Mac way of doing things. Instead, you have an app bundle (folder) that can contain any number of folders and files. Drill down into the apps on a Mac to see how this is done. Thanks. -Phil ---------------------------------------------------------------------- Hansaplast · 2008-03-03 03:49 Just out of curiosity ... but when can we expect a Lazarus version for the Mac (Leopard e.a.) runnning native Carbon, without complicated setups? You know, as a precompiled package ... I've taken several attempts to get things going, but stumble every single time on something else ... fink not available, link error, etc. yeah the IDE works now, but it won't link (Error while linking) ... As an old Delphi user, I'm dying to get my hands on a working setup