Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: danlewis on May 18, 2016, 05:09:59 PM



Title: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: danlewis on May 18, 2016, 05:09:59 PM
Version and OS as stated in the subject.

Issue #1 - Berkeley 4.8 is installed in addition to a later version.  The includes for 4.8 are in /usr/include/libdb4.  Try as I might I cannot determine how to make Bitcoin Core find v 4.8 and am forced to use the --with-incompatible-bdb switch.

Issue #2 - WARNING: LRELEASE not found; bitcoin-qt frontend will not be built.  However, lrelease IS installed:

                  [root@myhost Download]# rpm -ql qt-devel | grep lrelease
                  /usr/bin/lrelease-qt4
                  /usr/lib64/qt4/bin/lrelease
                  /usr/lib64/qt4/bin/lrelease-qt4

Suggestions (even if to file a bug report) are appreciated.

Thanks.


Title: Re: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: jonnybravo0311 on May 18, 2016, 05:56:00 PM
I'm going to assume you downloaded the bitcoin core source to /home/user/bitcoin0.12.1, your db4.8 includes are at /usr/include/db48 and your db4.8 libs are at /usr/lib/db48.  As such, you would execute the following:

Code:
cd /home/user/bitcoin0.12.1
./autogen.sh
./configure LDFLAGS="-L/usr/lib/db48" CPPFLAGS="-I/usr/include/db48"
make

As to your second issue, I don't typically build with QT support, sorry.

Hope this helps.


Title: Re: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: danlewis on May 18, 2016, 07:27:21 PM
My paths are different, but after specifying:

./configure CPPFLAGS="-I/usr/include/libdb4"

I still get:

checking for Berkeley DB C++ headers... /usr/include/libdb/
configure: error: Found Berkeley DB other than 4.8, required for portable wallet
s (--with-incompatible-bdb to ignore or --disable-wallet to disable wallet funct
ionality)

Note that the -I seems to have had no effect on where the script checked for includes.

I also verified that in /usr/include/libdb4 the headers are for v4.8.


Title: Re: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: jonnybravo0311 on May 19, 2016, 12:07:06 AM
Then it's likely your alternate Berkeley DB is being picked up first in the search for appropriate headers.  Try renaming the other include/lib directories to something the search won't pick up.


Title: Re: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: danlewis on May 19, 2016, 06:30:20 PM
You are correct, a rename to get it out of the way allowed the BDB 4.8 installation to be found.  Thanks for the suggestion.

I solved the Qt issue by installing the FC23 qt5-qttools-devel package.

It would be nice if the developers would allow for a simpler way to override the default BDB when it is not 4.8 but multiple versions are installed.

Cheers!


Title: Re: Bitcoin Core 0.12.1 on FC23 x86_64 build issues
Post by: jonnybravo0311 on May 19, 2016, 06:39:24 PM
Glad to have helped :)