Author Topic: Building bitshares on fedora  (Read 2133 times)

0 Members and 1 Guest are viewing this topic.

Offline pc

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

Offline vnz

  • Newbie
  • *
  • Posts: 1
    • View Profile
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: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
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
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline incarnis

  • Newbie
  • *
  • Posts: 3
    • View Profile
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 jonny

  • Newbie
  • *
  • Posts: 13
    • View Profile
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 pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
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.)
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline randy-waterhouse

  • Newbie
  • *
  • Posts: 5
    • View Profile
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 »