Hi,

On Sat, Mar 07, 2015 at 12:16:25PM +0700, Jean-Luc Aufranc wrote:
> On 03/06/2015 09:51 PM, Jean-Luc Aufranc wrote:
> > I'm trying to build pulseview in Ubuntu 14.04.
> >
> > Now I'm at the stage where I need to build libsigrok.
> > If C++ and Python bindings are disabled the build goes through, but if 
> > I install the required dependencies, and they are enabled as shown in 
> > configure output (http://pastebin.com/hSjDy3VH), the build will fail 
> > with lots of redefinition or redeclaration errors such as:
> >
> > In file included from 
> > ./bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp:1030:0,
> >                  from bindings/cxx/classes.cpp:20:
> > ./bindings/cxx/include/libsigrokcxx/enums.hpp:21:32: error: 
> > redeclaration of 'const sigrok::LogLevel* const sigrok::LogLevel::NONE'
> >   static const LogLevel * const NONE;
> >                                 ^

Hm, interesting, this was reported as an issue for Mac OS X a while
back, but I wasn't able to reproduce on an older Mac OS X here.

http://sigrok.org/bugzilla/show_bug.cgi?id=547

If you're also seeing this on Ubuntu that means it's not Mac-specific
then. Can you list which package versions you've used (and which
toolchain)? The following versions might be interesting:

 - gcc/g++ or clang/clang++
 - doxygen
 - python


> > enums.hpp is autogenerated, and I'm not quite sure if I have a config 
> > issue on my machine, or there's a bug in enum.py script. Thanks.
> Sorry, I'm not sure what happened.
> I've noticed the duplicate were in doxy/xml/index/xml
> So I deleted the complete doxy directory, and the build could complete.

OK, but the bug is indeed happening then nonetheless. I'll try to
reproduce this on a Ubuntu system. Bug #547 has a patch attached, maybe
that's indeed needed then after all. I'm curious why it works on
some/most systems though and only shows that behaviour on a few of them.

 
> Pulseview is now running, but only listing a few devices in "Connect to 
> Device", and I have no UNI-T DMM at all.

Please see README.devices in the libsigrok repository. For UNI-T DMMs
you need to specify the correct cable and/or serial port in sigrok-cli.

PulseView doesn't support DMMs yet, so for now you can use sigrok-cli
only. There's also sigrok-meter which is a PyQt-based GUI for DMMs and
other slowly-updating meters, but that's in alpha-stage at the moment
and needs more work (also doesn't show graphs, yet).


Uwe.
-- 
http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to