Skip to content

[Bug]: It is recommended for you to run autogen before configuring freetype #22754

Description

@wqh17101

Bug summary

If i build matplotlib with the source code of freetype which is cloned by git, it will fail.

Code for reproduction

1. git clone freetype tag 2.10.4
2. mkdir `build` in matplotlib
3. copy freetype-2.10.4 to `build`
4. python setup.py bdist_wheel

Actual outcome

FreeType build system -- automatic system detection

The following settings are used:

  platform                    unix
  compiler                    gcc -pthread
  configuration directory     ./builds/unix
  configuration rules         ./builds/unix/unix.mk

If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.

Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (this needs Python >= 3.5).

cd builds/unix; \
        ./configure  '--with-zlib=no' '--with-bzip2=no' '--with-png=no' '--with-harfbuzz=no' '--enable-static' '--disable-shared' '--host=x86_64-pc-linux-gnu'
/bin/sh: line 1: ./configure: No such file or directory
make: *** [setup] Error 127

Expected outcome

build successfully.

Additional information

i modify the setupext.py with run sh autogen.sh before configure , it worked.

Operating system

Linux

Matplotlib Version

3.5.1

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

from source (.tar.gz)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions