At Tue, 09 Dec 2014 10:56:51 +0100,
Uffe Jakobsen wrote:
> 
> 
> 
> On 2014-12-09 00:59, Uffe Jakobsen wrote:
> >
> > I'm trying to build pulseview from trunk - but if fails with error:
> > incomplete type ‘sigrok::Context’
> >
> > I've double checked to make sure that I did not make an error - but the
> > (sigrok::)Context simply is not there as far as i can see - it is only
> > forward decl'ed...
> >
> > I've tried compile on ArchLinux/gcc-4.9.2 and FreeBSD/clang - same results
> >
> > Full output:
> >
> > Scanning dependencies of target pulseview
> > make[3]: Leaving directory '/sigrok_trunk_build/pulseview.git'
> > make[3]: Entering directory '/sigrok_trunk_build/pulseview.git'
> > [ 30%] Building CXX object CMakeFiles/pulseview.dir/main.cpp.o
> > /sigrok_trunk_build/pulseview.git/main.cpp: In function ‘int main(int,
> > char**)’:
> > /sigrok_trunk_build/pulseview.git/main.cpp:96:11: error: invalid use of
> > incomplete type ‘class sigrok::Context’
> >       context->set_log_level(sigrok::LogLevel::get(loglevel));
> >              ^
> > In file included from /sigrok_trunk_build/pulseview.git/main.cpp:37:0:
> > /sigrok_trunk_build/pulseview.git/pv/devicemanager.hpp:35:8: error:
> > forward declaration of ‘class sigrok::Context’
> >     class Context;
> >           ^
> > /sigrok_trunk_build/pulseview.git/main.cpp:96:35: error:
> > ‘sigrok::LogLevel’ has not been declared
> >       context->set_log_level(sigrok::LogLevel::get(loglevel));
> >                                      ^
> > /sigrok_trunk_build/pulseview.git/main.cpp:124:12: error: incomplete
> > type ‘sigrok::Context’ used in nested name specifier
> >     context = sigrok::Context::create();
> >               ^
> > CMakeFiles/pulseview.dir/build.make:297: recipe for target
> > 'CMakeFiles/pulseview.dir/main.cpp.o' failed
> > make[3]: *** [CMakeFiles/pulseview.dir/main.cpp.o] Error 1
> > make[3]: Leaving directory '/sigrok_trunk_build/pulseview.git'
> >
> 
> Follow-up:
> 
> The above problem seems to be due to the fact that cxx-bindings for 
> libsigrok have failed even though --enable-cxx was specified
> 
> Just saw another post to this list reporting related problem: 
> "AX_CXX_COMPILE_STDCXX_11 macro is too old"
> 
> I'm digging further down...
> 
> /Uffe
> 

in relation with the 'related problem', today I have cloned
ax_cxx_compile_stdcxx_11.m4 from git into a local directory and in
libsigrok/autogen.sh I have used ACLOCAL_DIR to point to that directory. Now I
can see bindings being generated and libsigrok, libsigrokdecode and pulseview
from git all build successfully for me (ubuntu 14.04, 64 bits).

However, pulseview seems to be able only to open sr files. The ones I have tried
are from sigrok-dumps. Using sigrok-cli I can convert them to vcd or use my own
ones, and pulseview fails to open them with a 'generic/unspecified error'. Same
happens when I try my own csv files.

Just a status report,
 Rodrigo

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to