Hi Jürgen,

On Sun, Jan 25, 2015 at 10:44:57PM +0100, Jürgen Eckert wrote:
> 
> No let’s switch to Pulseview. Using LLVM or GNU does not change a thing. 
> During the linking process on OS x iit fails:
> 
> Linking CXX executable pulseview
> Undefined symbols for architecture x86_64:
>   "Glib::Variant<std::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > > 
> Glib::VariantBase::cast_dynamic<Glib::Variant<std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > > >(Glib::VariantBase 
> const&)", referenced from:
>       pv::prop::binding::Binding::print_gvariant(Glib::VariantBase)     in 
> binding.cpp.o
>   "Glib::VariantType::VariantType(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&)", referenced from:
>       pv::prop::binding::Binding::print_gvariant(Glib::VariantBase)     in 
> binding.cpp.o
>   "Glib::ustring::ustring(std::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > const&)", referenced from:
>       pv::StoreSession::start()     in storesession.cpp.o
>   "Glib::Variant<std::basic_string<char, std::char_traits<char>, 
> std::allocator<char> > >::get() const", referenced from:
>       pv::prop::binding::Binding::print_gvariant(Glib::VariantBase)     in 
> binding.cpp.o
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
> make[2]: *** [pulseview] Error 1
> make[1]: *** [CMakeFiles/pulseview.dir/all] Error 2
> make: *** [all] Error 2

Please try this small correction, I think it may fix this:


Martin

diff --git a/pv/prop/binding/binding.cpp b/pv/prop/binding/binding.cpp
index 062ce66..9f4df43 100644
--- a/pv/prop/binding/binding.cpp
+++ b/pv/prop/binding/binding.cpp
@@ -81,7 +81,7 @@ QString Binding::print_gvariant(Glib::VariantBase gvar)
                s = QString::fromStdString("(null)");
        else if (gvar.is_of_type(Glib::VariantType("s")))
                s = QString::fromStdString(
-                       
Glib::VariantBase::cast_dynamic<Glib::Variant<std::string>>(
+                       
Glib::VariantBase::cast_dynamic<Glib::Variant<Glib::ustring>>(
                                gvar).get());
        else
                s = QString::fromStdString(gvar.print());

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to