语言

Menu
Sites
Language
Compile Boost Library for Tizen OS

I tried to compile boost library, but it is falied.

 

To use it in Tizen, do you how it should compile?

my compile environment : Windows 8, MinGW for Windows, 

Please reply.

 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

7 回复
wil smith
It would be easier to guide you, if you can explain, how you are integrating the library to your application and what errors you are getting...
Pierre Belin
I too can't get Boost to compile in my project. I am planning to use Boost::Signals2, which is header only, so I've copied the /boost directory from Boost 1.54 in my project's include path. While compiling, I get the following error : In file included from /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2.hpp:19: In file included from /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2/signal.hpp:21: In file included from /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2/connection.hpp:23: In file included from /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2/slot.hpp:15: In file included from /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind.hpp:22: /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:253:36: error: no viable overloaded operator[] for type 'boost::_bi::list0' unwrapper::unwrap(f, 0)(a[base_type::a1_]); ^ ~~~~~~~~~~~~~~ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind_template.hpp:20:27: note: in instantiation of function template specialization 'boost::_bi::list1 >::operator(), boost::_bi::list0>' requested here BOOST_BIND_RETURN l_(type(), f_, a, 0); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:153:33: note: in instantiation of member function 'boost::_bi::bind_t, boost::_bi::list1 > >::operator()' requested here BOOST_FUNCTION_RETURN((*f)(BOOST_FUNCTION_ARGS)); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:75:36: note: expanded from macro 'BOOST_FUNCTION_RETURN' # define BOOST_FUNCTION_RETURN(X) X ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:934:53: note: in instantiation of member function 'boost::detail::function::void_function_obj_invoker0, boost::_bi::list1 > >, void>::invoke' requested here { { &manager_type::manage }, &invoker_type::invoke }; ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:722:13: note: in instantiation of function template specialization 'boost::function0::assign_to, boost::_bi::list1 > > >' requested here this->assign_to(f); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:1069:5: note: in instantiation of function template specialization 'boost::function0::function0, boost::_bi::list1 > > >' requested here base_type(f) ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/function/function_template.hpp:1124:5: note: in instantiation of function template specialization 'boost::function::function, boost::_bi::list1 > > >' requested here self_type(f).swap(*this); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2/detail/slot_template.hpp:156:24: note: in instantiation of function template specialization 'boost::function::operator=, boost::_bi::list1 > > >' requested here _slot_function = detail::get_invocable_slot(f, detail::tag_type(f)); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/signals2/detail/slot_template.hpp:81:9: note: in instantiation of function template specialization 'boost::signals2::slot0 >::init_slot_function, boost::_bi::list1 > > >' requested here init_slot_function(f); ^ ../src/core/API/Prisma/GenreDownloader.cpp:21:37: note: in instantiation of function template specialization 'boost::signals2::slot0 >::slot0, boost::_bi::list1 > > >' requested here s->OnDownloadJSONCompleted.connect(boost::bind(&GenreDownloader::onGetGenresCompleted, _1)); ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:170:27: note: candidate template ignored: failed template argument deduction template T & operator[] (_bi::value & v) const { return v.get(); } ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:172:33: note: candidate template ignored: failed template argument deduction template T const & operator[] (_bi::value const & v) const { return v.get(); } ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:174:27: note: candidate template ignored: failed template argument deduction template T & operator[] (reference_wrapper const & v) const { return v.get(); } ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:176:76: note: candidate template ignored: failed template argument deduction template typename result_traits::type operator[] (bind_t & b) const { return b.eval(*this); } ^ /home/pierre/tizen/workspace/TeleLoisirs/lib/boost/bind/bind.hpp:178:76: note: candidate template ignored: failed template argument deduction template typename result_traits::type operator[] (bind_t const & b) const { return b.eval(*this); }
George Bond
Hello choi, Tizen already has boost library , it's 1.51 in latest release , but i thing nothing changed for Signals2 . It comes with latest SDK (2.2) or can be downloaded from official website. Try to use "native" library / Regards, George
정현 최

Can I get documents to use boost library ?

I can't find any paper on this.

Please help me to solve this issue.

George Bond

How about official page ? http://www.boost.org/doc/ . Just choose the version you need!

정현 최

Actually I'm finding the way to use boost library in Tizen. Are there any documents or resources related to boost library on Tizen ?

George Bond

Tizen OS already has boost libraries .It means that you shouldn't load them onto device . All you need is just to include headers in your project. If you build project with GBS you must prepare boost in your spec file to let GBS download boost for the environment . if you use SDK just download and put libraries to the proper folder . You can download them from here : http://download.tizen.org/releases/2.2.1/latest/ . 

Latest version that 2.2.1 uses is 1.51 . Of cource documentation stays the same , Tizen does nothing with libs.