Giter Club home page Giter Club logo

Comments (8)

jgmdev avatar jgmdev commented on June 11, 2024

The solution may require to first make wxphp work against wxWidgets 3.0, to make use of fixes that may have been added to it for mavericks since 2.9.4, which wxphp is based on.

from wxphp.

chrisnharvey avatar chrisnharvey commented on June 11, 2024

I've almost got wxphp to work against wxWidgets 3.0... I think.

Although I am receiving a build error on wxphp because a method in wxWidgets has changed in 3.0 which does not seem to be reflected in wxphp.

screen shot 2013-12-03 at 15 28 57

Any ideas on how I can fix this issue in the code generator?

from wxphp.

jgmdev avatar jgmdev commented on June 11, 2024

This would be the steps required (I may have omitted some since I'm a little rusty with this project):

  1. re-generate json files from wxwidgets 3.0 doxygen xml files.
    Read: https://github.com/wxphp/wxphp/blob/master/xml/README and https://github.com/wxphp/wxphp#xml-parser
  2. copy new json/classes.json into tools/source_maker/class_selector/full_classes_set.json.
  3. After that it may be necessary to modify the resulting full_classes_set.json manually as documented here https://github.com/wxphp/wxphp/blob/master/tools/source_maker/class_selector/manual_changes.txt.
  4. copy tools/source_maker/class_selector/full_classes_set.json. back into json/classes.json
  5. use the merge tool https://github.com/wxphp/wxphp/blob/master/tools/merge.php in order to update the currently binded classes which are stored on tools/source_maker/class_selector/classes.json. This php script generates a merge_changes.log and new classes.json file on tools directory. Make sure to take a look at merge_changes.log and manually adjust new classes.json if necessary.
  6. copy the resulting classes.json generated by merge.php into tools/source_maker/class_selector/classes.json
  7. Finally proceed to regenerating the source code. Compiler errors may arise so it will be needed to tweak tools/source_maker/class_selector/classes.json and some other json files which store enumerations, variables, etc...

Note: you can use https://github.com/wxphp/wxphp/blob/master/build.sh to automate the code generation steps

from wxphp.

chrisnharvey avatar chrisnharvey commented on June 11, 2024

Thanks @jgmdev

I did the steps you mentioned above and I got it to generate the source code.

Now I get this error when running make

screenshot 2013-12-11 13 47 35

Any help is greatly appreciated

from wxphp.

jgmdev avatar jgmdev commented on June 11, 2024

I finished doing some necessary changes to get wxphp compiling against newer wxWidgets 3.0, some things may be broken and need to be adjusted for new php 5.5, do a pull for the new changes and do a fresh phpize, configure, make.

from wxphp.

chrisnharvey avatar chrisnharvey commented on June 11, 2024

Great!

I'll pull those changes when I get home and give it a try.

Thanks for all your hard work.

Sent from my iPhone

On 11 Dec 2013, at 04:49 pm, "Jefferson González" [email protected]
wrote:

I finished doing some necessary changes to get wxphp compiling against
newer wxWidgets 3.0, some things may be broken and need to be adjusted for
new php 5.5, do a pull for the new changes and do a fresh phpize,
configure, make.


Reply to this email directly or view it on
GitHubhttps://github.com//issues/20#issuecomment-30338017
.

from wxphp.

chrisnharvey avatar chrisnharvey commented on June 11, 2024

Works great, although I got a build error. But commenting out this line

REGISTER_LONG_CONSTANT("wxFSW_EVENT_UNMOUNT", wxFSW_EVENT_UNMOUNT, CONST_CS | CONST_PERSISTENT);

in wxwidgets.cpp resolved that error.

from wxphp.

jgmdev avatar jgmdev commented on June 11, 2024

Thanks for your testing. I disabled that constant on the code generator which is part of the wxFSWFlags enumeration (as documented in the wxwidgets interface files since in reality is part of an anonymous enum) and requires wxHAS_INOTIFY as I see on wx/fswatcher.h

I will close this issue since with your feedback it now seems to build on mavericks :) I guess that next issues will be regarding with changes on newer PHP 5.5 version.

from wxphp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.