otapij
otapij copied to clipboard
Open Transactions - Swig - Php
I cannot find 'php_otapi.dll' or otapi.so required by php file otapi.php (swig/glue/php)
I am running windows 7 How can I generate them ? From Visual Studio, it is asking zend files which I don't find in the open-transactions folder but i downloaded from the zend framework When i try to build from visual studio 10, the following error comes up
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(627): warning C4273: 'getwchar' : inconsistent dll linkage
On 10/27/12 11:17 PM, Jesmond Spiteri wrote:
I cannot find 'php_otapi.dll' or otapi.so required by php file otapi.php (swig/glue/php)
I am running windows 7 How can I generate them ? From Visual Studio, it is asking zend files which I don't find in the open-transactions folder but i downloaded from the zend framework When i try to build from visual studio 10, the following error comes up
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(627): warning C4273: 'getwchar' : inconsistent dll linkage
— Reply to this email directly or view it on GitHub https://github.com/FellowTraveler/Moneychanger/issues/27.
I've copied da2ce7 on this, since he's the one managing the Windows build.
(You might try his version at github.com/da2ce7/Open-Transactions)
Normally on linux, you do this (from the Open-Transactions directory):
autoreconf -i -f mkdir build cd build ../configure --with-php make make install
So basically you would configure it for PHP before building.
As for how this is done on Windows, I'd have to defer to Da2ce7.
-FT
For Open Transactions there are two Visual Studio Solutions: One for the non-swig projects: eg. otlib otapi otserver ot etc... One for the swig projects: eg. otapi-java, otapi-php, otapi-csharp... etc.
You need to successfully compile the first solution. Afterwards, you need to compile the swig solution (or the individual projects contained within that you want).
I have got otapi-java and otapi-csharp working.... However I have not worked on the dependencies for the other swig builds.
In the project you may need to add references in the VC++ directories, Particularly the "Include Directories" and "Library Directories" to link to your php header and static object directories.
I recommend you use my branch, as I have improved the swig builds for the non-java languages considerably.
@jspit also... please feel welcome to hang out in #opentransactions on freenode. I hangout very regularly there. (and dose virtually the entire OT team)
Hi
i have tried to generate the php_otapi.dll by compiling swig\otapi\otapi-wrap.sl project Visual c++ 2010 express
the following errors are coming up
any idea why ?
1>------ Skipped Build: Project: otapi-java, Configuration: Release Win32 ------ 1>Project not selected to build for this solution configuration 2>------ Skipped Build: Project: otapi-tcl, Configuration: Release Win32 ------ 2>Project not selected to build for this solution configuration 3>------ Skipped Build: Project: otapi-ruby, Configuration: Release Win32 ------ 3>Project not selected to build for this solution configuration 4>------ Skipped Build: Project: otapi-python, Configuration: Release Win32 ------ 4>Project not selected to build for this solution configuration 5>------ Build started: Project: otapi-php, Configuration: Release Win32 ------ 6>------ Skipped Build: Project: otapi-perl5, Configuration: Release Win32 ------ 6>Project not selected to build for this solution configuration 7>------ Skipped Build: Project: otapi-csharp, Configuration: Release Win32 ------ 7>Project not selected to build for this solution configuration 8>------ Skipped Build: Project: otapi-d, Configuration: Release Win32 ------ 8>Project not selected to build for this solution configuration
5> OTAPI-php.cpp
5>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(627): warning C4273: 'getwchar' : inconsistent dll linkage 5> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(440) : see previous definition of 'getwchar' 5>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(629): warning C4273: 'putwchar' : inconsistent dll linkage 5> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(442) : see previous definition of 'putwchar' 5>c:\open-transactions\swig\otapi\php_compat.h(27): fatal error C1083: Cannot open include file: 'php_config.h': No such file or directory ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 7 skipped ==========
Thanks
Hi
Yesterday sent you email ? did you see it by any chance
when you say 'to hang out in #open transactions on freenode.' what is the exact url ?
i normally visit 'https://github.com/da2ce7/Open-Transactions'.
Thanks Jesmond
On 29 October 2012 04:29, Cameron Garnham [email protected] wrote:
@jspit https://github.com/jspit also... please feel welcome to hang out in #open transactions on freenode. I hangout very regularly there. (and dose virtually the entire OT team)
— Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9855578.
Jesmond Spiteri
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Freenode is a IRC Network.
http://freenode.net/
For a client I recommend KVIrc:
http://www.kvirc.net/
Connect to the Freenode Network, then join #opentransactions via the command:
/j #opentransactions
5>c:\open-transactions\swig\otapi\php_compat.h(27): fatal error C1083: Cannot open include file: 'php_config.h': No such file or directory
this line is your issue... you need to add the PHP DEV directory to your 'Include Directories' under VC++ Directories in the projects configuration.
On 31/10/2012 4:03 AM, Jesmond Spiteri wrote:
Hi
Yesterday sent you email ? did you see it by any chance
when you say 'to hang out in #open transactions on freenode.' what is the exact url ?
i normally visit 'https://github.com/da2ce7/Open-Transactions'.
Thanks Jesmond
On 29 October 2012 04:29, Cameron Garnham [email protected] wrote:
@jspit https://github.com/jspit also... please feel welcome to hang out in #open transactions on freenode. I hangout very regularly there. (and dose virtually the entire OT team)
â?? Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9855578.
-- Jesmond Spiteri
â?? Reply to this email directly or view it on GitHub https://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9913907.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iF4EAREIAAYFAlCQPV8ACgkQBJ8cMDO159aYmAEA04+b63zvMwmi1GQIvdDCP3xn AY5Kc64VRq8DMHpjB64A/j9Co4jcsLA8v42LdocRA7pgAR4wUMqQ80vF+Mit42ls =FMmh -----END PGP SIGNATURE-----
Did you manage to generate the dll yourself ? or the otapi.so
That's all I need to start doing some real stuff and testing
Jes
On 30 October 2012 21:49, Cameron Garnham [email protected] wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Freenode is a IRC Network.
http://freenode.net/
For a client I recommend KVIrc:
http://www.kvirc.net/
Connect to the Freenode Network, then join #opentransactions via the command:
/j #opentransactions
5>c:\open-transactions\swig\otapi\php_compat.h(27): fatal error C1083: Cannot open include file: 'php_config.h': No such file or directory
this line is your issue... you need to add the PHP DEV directory to your 'Include Directories' under VC++ Directories in the projects configuration.
On 31/10/2012 4:03 AM, Jesmond Spiteri wrote:
Hi
Yesterday sent you email ? did you see it by any chance
when you say 'to hang out in #open transactions on freenode.' what is the exact url ?
i normally visit 'https://github.com/da2ce7/Open-Transactions'.
Thanks Jesmond
On 29 October 2012 04:29, Cameron Garnham [email protected] wrote:
@jspit https://github.com/jspit also... please feel welcome to hang out in #open transactions on freenode. I hangout very regularly there. (and dose virtually the entire OT team)
â?? Reply to this email directly or view it on GitHub< https://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9855578 .
-- Jesmond Spiteri
â?? Reply to this email directly or view it on GitHub < https://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9913907 .
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iF4EAREIAAYFAlCQPV8ACgkQBJ8cMDO159aYmAEA04+b63zvMwmi1GQIvdDCP3xn AY5Kc64VRq8DMHpjB64A/j9Co4jcsLA8v42LdocRA7pgAR4wUMqQ80vF+Mit42ls =FMmh -----END PGP SIGNATURE-----
— Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9922225.
Jesmond Spiteri
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 31/10/2012 8:56 AM, Jesmond Spiteri wrote:
Did you manage to generate the dll yourself ? or the otapi.so
That's all I need to start doing some real stuff and testing
Jes
Ok I've got it to compile:
https://github.com/da2ce7/Open-Transactions/blob/vs2010/docs/INSTALL-Windows.txt
You will need to use my vs2010 branch... (this still works with VS2012, except you need the Windows 7.1 SDK installed, this branch is to re-enable windows XP support).
:) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iF4EAREIAAYFAlCQtNwACgkQBJ8cMDO159YhigD/aSm1okSQ1GWygHKikKriMhxG z/O4Wg6exuT3pktqvxEBANh6W1K178oOY6s57JiKz4t1OKQH9lmscQtuoqXeneh5 =n3Gx -----END PGP SIGNATURE-----
Hi Cameron
I tried to compile. All to no avail - errors coming up with getwchar() in stdio.h
Maybe there is a compatibilty issue or I don't know.
I am starting to loose hope.
Thanks a lot for your help.
If you managed to generate the
php_otapi.dll and otapii.so
and you can send it to me, please do so as I am wasting to much time on it.
Thanks again Jesmond
On 31 October 2012 06:19, Cameron Garnham [email protected] wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 31/10/2012 8:56 AM, Jesmond Spiteri wrote:
Did you manage to generate the dll yourself ? or the otapi.so
That's all I need to start doing some real stuff and testing
Jes
Ok I've got it to compile:
https://github.com/da2ce7/Open-Transactions/blob/vs2010/docs/INSTALL-Windows.txt
You will need to use my vs2010 branch... (this still works with VS2012, except you need the Windows 7.1 SDK installed, this branch is to re-enable windows XP support).
:) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (MingW32) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iF4EAREIAAYFAlCQtNwACgkQBJ8cMDO159YhigD/aSm1okSQ1GWygHKikKriMhxG z/O4Wg6exuT3pktqvxEBANh6W1K178oOY6s57JiKz4t1OKQH9lmscQtuoqXeneh5 =n3Gx -----END PGP SIGNATURE-----
— Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9933200.
Jesmond Spiteri
When I make another binary release, I'll be sure to include the PHP module DLL.
Atm it is a bad time as there are some big changes in the pipe. But maybe in two weeks.
I'm sorry about the pain you have been going through. But I've gotta stress that using IRC is the best way to get support from the entire OT team.
I mainly do the windows development, so I find it hard to support on Linux or Unix issues.
In the IRC channel there ate the actual people who made our Linux build system. They would be better positioned to help you than I.
Cam.
Thanks
On 31 October 2012 23:41, Cameron Garnham [email protected] wrote:
When I make another binary release, I'll be sure to include the PHP module DLL.
Atm it is a bad time as there are some big changes in the pipe. But maybe in two weeks.
I'm sorry about the pain you have been going through. But I've gotta stress that using IRC is the best way to get support from the entire OT team.
I mainly do the windows development, so I find it hard to support on Linux or Unix issues.
In the IRC channel there ate the actual people who made our Linux build system. They would be better positioned to help you than I.
Cam.
— Reply to this email directly or view it on GitHubhttps://github.com/FellowTraveler/Moneychanger/issues/27#issuecomment-9964873.
Jesmond Spiteri