wolfssl/swig/README

45 lines
1.4 KiB
Plaintext
Raw Normal View History

2011-02-05 13:14:47 -06:00
Initial swig interface file
2015-01-08 15:47:41 -06:00
Please send questions to support@wolfssl.com
2011-02-05 13:14:47 -06:00
**Python Support**
For Linux, OS X, or *nix
2015-01-08 15:47:41 -06:00
1) build wolfSSL with fpic on Linux, not needed on OS X
2011-02-05 13:14:47 -06:00
./configure --disable-shared CFLAGS=-fpic
make
sudo make install
2015-01-08 15:47:41 -06:00
2) start the example echoserver from the root directory
./examples/echoserver/echoserver
2011-02-05 13:14:47 -06:00
2015-01-08 15:47:41 -06:00
3) run ./PythonBuild.sh from this directory it will
2011-02-05 13:14:47 -06:00
a) build the swig wrapper file
2015-01-08 15:47:41 -06:00
b) compile the swig wrapper and wolfssl wrapper files
c) place them into a wolfssl shared library for python
d) run runme.py which will connect to the wolfSSL echo server, write a
2011-02-05 13:14:47 -06:00
string, then read the result and output it
2015-01-08 15:47:41 -06:00
Windows only
2011-02-05 13:14:47 -06:00
2015-01-08 15:47:41 -06:00
1) Make sure the install path to wolfssl doesn't have any spaces anywhere in the
2011-02-05 13:14:47 -06:00
directory path because swig doesn't like that
2) Have python for Windows installed, note install directory
3) Have swigwin installed, note install directory
4) Make sure swigwin install direcotry is added to PATH env. variable
5) Make sure env. variables PYTHON_INCLUDE and PYTHON_LIB are set correctly e.g.
PYTHON_INCLUE="c:\Python26\include"
PYTHON_LIB="c:\Python26\libs\python26.lib"
2015-01-08 15:47:41 -06:00
6) Build python_wolfssl in Release mode only, Debug build fails to find a debug
2011-02-05 13:14:47 -06:00
python library that isn't included by default
2015-01-08 15:47:41 -06:00
7) The outputs _wolfssl.pyd and wolfssl.py are the wolfssl import library
8) Can now run python runme.py from the swig directory
2011-02-05 13:14:47 -06:00