|
#1
| |||
| |||
| Compiling GTK application on mac Hi! I have an application I wrote in GTK for Linux. I was wondering if it is possible to compile and run it on my mac as well. I know mac has X11, in fact I run the gimp and openoffice on it, so maybe I can even compile software which use GTK? Should I include in the sources the complete sources of GTK? Thanks guys! |
|
#2
| ||||
| ||||
| It will compile so long as you have the necessary libraries that depend on the software you wrote. Most GNU/Linux distributions already have them either installed or available in their repositories. You would have to have all of the GTK libraries installed as well. If you need them installed with dependency tracking and everything, there's either Fink or MacPorts.
__________________ • Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11 • Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1 • Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1 • "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1 • "Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04 |
|
#3
| |||
| |||
| Would it be possible to avoid installing anything like macport etc...? I mean, would it be possible to download the sources and ./configure and make? Then I insert my include "path/.../gtk/gtk.h" and stop. I need them only for this project compiled using eclipse, so I would like to insert them in the project directory and stop, without touching my mac configuration too much. I don't know how many things this macport installs. Thanks for your answer! |
|
#4
| ||||
| ||||
| Yes, you could do that, but then you would be the one in charge of maintaining the necessary dependencies for each of the libraries. MacPorts is the same as the Ports system in FreeBSD or Portage in Gentoo Linux, so it's pretty much compiled as you request it if I'm not mistaken and it accounts for any dependencies needed by the requested files.
__________________ • Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11 • Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1 • Apple PowerBook Duo 230 (33 MHz MC68030) - System 7.1 • "JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 12.1 • "Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 8.04 |
|
#5
| |||
| |||
| Thank you very much for the information! |