Author Topic: How to build light_client from source?  (Read 1189 times)

0 Members and 1 Guest are viewing this topic.

Offline 麥可貓

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
I tried the following steps:

Code: [Select]
git clone https://github.com/bitshares/bitshares-2
cd bitshares-2
VER=`git tag | tail -n1` && git checkout $VER
git submodule update --init --recursive
cmake  -DCMAKE_BUILD_TYPE=Debug -DBUILD_QT_GUI=ON  ./CMakeLists.txt
make

which succesfully finished ($? = 0)
but did not give me light_client

and i found that "add_subdirectory(light_client)" in CMakeLists.txt under programs folder was commented out
so I added it back, compiled again,
but it failed with the following message:
Code: [Select]
/data2/local/src/bitshares-2/programs/light_client/ChainDataModel.cpp:50:17: error: no member named 'subscribe_to_objects' in 'fc::vtable<graphene::app::database_api, fc::identity_member>'
      m_db_api->subscribe_to_objects([this](const variant& v) {
      ~~~~~~~~  ^
/data2/local/src/bitshares-2/programs/light_client/ChainDataModel.cpp:55:17: error: no member named 'subscribe_to_objects' in 'fc::vtable<graphene::app::database_api, fc::identity_member>'
      m_db_api->subscribe_to_objects([this](const variant& d) {
      ~~~~~~~~  ^
/data2/local/src/bitshares-2/programs/light_client/ChainDataModel.cpp:195:21: error: no matching function for call to object of type 'decltype(identity_member::functor((graphene::app::database_api *)nullptr,
      &graphene::app::database_api::get_full_accounts))' (aka 'function<std::map<std::basic_string<char>, graphene::app::full_account, std::less<std::basic_string<char> >, std::allocator<std::pair<const
      std::basic_string<char>, graphene::app::full_account> > > (const std::vector<std::basic_string<char>, std::allocator<std::basic_string<char> > > &, bool)>')
      auto result = m_db_api->get_full_accounts([this](const fc::variant& v) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~


any help please?
PTS: PmRVDPymZqSAZEXauHZSewrUrE66af7epT
BTSX: michaelcat
Delegate Team: x1.sun  x2.sun