building PHP bindings

15 views
Skip to first unread message

Marek Havlík

unread,
Nov 12, 2018, 1:43:09 PM11/12/18
to sbml-interoperability
Hello,
I'm trying to build php bindings for libSBML for my application. I'm using CMake and Visual Studio according to the documentation on Windows 10 x64. I have been successful in building the library itself with expat, but I suspect I provide wrong library file for phpin CMake configuration. I've tried both php5 and php7 embed .lib files aswell as swig php libraries. The errors I get come from libsbml_wrap.cpp file not finding included files such as "zend.h" etc.

Thank you in advance
Marek

Frank Bergmann

unread,
Nov 15, 2018, 3:39:49 AM11/15/18
to sbml-inter...@googlegroups.com
Hello,

you can add additional include directories via the CMake variable
EXTRA_INCLUDE_DIRS that takes a semicolon separated list of include
directories to use. zend is not part of libsbml, so it will be of php.
And indeed the header file is included int he php source package.
Should that not help we would need a bit more information, so the
complete error message and CMakeCache.txt file would be needed.

cheers
Frank
> --
> You received this message because you are subscribed to the Google Groups "sbml-interoperability" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sbml-interoperab...@googlegroups.com.
> To post to this group, send email to sbml-inter...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sbml-interoperability/8fe4ee1a-277e-4ffb-aef9-c11c71ba23af%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages