Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nsound does not work with swig3, ubuntu 16 #5
I'm having all kinds of problems on ubuntu 16 out of the box:
Ubuntu 16 default swig package is 3.X, which doesn't seem to work with nsound 0.9.4. After building and installing the python package with swig3, I get strange errors, as simple trying to construct a Sine generator:
Nsound partially works after installing the swig2.0 package:
Running unit tests from the git clone works as expeted:
However trying to run one of the examples hangs in what appears to be an infinite loop:
Please fix for Ubuntu 16!
@respinha try out the branch "bugfix/issue5", you will need swig 3.0.12, let me know if it works for you.
My long term plan is to completely rewrite Nsound in c++14, the existing code base is very old and difficult to maintain. SWIG is also very painful, I may look into alternatives like cython, boost::python, or pybind11.
@weegreenblobbie it's the same error in all tests. Whenever an object of any type is created, it always crashes with this stacktrace:
@respinha I just built nsound in a docker container using fedora:24, unittests ran fine. I suspect that swig 3.0.8 is somehow still getting used during the build. Here's my Dockerfile:
Here's the output: