Title: Bitcoin Core doesn't compile Post by: BlueBoat on December 20, 2022, 10:12:42 AM Hi all,
I'm trying to compile Bitcoin Core but I'm getting an error message. After the following commands, Code: $./autogen.sh I got the the following error message : Quote make: *** No targets specified and no makefile found. Stop. A Makefile.am exists in the main folder so I don't see where come from. Title: Re: Bitcoin Core doesn't compile Post by: Edwardard on December 20, 2022, 11:07:34 AM My guess is you didn't install build dependencies like autoconf, autoreconf, and automake.
Follow this guide and retry: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md This should solve the issue, hopefully! Title: Re: Bitcoin Core doesn't compile Post by: BlueBoat on December 20, 2022, 11:22:28 AM My guess is you didn't install build dependencies like autoconf, autoreconf, and automake. Follow this guide and retry: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md This should solve the issue, hopefully! They were installed. However, I just tried to install them again after your post and below the print of the messages received (confirming that the depencies were already installed) : Code: user1@UBUNTU-DESKTOP:~/bitcoin$ sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 I'm trying to install Bitcoin Core 22.0. Title: Re: Bitcoin Core doesn't compile Post by: BlueBoat on December 20, 2022, 11:38:33 AM Did you checkout to specific commit/branch which represent source code of stable Bitcoin Core version before compile? I'm trying to reproduce a bug I was having using Bitcoin Core 22.0.It seems that the issue comes from GCC Autotools. I would like to understand how this last works. I got this issue in Bitcoin Core 22.0 compile but not in Bitcoin Core 24.0.1. Title: Re: Bitcoin Core doesn't compile Post by: BlueBoat on December 20, 2022, 12:27:08 PM Did you checkout to specific commit/branch which represent source code of stable Bitcoin Core version before compile? I'm trying to reproduce a bug I was having using Bitcoin Core 22.0.I don't know your goal, but why don't you just update to Bitcoin Core 24.0.1? It seems that the issue comes from GCC Autotools. Do you mean version of your GCC autotools on your Ubuntu device? Anyway i tried compile Bitcoin Core 22.0 and 24.0.1 on Debian 11 and doesn't see error message you mentioned when you create this thread. I use Ubuntu 20.4 for Windows. I just notice you installed dependency based on 24.0.1 compile guide, you should check compile guide for 22.0 instead at https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md (https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md). According to the compile guides, these dependencies are the same than for Bitcoin Core 24 and in fact they are included in Bitcoin Core 24 depencies. Bitcoin Core 24 depencies have in addition User-Space, Statically Defined Tracing (USDT) dependencies and GUI.Title: Re: Bitcoin Core doesn't compile Post by: BlueBoat on December 20, 2022, 01:08:58 PM --snip-- I'm trying to understand Bitcoin Core and started reading the code on Bitcoin Core 22.0. I see. You might want to check https://doxygen.bitcoincore.org/ (https://doxygen.bitcoincore.org/) since it's recommended by few Bitcoin Core contributor. I just notice you installed dependency based on 24.0.1 compile guide, you should check compile guide for 22.0 instead at https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md (https://github.com/bitcoin/bitcoin/blob/v22.0/doc/build-unix.md). According to the compile guides, these dependencies are the same than for Bitcoin Core 24 and in fact they are included in Bitcoin Core 24 depencies. Bitcoin Core 24 depencies have in addition User-Space, Statically Defined Tracing (USDT) dependencies and GUI.There are few difference though. I didn't compare everything, but here's an example Now, you can either build from self-compiled depends or install the required dependencies: Code: sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev Now, you can either build from self-compiled depends or install the required dependencies: Code: sudo apt-get install libevent-dev libboost-dev Take notice guide for Bitcoin Core 22.0 include 3 additional development file for Boost C++. Earlier when i tried to compile Bitcoin Core 22.0 without installing those 3 development file, i hit error when running command ./configure. My real issue is based on the fact that I like to have a full understanding of the source code I use. However, while I installed Bitcoin Core 24.0 without issue it still important for me to understand the migration process between the different Bitcoin Core versions. Title: Re: Bitcoin Core doesn't compile Post by: BlueBoat on December 21, 2022, 11:07:25 AM Although if you have an application which depend on Bitcoin Core, you need to check whether RPC call you used change it's behavior, deprecated or removed on newer version. Yes, I'm presently trying to developing an application using Bitcoin Core, etc. Truthfully, I started looking into Bitcoin Core code just about a month ago. Also, I have to define a clear process in order to do a backup, etc. |