It is currently Tue Oct 21, 2014 7:02 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Feb 26, 2012 9:23 am 
Offline

Joined: Sat Feb 25, 2012 9:28 pm
Posts: 8
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 ?


Top
 Profile  
 
PostPosted: Sun Feb 26, 2012 2:51 pm 
Offline
Developer

Joined: Mon Aug 15, 2011 8:12 pm
Posts: 72
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:
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


Top
 Profile  
 
PostPosted: Sun Feb 26, 2012 4:43 pm 
Offline

Joined: Sat Feb 25, 2012 9:28 pm
Posts: 8
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:
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 ?


Top
 Profile  
 
PostPosted: Tue Feb 28, 2012 1:29 pm 
Offline
Developer

Joined: Mon Aug 15, 2011 8:12 pm
Posts: 72
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group