Skip to content

./configure does not favour self-compiled dependecies #14959

Closed

Description

@hebasto

Steps to reproduce this issue:

  1. Clear minimal installation of Ubuntu 18.04.1
  2. Install requirements
sudo apt install build-essential libtool automake pkg-config cmake curl git
  1. Clone repository
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
  1. Build dependencies
pushd depends
make
popd

The final output of make:
copying packages: native_protobuf boost openssl libevent zeromq qrencode protobuf zlib qt expat dbus libxcb xcb_proto libXau xproto freetype fontconfig libX11 xextproto libXext xtrans bdb miniupnpc
to: /home/hebasto/bitcoin/depends/x86_64-pc-linux-gnu

  1. Build
./autogen.sh
./configure --prefix=$PWD/depends/x86_64-pc-linux-gnu
make

Note the using of the --prefix option. That is the only way to build successfully I've found.
./configure --help gives description confusing to me:

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]

The question ONE:
Why can't ./configure without any options find out self-compiled dependencies in the depends/ directory?
Is it intentional?

The question TWO:
What does --prefix do in ./configure --prefix=$PWD/depends/x86_64-pc-linux-gnu exactly?

Activity

  1. practicalswift commented on Apr 28, 2019

    @practicalswift
    Contributor

    FWIW you're not alone here: I found the use of --prefix (for anything beyond the ordinary meaning of installation destination) unintuitive too :-)

  2. hebasto commented on Jan 16, 2020

    @hebasto
    MemberAuthor

    Closing in favor of #16692 and #17934

  3. locked as resolved and limited conversation to collaborators on Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions