python - compiling libtorrent Rasterbar for mavericks -


i compiled , installed boost source using

$pwd

/downloads/boost_1_58_0

./b2 threading=multi link=static runtime-link=static cxxflags="-stdlib=libstdc++" linkflags="-stdlib=libstdc++"

and got message after build completed,

the boost c++ libraries built!

the following directory should added compiler include paths:

/downloads/boost_1_58_0 

the following directory should added linker library paths:

/downloads/boost_1_58_0/stage/lib 

now trying install lib torrent's python pending using sudo pip install .

i got error message b2: command not found since knew b2 command in location build boost, updated setup.py specific path,

but still when try sudo pip install . python binding of lib torrent below message.

complete output command python setup.py egg_info:     unable load boost.build: not find "boost-build.jam"     ---------------------------------------------------------------     boost_root must set, either in environment, or     on command-line -sboost_root=..., root     of boost installation.      attempted search /private/tmp/pip-owjwyj-build root     @ /downloads/share/boost-build     , in these directories boost_build_path , boost_root: /usr/share/boost-build.     please consult documentation @ 'http://www.boost.org'.     /downloads/boost_1_58_0/b2 boost=source link=static geoip=static boost-link=static release optimization=space stage_module --abbreviate-paths -j4     build failed      ----------------------------------------     command "python setup.py egg_info" failed error code 1 in /tmp/pip-owjwyj-build 

after following steps mentioned in first answer tried run make gave following error:

in file included ../include/libtorrent/torrent_handle.hpp:55: ../include/libtorrent/storage.hpp:346:3: error: no template named 'scoped_ptr'       in namespace 'boost'; did mean 'boost::asio::detail::scoped_ptr'?                 boost::scoped_ptr<storage_interface> m_storage;                 ^~~~~~~~~~~~~~~~~                 boost::asio::detail::scoped_ptr /opt/local/include/boost/asio/detail/scoped_ptr.hpp:27:7: note:       'boost::asio::detail::scoped_ptr' declared here class scoped_ptr       ^ in file included piece_picker.cpp:41: in file included ../include/libtorrent/aux_/session_impl.hpp:66: in file included ../include/libtorrent/torrent_handle.hpp:55: ../include/libtorrent/storage.hpp:279:53: error: no viable overloaded       'operator->'                 error_code const& error() const { return m_storage->error(); }                                                          ~~~~~~~~~^ /opt/local/include/boost/asio/detail/scoped_ptr.hpp:49:6: note: candidate       function not viable: 'this' argument has type 'const       boost::scoped_ptr<storage_interface>', method not marked const   t* operator->()      ^ in file included piece_picker.cpp:41: in file included ../include/libtorrent/aux_/session_impl.hpp:66: in file included ../include/libtorrent/torrent_handle.hpp:55: ../include/libtorrent/storage.hpp:280:59: error: no viable overloaded       'operator->'   ...std::string const& error_file() const { return m_storage->error_file(); }                                                     ~~~~~~~~~^ /opt/local/include/boost/asio/detail/scoped_ptr.hpp:49:6: note: candidate       function not viable: 'this' argument has type 'const       boost::scoped_ptr<storage_interface>', method not marked const   t* operator->()      ^ in file included piece_picker.cpp:41: ../include/libtorrent/aux_/session_impl.hpp:624:4: error: no template named       'scoped_ptr' in namespace 'boost'; did mean       'boost::asio::detail::scoped_ptr'?                         boost::scoped_ptr<boost::thread> m_thread;                         ^~~~~~~~~~~~~~~~~                         boost::asio::detail::scoped_ptr /opt/local/include/boost/asio/detail/scoped_ptr.hpp:27:7: note:       'boost::asio::detail::scoped_ptr' declared here class scoped_ptr       ^ 

since don't seem mind using boost-build build, simplest way to:

export boost_root=/downloads/boost_1_58_0 export boost_build_path=$boost_root/tools/build export path=$path:$boost_build_path/src/engine/bin.macosxx86_64 echo "using darwin ;" >~/user-config.jam  cd libtorrent/bindings/python b2 boost=source 

the first 4 lines installing boost-build (b2). it's assuming output directory when built b2 bin.macosxx86_64.

that build libtorrent python module, won't install though.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -