Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Building bitshares on fedora  (Read 351 times)

Offline randy-waterhouse

  • Newbie
  • *
  • Posts: 5
    • View Profile
Building bitshares on fedora
« on: January 31, 2015, 03:31:23 AM »

Anybody doing this?

Does it require and openssl with ECC secp256k1 curve support (i.e. the bitcoin curve)?

Seems like the cmake boost stuff is not looking in /usr/lib64 by default either.
« Last Edit: January 31, 2015, 11:47:44 AM by randy-waterhouse »

Offline pc

  • Hero Member
  • *****
  • Posts: 997
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: Building bitshares on fedora
« Reply #1 on: January 31, 2015, 09:17:05 AM »
I have a repository with Fedora builds (among others): https://build.opensuse.org/project/monitor/home:p_conrad:bts

You can use Fedora's system openssl libraries if you apply a small patch to the fc library. (Note that in my repo libfc is a separate build.)
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline jonny

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Building bitshares on fedora
« Reply #2 on: January 31, 2015, 09:24:36 AM »
I have a repository with Fedora builds (among others): https://build.opensuse.org/project/monitor/home:p_conrad:bts

You can use Fedora's system openssl libraries if you apply a small patch to the fc library. (Note that in my repo libfc is a separate build.)
Nice, I wanted to make a RPM too, I will try to rebuild your RPM on my Fedora 21 :)

Offline incarnis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Building bitshares on fedora
« Reply #3 on: March 12, 2015, 06:38:42 PM »
I have a repository with Fedora builds (among others): https://build.opensuse.org/project/monitor/home:p_conrad:bts

You can use Fedora's system openssl libraries if you apply a small patch to the fc library. (Note that in my repo libfc is a separate build.)

Hey pc, what specifically needs to be done to the fc library? I'm trying to build on Fedora 21 x86 and I'm pretty sure that's where I'm hung up.

Offline pc

  • Hero Member
  • *****
  • Posts: 997
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: Building bitshares on fedora
« Reply #4 on: March 12, 2015, 07:54:14 PM »
Openssl on Fedora contains ECC algorithms but not the standardized named curves. This patch adds the required curve: https://build.opensuse.org/package/view_file/home:p_conrad:bts/libfc/fc20-ecc.patch
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline vnz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Building bitshares on fedora
« Reply #5 on: March 26, 2015, 01:29:40 PM »
Can you give more specific instructions about building BitShares on Fedora? I have problems with cmake too - it can't find the boost libraries :( Also, there is no Fedora package for boost_unit_test_framework. Any help?

Offline pc

  • Hero Member
  • *****
  • Posts: 997
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: Building bitshares on fedora
« Reply #6 on: March 26, 2015, 04:30:19 PM »
Uh...

Supposing you have installed boost-devel, the reason why cmake complains is that Fedora (like openSUSE) has only dynamic boost libraries, but BitShares expects static libs. You work around that by replacing "ON" with "OFF" for the Boost*STATIC settings in CMakeLists.txt and libraries/fc/CMakeLists.txt . You also may have to insert '#define BOOST_TEST_DYN_LINK' in some test files.

The unit test framework is in the package boost-test, I believe. Installing boost-devel should pull in all required libraries.

Then you have to apply the ECC patch mentioned above in the libraries/fc directory.

If you're familiar with RPM spec files, take a look at the "BitShares" and "libfc" packages in my repo. Not all of what I'm doing there is strictly necessary or recommended, but it should give you some hints.
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

 

Google+