image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old January 15th, 2008, 02:48 AM
Registered User
 
Join Date: Apr 2007
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Luc4 is on a distinguished road
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!
Reply With Quote
  #2  
Old January 15th, 2008, 07:33 AM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,533
Thanks: 13
Thanked 87 Times in 71 Posts
nixgeek has a spectacular aura aboutnixgeek has a spectacular aura aboutnixgeek has a spectacular aura about
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
Reply With Quote
  #3  
Old January 15th, 2008, 10:21 AM
Registered User
 
Join Date: Apr 2007
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Luc4 is on a distinguished road
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!
Reply With Quote
  #4  
Old January 15th, 2008, 12:16 PM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 7,533
Thanks: 13
Thanked 87 Times in 71 Posts
nixgeek has a spectacular aura aboutnixgeek has a spectacular aura aboutnixgeek has a spectacular aura about
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
Reply With Quote
  #5  
Old January 15th, 2008, 05:52 PM
Registered User
 
Join Date: Apr 2007
Posts: 23
Thanks: 1
Thanked 1 Time in 1 Post
Luc4 is on a distinguished road
Thank you very much for the information!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:44 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.