jgmdev blog

04
Jun 2012

From resources to zend_object

From resources to zend_object
On previous wxphp code a property resource was added to each wxWidgets wrapper php object in order to store the native wxWidgets object. This property was named wxResource and you could do things like $object->wxResource or unset($object->wxResource) leading to application errors. Johannes (a php developer) told me about extending the zend_object ...
31
May 2012

wxPHP IRC Channel at Freenode

wxPHP IRC Channel at Freenode
Yesterday I was influenced by RedTide (wxGUIDesigner developer) to create an IRC channel on freenode and use cia.vc as a tool to monitor every push made to the repo. So the channel has a bot that shouts a message everytime something new is added on the github repo. So if anyone ...
29
May 2012

Ubuntu 12.04 i386 package

Ubuntu 12.04 i386 package
Today I installed a virtual machine with ubuntu 12.04 i386 in order to build packages for that platform. So theres now an i386 version as the prior amd64 one. I marked the i386 build as 2.9.4.0 but I could actually say it should be something like 2.9.4.1 since I used ...
25
May 2012

Windows Dependencies

Windows Dependencies
Today some one contacted me on IRC because it was having crashes with the php executables distributed with the wxphp-2.9.4.0.exe installer. So I decided to give the installer a try on a clean installation of Windows. To my surprise I forgot that PHP has visual c++ libraries dependency. So if someone ...
16
May 2012

Some Debianization

Some Debianization
Finally I took the time to check how a deb package was done, thanks God the apt-get application now has the flag source so doing something like apt-get source php5-xcache helped me a lot and served as the skeleton to debianize wxphp. I created a deb package for Ubuntu 12.04 amd64 ...
15
May 2012

Windows Installer Released

Windows Installer Released
We have put up a windows installer bundled with PHP 5.3.13, latest wxPHP, documentation, examples as other goodies. The installer has the option of associating .wxphp and .wxphpd extensions to open with the php interpreter. The .wxphp extensions open with wxphp-win.exe like stand alone desktop applications, while the .wxphpd extensions ...
06
May 2012

Mac Version Working!

Mac Version Working!
Today I took another try on building on mac and all went smoothly. The only issue was the windows not receiving keyboard input. So I started searching on internet for ways to solve the issue and found an article on stackoverflow that pointed how to solve the issue. After integrating the ...
04
May 2012

wxPHP using github

wxPHP using github
We are now using GIT to commit new code since it's much faster than SVN. Even when I'm working with a 3kb uploads connection git push is fast :)Thanks to RedTide from the wxFormBuilder team we have a new tree structure much cleaner than before. The new github repository is located ...
29
Apr 2012

Fixed MSW Linking Errors

Fixed MSW Linking Errors
Finally the code links correctly on MSW, after trying a lot of different configuration on the config.w32 I was so exhausted that I decided that it couldn't be a problem with that file. Then I decided to take a better look to the linker error messages and redirected the output ...
25
Apr 2012

Windows Compilation Errors Fixed

Windows Compilation Errors Fixed
Finally fixed all windows compilation errors, now the process goes as smooth as it should.I included a README_MSW for some small changes needed in order to correctly compile since the typedef mode_t is defined in both wxWidgets and PHP. Also wxPostScriptDC is not enabled by default on wxMSW. Almost forgot ...