On 2015-03-10 14:22, Uwe Hermann wrote:
> 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;
>>>                                  ^
>
>
>>> 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.
>
>

I've seen this problem on FreeBSD some time ago

At that point I tracked it down to being caused by the way the doxygen 
scans for its files. If the path for my sigrok src and build dirs did 
contain/follow a symbolic link - then doxygen seemed to treat it as two 
separate include paths.

You can easiily determine if that is your problem:

# cd /path/to/your/sigrok/build/dir
# pwd
# realpath .

if the output from "pwd" and "realpath" differs then you are following a 
symlink.

PS: the doxygen include paths have changes since i last ran into that 
problem - so it may/may not exist anymore

/Uffe

/Uffe





------------------------------------------------------------------------------
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