BitShares Forum

Main => Technical Support => Topic started by: pianisteg on March 24, 2016, 04:12:46 pm

Title: Ubuntu 14.04 link failed
Post by: pianisteg 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.
Title: Re: Ubuntu 14.04 link failed
Post by: abit 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
Title: Re: Ubuntu 14.04 link failed
Post by: pianisteg 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

Title: Re: Ubuntu 14.04 link failed
Post by: pc 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.
Title: Re: Ubuntu 14.04 link failed
Post by: pianisteg 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.
Title: Re: Ubuntu 14.04 link failed
Post by: pianisteg 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!
Title: Re: Ubuntu 14.04 link failed
Post by: abit 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 @xeroc know where is the document.
Title: Re: Ubuntu 14.04 link failed
Post by: pc on March 24, 2016, 09:22:29 pm

//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.)
Title: Re: Ubuntu 14.04 link failed
Post by: pc on March 24, 2016, 09:23:11 pm
https://github.com/bitshares/bitshares-2

Which version?
Title: Re: Ubuntu 14.04 link failed
Post by: xeroc 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