Hi, On Tue, Apr 14, 2015 at 06:11:31PM -0700, Alexandru Gagniuc wrote: > I was playing with building libsigrok with python bindings from master. > Needless to say, it was not straightforward. I'm wondering if the process can > me made more straightforward. > > Getting around "Warning: AX_CXX_COMPILE_STDCXX_11 macro is too old" was a bit > of a pain.
You need the latest autoconf-archive as per README, or you can manually get that file as per the FAQ that autogen.sh should have printed. Note that this is only required for git users, it will not be an issue for tarball users (no need for autoconf-archive etc). > Python2.7 was picked up instead of python3. Easy fix, but an extra manual > step, > and it would be nice if it tried to pick up python3 by default. The libsigrok Python bindings can be used with both, Python 2.x and Python 3.x, they work fine with either version (as per README). Which of those is the default probably doesn't matter much (you can also enforce either of them at ./configure-time as a user), but I personally wouldn't mind making Python 3 the default. > There was no check for python-numpy. I only found out I needed numpy when the > build failed. Yup, no check currently (it's mentioned in the README as requirement though). This is bug #533, patches for a portable proper check are welcome. http://sigrok.org/bugzilla/show_bug.cgi?id=533 > Setuptools was not detected. I had to manually had configure.ac to make it > ignore the check. It compiled fine after that; (not a patch): > - BINDINGS_PYTHON="no"; python_msg="Python setuptools module required" > + BINDINGS_PYTHON="yes"; python_msg="Python setuptools module required" That's strange, if you have setuptools for your respective Python version (2 or 3) that should usually be picked up correctly. Feel free to file a bug if this is reproducible for your setup, despite the correct package being installed. Uwe. -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel