Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] freetype not building on macOS with "ERROR: Could not detect Ninja v1.8.2 or newer" #16968

Closed
1 task done
saschasc opened this issue Sep 10, 2024 · 1 comment
Closed
1 task done

Comments

@saschasc
Copy link

What is your question?

Since I am not sure if this is my bad or if it is really an issue I created a question first.

I have the same issue on macOS Sonoma (tested with x64 and Apple Silicon) and different versions of compilers (e.g. clang 16.0.6 and 18.1.8).

Not sure if it is related to this issue here?
ninja-build/ninja#2212

And how could I overwrite the build-requirement to a newer version of ninja?

Any help is very much appreciated!

freetype/2.13.2: Applying build-requirement: meson/1.3.2
freetype/2.13.2: Applying build-requirement: pkgconf/2.1.0
freetype/2.13.2: Applying build-requirement: ninja/1.11.1
freetype/2.13.2: WARN: Build folder is dirty, removing it: /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79
freetype/2.13.2: Copying sources to build folder
freetype/2.13.2: Building your package in /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79
freetype/2.13.2: Generator txt created conanbuildinfo.txt
freetype/2.13.2: Calling generate()
freetype/2.13.2: Aggregating env generators
freetype/2.13.2: Calling build()
freetype/2.13.2: Apply patch (portability): meson: Use the standard dependency mechanism to find bzip2
freetype/2.13.2: Meson configure cmd: meson setup --native-file 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug/conan/conan_meson_native.ini" 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug" 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/src" --prefix=/
DEPRECATION: "pkgconfig" entry is deprecated and should be replaced by "pkg-config"
The Meson build system
Version: 1.3.2
Source dir: /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/src
Build dir: /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug
Build type: native build
Project name: freetype2
Project version: 2.13.2
C compiler for the host machine: gcc (gcc 14.2.0 "gcc (Homebrew GCC 14.2.0) 14.2.0")
C linker for the host machine: gcc ld64 1053.12
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/local/bin/python3)
Has header "unistd.h" : YES
Has header "fcntl.h" : YES
Has header "sys/mman.h" : YES
Found pkg-config: YES (/Users/user/.conan/data/pkgconf/2.1.0/_/_/package/907cb07dbeb8f7bacd51a5119560f14986d21b20/bin/pkgconf) 2.1.0
Run-time dependency zlib found: YES 1.3.1
Run-time dependency bzip2 found: YES 1.0.8
Run-time dependency libpng found: YES 1.6.40
Dependency harfbuzz skipped: feature harfbuzz disabled
Dependency libbrotlidec skipped: feature brotli disabled
Build targets in project: 5

freetype2 2.13.2

   Operating System
     OS          : darwin

   Used Libraries
     Zlib        : system
     Bzip2       : yes
     Png         : yes
     Harfbuzz    : no
     Brotli      : no

   User defined options
     Native files: /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug/conan/conan_meson_native.ini
     prefix      : /


ERROR: Could not detect Ninja v1.8.2 or newer

A full log can be found at 
/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug/meson-logs/meson-log.txt
freetype/2.13.2:
freetype/2.13.2: ERROR: Package 'eacfa3bffb280be7faabec2ea5ae429b24f8ed79' build failed
freetype/2.13.2: WARN: Build folder /Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug
ERROR: freetype/2.13.2: Error in build() method, line 112
     meson.configure()
     ConanException: Error 1 while executing meson setup --native-file 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug/conan/conan_meson_native.ini" 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/build-debug" 
"/Users/user/.conan/data/freetype/2.13.2/_/_/build/eacfa3bffb280be7faabec2ea5ae429b24f8ed79/src" --prefix=/
CMake Error at external/cmake-general/cmake-general/internal/cmake/ConanInstall.cmake:27 (execute_process):
   execute_process failed command indexes:

     1: "Child return code: 1"



CMake Error at external/cmake-general/cmake-general/Conan.cmake:261 (execute_process):
   execute_process failed command indexes:

     1: "Child return code: 1"

Call Stack (most recent call first):
   external/cmake-general/cmake-general/Conan.cmake:98 (cg_conan_install)
   CMakeLists.txt:211 (cg_setup_conan)


-- Configuring incomplete, errors occurred!

[Failed to reload]

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@saschasc
Copy link
Author

Moved to conan-center-index/issues:
conan-io/conan-center-index#25220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant