Traumflug / simulavr

A fork of SimulAVR (http://www.nongnu.org/simulavr/) for handling contributions. The practical SIMINFO mechanism implemented here wasn't accepted upstream, but is crucial for Teacup Firmware simulations, so this fork will stay ... and follow upstream. Default branch is 'traumflug', master here matches master on nongnu.org.
GNU General Public License v2.0
40 stars 26 forks source link

How-to compile and work with pysimulavr #12

Open Valber opened 8 years ago

Valber commented 8 years ago

System Ubuntu 15.04 , swig 2.0.12-1ubuntu1 - installed

git clone https://github.com/Traumflug/simulavr.git
./bootstrap
./configure LDFLAGS="-L/usr/lib/python2.7" --enable-python
make
sudo checkinstall
cd src/python 
sudo python setup.py install

python -c 'import pysimulavr'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/pysimulavr-1.1.dev0-py2.7-linux-x86_64.egg/pysimulavr.py", line 28, in <module>
    _pysimulavr = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/pysimulavr-1.1.dev0-py2.7-linux-x86_64.egg/pysimulavr.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pysimulavr', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/pysimulavr-1.1.dev0-py2.7-linux-x86_64.egg/_pysimulavr.so: undefined symbol: _ZTI14RWMemoryMember

What's wrong?

Traumflug commented 8 years ago

Sorry, can't say much about this, so far I never used the Python interface. I run SimulAVR always from the command line directly. Maybe you have more luck on the SimulAVR mailing list, because what you see here adds the SIMINFO mechanism only, everything else is identical to upstream.