Author Topic: Ubuntu 14.04 link failed  (Read 2672 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano

//Update: I don't know how to compile GUI. Perhaps @xeroc know where is the document.

https://github.com/cryptonomex/graphene/issues/560#issuecomment-181565576

(I never managed to build it myself, though.)
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
https://github.com/cryptonomex/graphene/wiki/build-ubuntu

compiles well, now going to test :)

Next step — to compile Qt for desktop!
Just a note: the QT part in bitshare-2 repo is obsoleted.
To compile the GUI, you need to go with this repo: https://github.com/bitshares/bitshares-2-ui

//Update: I don't know how to compile GUI. Perhaps @xeroc know where is the document.
« Last Edit: March 24, 2016, 07:03:08 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Quote
Which repo and version did you build from? The above error occurs when building with an old version of the libraries/fc submodule.

https://github.com/bitshares/bitshares-2
https://github.com/cryptonomex/fc.git

I follow official documentation.

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
I tried to compile current BTS sources, but

1. I had troubles with boost (with SSL3), but I have fixed boost sources with hack.
2. it failed to link embed_genesis with the following error:

Code: [Select]
Linking CXX executable embed_genesis
../chain/libgraphene_chain.a(types.cpp.o): In function `graphene::chain::extended_public_key_type::operator fc::ecc::extended_public_key() const':
types.cpp:(.text+0x595): undefined reference to `fc::ecc::extended_public_key::deserialize(fc::array<char, 78ul> const&)'
../chain/libgraphene_chain.a(types.cpp.o): In function `graphene::chain::extended_private_key_type::operator fc::ecc::extended_private_key() const':
types.cpp:(.text+0x9f5): undefined reference to `fc::ecc::extended_private_key::deserialize(fc::array<char, 78ul> const&)'

I did subrepos updates! (git submodule update --init --recursive)

Which repo and version did you build from? The above error occurs when building with an old version of the libraries/fc submodule.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Detailed steps please? lib versions?

Quote
1. I had troubles with boost (with SSL3), but I have fixed boost sources with hack.
No need to hack.. try libs/dependencies with recommended versions.

I use recommended version:
910c8c022a33ccec7f088bd65d4f14b466588dda94ba2124e78b8c57db264967  boost_1_57_0.tar.bz2


Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Detailed steps please? lib versions?

Quote
1. I had troubles with boost (with SSL3), but I have fixed boost sources with hack.
No need to hack.. try libs/dependencies with recommended versions.

Afaik it will be smooth if you follow this document (ignore the QT part): https://github.com/cryptonomex/graphene/wiki/build-ubuntu
« Last Edit: March 24, 2016, 05:04:24 pm by abit »
BitShares committee member: abit
BitShares witness: in.abit

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hi everyone! I'm new to BTS, and I want to compile it from sources. :)

I tried to compile current BTS sources, but

1. I had troubles with boost (with SSL3), but I have fixed boost sources with hack.
2. it failed to link embed_genesis with the following error:

Code: [Select]
Linking CXX executable embed_genesis
../chain/libgraphene_chain.a(types.cpp.o): In function `graphene::chain::extended_public_key_type::operator fc::ecc::extended_public_key() const':
types.cpp:(.text+0x595): undefined reference to `fc::ecc::extended_public_key::deserialize(fc::array<char, 78ul> const&)'
../chain/libgraphene_chain.a(types.cpp.o): In function `graphene::chain::extended_private_key_type::operator fc::ecc::extended_private_key() const':
types.cpp:(.text+0x9f5): undefined reference to `fc::ecc::extended_private_key::deserialize(fc::array<char, 78ul> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [libraries/egenesis/embed_genesis] Error 1
make[1]: *** [libraries/egenesis/CMakeFiles/embed_genesis.dir/all] Error 2
make: *** [all] Error 2

I did subrepos updates! (git submodule update --init --recursive)

Everything compiles well, but linker fails.

I tried to grep sources for implementation of both deserialize() static methods, but there is nothing in whole repo!

Looks like someone forgot to commit.