conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
960 stars 1.77k forks source link

[package] sdl_ttf/2.0.18: Attempting to install package leads to invalid cmake command #13975

Open iwillreku3206 opened 2 years ago

iwillreku3206 commented 2 years ago

Description

Attempting to install sdl_ttf/2.0.18 (or even sdl_ttf/2.0.15) causes an error since it runs a cmake command with generator name Unix rather than Unix Makefiles

Package and Environment Details

Conan profile

[settings] os=Macos os_build=Macos arch=armv8 arch_build=armv8 compiler=apple-clang compiler.version=14 compiler.libcxx=libc++ build_type=Release [options] [conf] [build_requires] [env]

Steps to reproduce

Create conanfile.txt with the ff content:

[requires]
sdl/2.24.0
sdl_image/2.0.5
sdl_ttf/2.0.18@#6db1c8c6eca2dcd52c5507f50b885d84

libpng/1.6.38
zlib/1.2.13

[generators]
cmake

Run the ff. commands:

mkdir build && cd build
conan install .. --build=missing

Logs

Click to expand log ``` CMake Error: Could not create named generator Unix Generators Green Hills MULTI = Generates Green Hills MULTI files (experimental, work-in-progress). * Unix Makefiles = Generates standard UNIX makefiles. Ninja = Generates build.ninja files. Ninja Multi-Config = Generates build-.ninja files. Watcom WMake = Generates Watcom WMake makefiles. CodeBlocks - Ninja = Generates CodeBlocks project files. CodeBlocks - Unix Makefiles = Generates CodeBlocks project files. CodeLite - Ninja = Generates CodeLite project files. CodeLite - Unix Makefiles = Generates CodeLite project files. Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files. Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files. Kate - Ninja = Generates Kate project files. Kate - Unix Makefiles = Generates Kate project files. Sublime Text 2 - Ninja = Generates Sublime Text 2 project files. Sublime Text 2 - Unix Makefiles = Generates Sublime Text 2 project files. sdl/2.24.0: sdl/2.24.0: ERROR: Package 'd122d97841f9658ff6482da1eeed4cf65c4eff7b' build failed sdl/2.24.0: WARN: Build folder /home/rek/.conan/data/sdl/2.24.0/_/_/build/d122d97841f9658ff6482da1eeed4cf65c4eff7b ERROR: sdl/2.24.0: Error in build() method, line 370 cmake = self._configure_cmake() while calling '_configure_cmake', line 363 cmake.configure(build_dir=self._build_subfolder) ConanException: Error 1 while executing cd 'build_subfolder' && cmake -G "Unix" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="12" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/home/rek/.conan/data/sdl/2.24.0/_/_/package/d122d97841f9658ff6482da1eeed4cf65c4eff7b" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DSDL2_DISABLE_INSTALL="False" -DCONAN_INSTALL_FOLDER="/home/rek/.conan/data/sdl/2.24.0/_/_/build/d122d97841f9658ff6482da1eeed4cf65c4eff7b" -DSDL_STATIC_PIC="True" -DSDL_SHARED="False" -DSDL_STATIC="True" -DSDL_OPENGL="True" -DSDL_OPENGLES="True" -DSDL_VULKAN="True" -DSDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS="1" -DSDL_ALSA="True" -DSDL_ALSA_SHARED="" -DHAVE_ASOUNDLIB_H="True" -DHAVE_LIBASOUND="True" -DSDL_JACK="False" -DSDL_ESD="False" -DSDL_PULSEAUDIO="True" -DSDL_PULSEAUDIO_SHARED="" -DSDL_SNDIO="False" -DSDL_NAS="True" -DSDL_NAS_SHARED="False" -DSDL_X11="True" -DHAVE_XEXT_H="True" -DSDL_X11_XCURSOR="True" -DHAVE_XCURSOR_H="True" -DSDL_X11_XINERAMA="True" -DHAVE_XINERAMA_H="True" -DSDL_X11_XINPUT="True" -DHAVE_XINPUT_H="True" -DSDL_X11_XRANDR="True" -DHAVE_XRANDR_H="True" -DSDL_X11_XSCRNSAVER="True" -DHAVE_XSS_H="True" -DSDL_X11_XSHAPE="True" -DHAVE_XSHAPE_H="True" -DSDL_X11_XVM="True" -DHAVE_XF86VM_H="True" -DSDL_WAYLAND="True" -DSDL_WAYLAND_SHARED="False" -DSDL_DIRECTFB="False" -DSDL_RPI="False" -DHAVE_LIBUNWIND_H="True" -DSDL2_DISABLE_SDL2MAIN="False" -DEXTRA_LDFLAGS="-lXau -L/home/rek/.conan/data/wayland/1.21.0/_/_/package/ec57519fed07a41a80fb865b7a56260871c02f45/lib" -DCMAKE_REQUIRED_INCLUDES="/home/rek/.conan/data/nas/1.9.4/_/_/package/a29ef67da03ad31b09943db2ec70fa403742fff3/include" -Wno-dev '/home/rek/.conan/data/sdl/2.24.0/_/_/build/d122d97841f9658ff6482da1eeed4cf65c4eff7b' ```
SpaceIm commented 2 years ago

The profile you show is incorrect, appleclang on Arch Linux?

It's the log of sdl recipe, so issue is not about sdl_ttf but sdl.

Anyway, unlikely a recipe issue. It comes either from a mistake in your conan settings (maybe CONAN_CMAKE_GENERATOR env var or cmake_generator in conan.conf forced to this Unix value) or a conan client bug.