Re: [PHP-GTK] running php-gtk2 on mac

[email protected] (Joseph Crawford)
Newsgroups php.gtk.general
Message-ID <[email protected]>
forgive me if i am wrong but couldn't you use something like Platypus  
to get an OS X app binary for this?  I found it very easy when  
creating an OS X app based on just a command line php script.

Joseph Crawford

On Feb 25, 2008, at 2:38 PM, Benjamin Smith wrote:

> My challenge with Macintosh hasn't been getting it to work. It's  
> been getting
> it to work for end users. It seems that getting anything beyond  
> "Drag the
> icon to your desktop" to work without intense frustration is nigh  
> impossible.
>
> For what it's worth, I've been maintaining a mac port of PHP4-GTK1  
> for OSX to
> support my PHP-GTK software. Over the last year, I've gotten it  
> refined so
> that installing my software is almost as easy as, for example,  
> Firefox -
> download the file, double-click the .tgz icon, double-click the
> resulting .app icon.
>
> The path to making this so is anything but simple:
>
> 1) The end user has to have Xcode and X11 libraries installed from  
> their O/S
> DVD.
>
> 2) The boot process is ridiculously complex:
> 	A) Icon links to a script file within the myicon.app directory.
> 	B) script mounts an embedded .dmg file so that the absolute path  
> requirements
> of php/gtk can be met.
> 	C) php/gtk has been source-compiled to the default mount directory  
> of the
> embedded .dmg. This was no small feat in itself, but you can get the  
> sources
> with compile scripts at http://chico.benjamindsmith.com/phpgtk_osx/
> 	D) Within the .dmg file are copies of binaries for both  
> architectures.
> (ppc/i386) uname is used to determine which set to run.
> 	E) Call to php/x11 made to launch the actual php-gtk script.
> 	F) PHP-GTK program launches.
> 	G) Background script is run to unmount the mounted drive. It tries  
> every 5
> seconds, will fail so long as script launched in F is run.
>
> 3) Binaries are all compiled on OSX 10.3. Older binaries work on newer
> releases, newer binaries don't work on older releases.
>
> Hard to come to? Yes. But it seems to be the best way from an end-user
> perspective. I've tried repeatedly to get rid of the requirement for  
> Xcode.
> (X11 isn't so bad, Xcode is over a GB)
>
> -Ben
>
> On Friday 08 February 2008, kksou wrote:
>>
>> Hi,
>>
>> My friend just bought an imac, and he wants to explore php-gtk2.
>>
>> I'm not familiar with the mac platform. I've only run php-gtk2 on  
>> windows
>> and linux.
>>
>> Was wondering if any mac user could give some advice:
>>
>> 1) I know OS X is a built on top of unix. So is it possible to  
>> download the
>> php-gtk2 source code and compile them just like what we did on  
>> linux? Is it
>> as straightforward as in linux? Or as complicated as in compiling on
>> windows?
>>
>> 2) The other alternative I was told is to use vmware to run linux  
>> or windows
>> on mac (think this might be an overkill).
>>
>> 3) Are there any resources on running/compiling php-gtk2 on mac?
>>
>> Thanks in advance for your advice.
>>
>> Warm Regards,
>> /kksou
>>
>> -- 
>> View this message in context:
> http://www.nabble.com/running-php-gtk2-on-mac-tp15354952p15354952.html
>> Sent from the Php - GTK - General mailing list archive at Nabble.com.
>>
>> -- 
>> PHP-GTK General Mailing List (http://gtk.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>
> -- 
> --
> Only those who reach toward a goal are likely to achieve it.
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> -- 
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.