Which version should I get ?

Anything else that doesn't match the other forums but related to wxPHP
ankif
Posts: 8
Joined: Sat Feb 25, 2012 9:28 pm

Which version should I get ?

Postby ankif » Sun Feb 26, 2012 9:23 am

Hello,

I'm a Mageia Linux user and I try to use wxPHP. I couldn't find any binary so I will build one and eventually try to create a package.

What is the version I should use ? I couldn't find any source code at SourceForge's. Only Windows binaries. So I reverted to the SVN snapshot. But the online documentation doesn't correspond to that version (example : "headerParser" directory replaced by "xml_parser", gccxml no longer used, etc) .

I can write a comprehensive report if you like.

Or did I miss something and the online documentation is for the 1.1 version to be found elsewhere ?

jgmylm
Developer
Posts: 76
Joined: Mon Aug 15, 2011 8:12 pm

Re: Which version should I get ?

Postby jgmylm » Sun Feb 26, 2012 2:51 pm

Hi svn is the way to go for most up to date and new features, theres also an svn tag of older version based on wxWidgets 2.8.12. I have to update the online building instructions for newer version, but for now I just updated the README file with this:

Code: Select all

Building and Installing on Linux
========================================================================

. Compile wxWidgets library and development packages, currently we have
  tested with latest 2.9.3 distributed on wxwidgets.org

   Download wxWidgets tar file and uncompress it on your
   directory of choice on the console change to that directory
   and:
      ./configure --prefix=/opt/wxWidgets-2.9.3 --enable-monolithic
   
. Install php5 development packages

   Ubuntu 10.04:
      apt-get install php5-dev
   
. Configure and build the extension
   cd wxPHP
   phpize
   ./configure --with-wxwidgets=/opt/wxWidgets-2.9.3
   make
   
. Installing the extension
   Copy the resulting wxwidgets.so file on the modules directory to the php
   extensions directory (you can make this file smaller by running strip
   on it). PHP extensions directory is usually found on /usr/lib/php5/
   On ubuntu 10.04 this directory is /usr/lib/php5/20090626/
   
   If you want the wxWidget extension to be automatically loaded, add the
   following lines to your php.ini:
   
      ; load php wxwidgets module
      extension=wxwidgets.so
      
   If not, then enable dynamic loading on your php.ini usually on
   /etc/php5/cli/php.ini > enable_dl = On


on the svn snapshot loading the extension from the ini with extension=wxwidgets.so causes a segfault, so the "enable_dl = On" should be used instead

ankif
Posts: 8
Joined: Sat Feb 25, 2012 9:28 pm

Re: Which version should I get ?

Postby ankif » Sun Feb 26, 2012 4:43 pm

jgmylm wrote:Hi svn is the way to go for most up to date and new features, theres also an svn tag of older version based on wxWidgets 2.8.12.

OK. I have compiled wxWidgets 2.9.3 successfully.

But wxPHP doesn't. It ends up with the following message :

Code: Select all

wxwidgets.cpp: In function ‘void zif_php_wxAbort(int, zval*, zval**, zval*, int)’:
wxwidgets.cpp:4588:13: error: ‘wxAbort’ was not declared in this scope
wxwidgets.cpp: In function ‘int zm_startup_php_wxWidgets(int, int)’:
wxwidgets.cpp:21439:2: error: ‘wxRICHTEXT_SETPROPERTIES_WITH_UNDO’ was not declared in this scope
make: *** [wxwidgets.lo] Error 1

Regenerating the code with the source generator doesn't change anything. Any idea ?

jgmylm
Developer
Posts: 76
Joined: Mon Aug 15, 2011 8:12 pm

Re: Which version should I get ?

Postby jgmylm » Tue Feb 28, 2012 1:29 pm

mmm If I recall correctly I did some changes using wxWidgets svn version in order to compile on mac and they added/removed that function.

In any case you can safely remove wxAbort declaration and wxRICHTEXT_SETPROPERTIES_WITH_UNDO from the code in order to compile.


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest

cron