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




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