Hi,

I am attempting to build Pulseview in MacOS 10.12.5. When I do “$ make” I get 
an error:

[  2%] Building CXX object CMakeFiles/pulseview.dir/main.cpp.o
In file included from /Users/paulcrawford/pulseview/main.cpp:25:
/usr/local/Cellar/libsigrok/HEAD-64f628b/include/libsigrokcxx/libsigrokcxx.hpp:969:20:
 error: instantiation of variable 'sigrok::EnumValue<sigrok::LogLevel, 
sr_loglevel>::_values' required
      here, but no definition is available [-Werror,-Wundefined-var-template]
                const auto pos = _values.find(static_cast<Enum>(id));
                                 ^
/Users/paulcrawford/pulseview/main.cpp:118:45: note: in instantiation of member 
function 'sigrok::EnumValue<sigrok::LogLevel, sr_loglevel>::get' requested here
                        context->set_log_level(sigrok::LogLevel::get(loglevel));
                                                                 ^
/usr/local/Cellar/libsigrok/HEAD-64f628b/include/libsigrokcxx/libsigrokcxx.hpp:990:57:
 note: forward declaration of template entity is here
        static const std::map<const Enum, const Class * const> _values;
                                                               ^
/usr/local/Cellar/libsigrok/HEAD-64f628b/include/libsigrokcxx/libsigrokcxx.hpp:969:20:
 note: add an explicit instantiation declaration to suppress this warning if
      'sigrok::EnumValue<sigrok::LogLevel, sr_loglevel>::_values' is explicitly 
instantiated in another translation unit
                const auto pos = _values.find(static_cast<Enum>(id));
                                 ^
1 error generated.
make[2]: *** [CMakeFiles/pulseview.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/pulseview.dir/all] Error 2
make: *** [all] Error 2

Can anyone advise on how to correct this error.

Thanks for any help.

Paul Crawford
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to