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

0 Members and 1 Guest are viewing this topic.

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Ubuntu 14.04 link failed
« on: March 24, 2016, 04:12:46 pm »
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.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3950
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Ubuntu 14.04 link failed
« Reply #1 on: March 24, 2016, 05:00:44 pm »
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 »
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Ubuntu 14.04 link failed
« Reply #2 on: March 24, 2016, 05:11:41 pm »
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 pc

  • Hero Member
  • *****
  • Posts: 1526
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Ubuntu 14.04 link failed
« Reply #3 on: March 24, 2016, 05:21:28 pm »
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
Re: Ubuntu 14.04 link failed
« Reply #4 on: March 24, 2016, 05:24:50 pm »
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 pianisteg

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Ubuntu 14.04 link failed
« Reply #5 on: March 24, 2016, 06:38:18 pm »
https://github.com/cryptonomex/graphene/wiki/build-ubuntu

compiles well, now going to test :)

Next step — to compile Qt for desktop!

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3950
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Ubuntu 14.04 link failed
« Reply #6 on: March 24, 2016, 06:57:59 pm »
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 [member=120]xeroc[/member] know where is the document.
« Last Edit: March 24, 2016, 07:03:08 pm by abit »
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline pc

  • Hero Member
  • *****
  • Posts: 1526
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Ubuntu 14.04 link failed
« Reply #7 on: March 24, 2016, 09:22:29 pm »

//Update: I don't know how to compile GUI. Perhaps [member=120]xeroc[/member] 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 pc

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

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12900
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Ubuntu 14.04 link failed
« Reply #9 on: March 25, 2016, 07:15:29 pm »
Web wallet can be compiled as shown over here:
http://docs.bitshares.eu/testnet/6-webwallet.html
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH