BitShares Forum

Main => Technical Support => Topic started by: randy-waterhouse on January 31, 2015, 03:31:23 am

Title: Building bitshares on fedora
Post by: randy-waterhouse 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.
Title: Re: Building bitshares on fedora
Post by: pc 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.)
Title: Re: Building bitshares on fedora
Post by: jonny 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 :)
Title: Re: Building bitshares on fedora
Post by: incarnis 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.
Title: Re: Building bitshares on fedora
Post by: pc 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
Title: Re: Building bitshares on fedora
Post by: vnz 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?
Title: Re: Building bitshares on fedora
Post by: pc 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.