Recent

Author Topic: on Mac OS X Leopard  (Read 9066 times)

Snoopy

  • New Member
  • *
  • Posts: 21
on Mac OS X Leopard
« on: December 03, 2007, 11:43:39 pm »
I cannot run the

Code: [Select]
sudo /sw/bin/apt-get install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc gtk-engines

command !



Code: [Select]

noname:~ Administrator$ sudo /sw/bin/apt-get install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc gtk-engines

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
could not determine XFree86 version number
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, gtk+-data is already the newest version.
Sorry, gtk+-shlibs is already the newest version.
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
  gdk-pixbuf: Depends: gdk-pixbuf-shlibs (= 0.18.0-12) but it is not going to be installed
  giflib-bin: Depends: x11
  giflib-shlibs: Depends: x11
  gtk+: Depends: x11
  gtk-doc: Depends: libxml2-bin (>= 2.6.19-2) but it is not going to be installed
           Depends: libxslt-shlibs (>= 1.1.14-1) but it is not going to be installed
           Depends: openjade (>= 1.3.2-1028) but it is not going to be installed
           Depends: docbook-dtd (>= 4.2.0-2) but it is not going to be installed
           Depends: docbook-xsl (>= 1.62.4-2) but it is not going to be installed
           Depends: docbook-dsssl-nwalsh (>= 1.78-2) but it is not going to be installed
           Depends: libxslt-bin (>= 1.1.14-1) but it is not going to be installed
  gtk-engines: Depends: imlib-shlibs but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Now if I try to run Lazarus I got the following Error
Code: [Select]
bash-3.2$ cd /usr/local/share/lazarus
bash-3.2$ ./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
bash-3.2$

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2512
RE: on Mac OS X Leopard
« Reply #1 on: December 04, 2007, 10:29:26 am »
Ahh... you need to install X. IIRC it is located somewhere on your OSX cd/dvd
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

crorden

  • New Member
  • *
  • Posts: 36
on Mac OS X Leopard
« Reply #2 on: December 05, 2007, 03:00:51 pm »
Hello-

I managed to install Lazarous on OSX 10.5, but we need to update the web page describing the process described here:
  http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X
As noted, you need to install X11 from your Leopard DVD.

However, at the moment, FINK does not yet support OSX 10.5, so you will not be able to get to the apt-get stage.

I worked around this by installing MacPorts instead of FINK.
  http://www.macports.org/
You can then use macports to install the necessary libraries. The next trick is that MacPorts installs libraries to a different folder than FINK, and Lazarus has the directories for the libraries hard coded. Therefore, I had to copy the appropriate libraries from the MacPorts library folder to the path expected by Lazarus.

At this point, Lazarus runs nicely...

I am not very familiar with OSX, so I had help from a friend. Therefore, I can not recall the precise folders and other details. I will try to see if he can help update the install wiki.

Phil

  • Hero Member
  • *****
  • Posts: 2750
on Mac OS X Leopard
« Reply #3 on: December 06, 2007, 08:14:43 pm »
Quote from: "crorden"
Hello-

I managed to install Lazarous on OSX 10.5, but we need to update the web page describing the process described here:
  http://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X
As noted, you need to install X11 from your Leopard DVD.


This is probably a more comprehensive discussion of installing on OS X:

http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips

windy

  • Full Member
  • ***
  • Posts: 186
on Mac OS X Leopard
« Reply #4 on: January 11, 2008, 09:00:52 am »
Hi
I have a PowerPC G4 powerbook here now, with OSX 10.5 (Leopard)
I have downloaded and installed the latest Lazarus snapshot today , OK
I am having trouble getting GTK installed
as fink is not able to install it
I have read the posts on this thread about getting macports to install GTK,  but I am not sure what command lines to use ( I do have mac ports installed)

alternative: how to get lazarus re compiled to use carbon interface (the whole program?)
i have seen that somewhere on this forum, but I can not find it!
(something like make clean all carbon)
thanks for the help!
Brian

update: I found this
Quote
[edit] How can I rebuild LCL or Lazarus IDE for Carbon interface via terminal?
You can use the following command in Lazarus directory:

for LCL: make lcl LCL_PLATFORM=carbon OPT="-k-framework -kcarbon"
for Lazarus IDE: make all LCL_PLATFORM=carbon OPT="-k-framework -kcarbon"


but I get errors, e.g, make: -iVSPTPSOTO: Command not found
make: -iSP: Command not found

etc etc

update: I am making progress with mac ports (Once I set the path variables for that), using the port install glib1
leaving that running....will report back later

Tombo

  • New Member
  • *
  • Posts: 21
on Mac OS X Leopard
« Reply #5 on: January 11, 2008, 02:50:55 pm »
Hi Windy,

Quote from: "windy"


but I get errors, e.g, make: -iVSPTPSOTO: Command not found
make: -iSP: Command not found



Have you installed Free Pascal?

windy

  • Full Member
  • ***
  • Posts: 186
on Mac OS X Leopard
« Reply #6 on: January 11, 2008, 07:31:04 pm »
Hi
yes, I installed FPC then FPCsource then lazarus .dmg packages for the PowerPC

Macports got the glib1 installed OK
now I need to get the libgdk installed....(I had to copy to the /sw/lib/ folder) but not sure what that is called for the macport download
ahha, its called gdk-pixbuf
downloading and installing that now via macports

horray!
I managed to get it working (after copying each missing library file reported from where macports created it, to the /sw/lib/ folder
then I just had to set the environment path to the ppcppc in lazarus :)

hopefully this will help others out

windy

  • Full Member
  • ***
  • Posts: 186
on Mac OS X Leopard
« Reply #7 on: January 12, 2008, 05:11:39 am »
Hi
update:
I got my project compiled
but I have run into a problem...
any Ttimers I have, give an access violation for their ontimer process in the compiler (those errors show up as the project is loaded)
i must be missing something ...
thanks!

Tombo

  • New Member
  • *
  • Posts: 21
on Mac OS X Leopard
« Reply #8 on: January 14, 2008, 02:18:49 pm »
Quote from: "windy"


but I get errors, e.g, make: -iVSPTPSOTO: Command not found
make: -iSP: Command not found



Finally I found what you are missing:
The reason of this error is, that Free Pascal Compiler executables are not found in search path. You must add their path to the terminal profile, which is located at your home directory in ".profile" file (e.g. use command "pico ~/.profile" in terminal). At the end of file add this line:

export PATH=$PATH:/usr/local/bin

, where "/usr/local/bin" is path to FPC executables. Save the result. It should work after terminal restart.

I have added it to Carbon interface FAQ  "http://wiki.lazarus.freepascal.org/Carbon_interface_FAQ"

windy

  • Full Member
  • ***
  • Posts: 186
on Mac OS X Leopard
« Reply #9 on: January 14, 2008, 10:12:05 pm »
Thanks
export PATH=$PATH:/usr/local/bin

worked a treat from a terminal window, the make clean all now works :)

 

TinyPortal © 2005-2018