Open ChadHartman opened 2 hours ago
And with this patch?
--- meson.build.orig 2024-09-24 20:26:33.747051168 +0200
+++ meson.build 2024-09-24 20:26:43.237223687 +0200
@@ -848,7 +848,7 @@
)
)
-cdata.set10('SDL_INPUT_LINUXEV',
+cdata.set('SDL_INPUT_LINUXEV',
cc.compiles('#include <linux/input.h> #ifndef EVIOCGNAME #error EVIOCGNAME() ioctl not available #endif \ int main(int argc, char** argv) {}',
name : 'input events test'
)
Editing subprojects/SDL2-2.30.6/meson.build
cdata.set10('SDL_INPUT_LINUXEV',
to
cdata.set('SDL_INPUT_LINUXEV',
resulted in the error
../subprojects/SDL2-2.30.6/src/core/meson.build:35:44: ERROR: The `==` operator of bool does not accept objects of type int (1)
$ meson compile
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/local/bin/ninja
[0/1] Regenerating build files.
The Meson build system
Version: 1.1.0
Source dir: <omitted>/temp
Build dir: <omitted>/temp/builddir
Build type: native build
Project name: app
Project version: undefined
C++ compiler for the host machine: c++ (clang 14.0.3 "Apple clang version 14.0.3 (clang-1403.0.22.14.1)")
C++ linker for the host machine: c++ ld64 857.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/local/bin/pkg-config (0.29.2)
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig, config-tool and framework)
Looking for a fallback subproject for the dependency sdl2
Executing subproject sdl2
sdl2| Project name: sdl2
sdl2| Project version: 2.30.6
sdl2| C compiler for the host machine: cc (clang 14.0.3 "Apple clang version 14.0.3 (clang-1403.0.22.14.1)")
sdl2| C linker for the host machine: cc ld64 857.1
sdl2| Compiler for C supports arguments -msse3: YES (cached)
sdl2| Compiler for C supports arguments -Wno-deprecated-declarations: YES (cached)
sdl2| Compiler for C supports arguments -Wdeclaration-after-statement: YES (cached)
sdl2| Compiler for C supports arguments -Wshadow: YES (cached)
sdl2| Compiler for C supports arguments -fno-strict-aliasing: YES (cached)
sdl2| Compiler for C supports arguments -mpreferred-stack-boundary=2: NO (cached)
sdl2| Dependency gl found: YES unknown (cached)
sdl2| Found CMake: /Applications/CMake.app/Contents/bin/cmake (3.26.3)
sdl2| Run-time dependency glesv2 found: NO (tried pkgconfig, framework and cmake)
sdl2| Message: Using embedded GLESv2 headers
sdl2| Run-time dependency egl found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency egl found: NO (tried pkgconfig, framework and cmake)
sdl2| Message: Using embedded EGL headers
sdl2| Run-time dependency glx found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency alsa found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency libpulse-simple found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency jack found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency libpipewire-0.3 found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency vulkan found: NO (tried pkgconfig and system)
sdl2| Dependency threads found: YES unknown (cached)
sdl2| Run-time dependency wayland-client found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency wayland-cursor found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency wayland-egl found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency wayland-protocols found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency wayland-scanner found: NO (tried pkgconfig, framework and cmake)
sdl2| Run-time dependency libdecor-0 found: NO (tried pkgconfig, framework and cmake)
sdl2| Program wayland-scanner found: NO
sdl2| Run-time dependency libudev found: NO (tried pkgconfig, framework and cmake)
sdl2| Program ./find-dylib-name.py found: YES (/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 <omitted>/temp/subprojects/SDL2-2.30.6/./find-dylib-name.py)
sdl2| Library m found: YES
sdl2| Library dl found: YES
sdl2| Library iconv found: YES
sdl2| Checking if "libc iconv_open test" with dependency -liconv: links: YES (cached)
sdl2| Checking if "libiconv iconv_open test" with dependency -liconv: links: YES (cached)
sdl2| Message: Subsystem "atomic" is ENABLED
sdl2| Message: Subsystem "audio" is ENABLED
sdl2| Message: Subsystem "cpuinfo" is ENABLED
sdl2| Message: Subsystem "events" is ENABLED
sdl2| Message: Subsystem "file" is ENABLED
sdl2| Message: Subsystem "filesystem" is ENABLED
sdl2| Message: Subsystem "haptic" is ENABLED
sdl2| Message: Subsystem "hidapi" is ENABLED
sdl2| Message: Subsystem "joystick" is ENABLED
sdl2| Message: Subsystem "loadso" is ENABLED
sdl2| Message: Subsystem "locale" is ENABLED
sdl2| Message: Subsystem "power" is ENABLED
sdl2| Message: Subsystem "render" is ENABLED
sdl2| Message: Subsystem "sensor" is ENABLED
sdl2| Message: Subsystem "threads" is ENABLED
sdl2| Message: Subsystem "timers" is ENABLED
sdl2| Message: Subsystem "video" is ENABLED
sdl2| Checking for size of "void*" : 8 (cached)
sdl2| Check usable header "alloca.h" : YES (cached)
sdl2| Check usable header "altivec.h" : NO (cached)
sdl2| Check usable header "audioclient.h" : NO (cached)
sdl2| Check usable header "ctype.h" : YES (cached)
sdl2| Check usable header "ddraw.h" : NO (cached)
sdl2| Check usable header "dinput.h" : NO (cached)
sdl2| Check usable header "dsound.h" : NO (cached)
sdl2| Check usable header "dxgi.h" : NO (cached)
sdl2| Check usable header "dlfcn.h" : YES (cached)
sdl2| Header "dlfcn.h" has symbol "dlopen" : YES (cached)
sdl2| Check usable header "fcntl.h" : YES (cached)
sdl2| Header "fcntl.h" has symbol "O_CLOEXEC" : YES (cached)
sdl2| Check usable header "float.h" : YES (cached)
sdl2| Check usable header "iconv.h" : YES (cached)
sdl2| Check usable header "immintrin.h" : YES (cached)
sdl2| Check usable header "inttypes.h" : YES (cached)
sdl2| Check usable header "libunwind.h" : YES (cached)
sdl2| Check usable header "libusb.h" with dependency : NO (cached)
sdl2| Check usable header "libusbhid.h" : NO (cached)
sdl2| Check usable header "limits.h" : YES (cached)
sdl2| Check usable header "linux/input.h" : NO (cached)
sdl2| Check usable header "malloc.h" : NO (cached)
sdl2| Check usable header "math.h" : YES (cached)
sdl2| Header "math.h" has symbol "M_PI" : YES (cached)
sdl2| Header "math.h" has symbol "acos" : YES (cached)
sdl2| Header "math.h" has symbol "acosf" : YES (cached)
sdl2| Header "math.h" has symbol "asin" : YES (cached)
sdl2| Header "math.h" has symbol "asinf" : YES (cached)
sdl2| Header "math.h" has symbol "atan" : YES (cached)
sdl2| Header "math.h" has symbol "atan2" : YES (cached)
sdl2| Header "math.h" has symbol "atan2f" : YES (cached)
sdl2| Header "math.h" has symbol "atanf" : YES (cached)
sdl2| Header "math.h" has symbol "ceil" : YES (cached)
sdl2| Header "math.h" has symbol "ceilf" : YES (cached)
sdl2| Header "math.h" has symbol "copysign" : YES (cached)
sdl2| Header "math.h" has symbol "copysignf" : YES (cached)
sdl2| Header "math.h" has symbol "cos" : YES (cached)
sdl2| Header "math.h" has symbol "cosf" : YES (cached)
sdl2| Header "math.h" has symbol "exp" : YES (cached)
sdl2| Header "math.h" has symbol "expf" : YES (cached)
sdl2| Header "math.h" has symbol "fabs" : YES (cached)
sdl2| Header "math.h" has symbol "fabsf" : YES (cached)
sdl2| Header "math.h" has symbol "floor" : YES (cached)
sdl2| Header "math.h" has symbol "floorf" : YES (cached)
sdl2| Header "math.h" has symbol "fmod" : YES (cached)
sdl2| Header "math.h" has symbol "fmodf" : YES (cached)
sdl2| Header "math.h" has symbol "log" : YES (cached)
sdl2| Header "math.h" has symbol "log10" : YES (cached)
sdl2| Header "math.h" has symbol "log10f" : YES (cached)
sdl2| Header "math.h" has symbol "logf" : YES (cached)
sdl2| Header "math.h" has symbol "lround" : YES (cached)
sdl2| Header "math.h" has symbol "lroundf" : YES (cached)
sdl2| Header "math.h" has symbol "pow" : YES (cached)
sdl2| Header "math.h" has symbol "powf" : YES (cached)
sdl2| Header "math.h" has symbol "round" : YES (cached)
sdl2| Header "math.h" has symbol "roundf" : YES (cached)
sdl2| Header "math.h" has symbol "scalbn" : YES (cached)
sdl2| Header "math.h" has symbol "scalbnf" : YES (cached)
sdl2| Header "math.h" has symbol "sin" : YES (cached)
sdl2| Header "math.h" has symbol "sinf" : YES (cached)
sdl2| Header "math.h" has symbol "sqrt" : YES (cached)
sdl2| Header "math.h" has symbol "sqrtf" : YES (cached)
sdl2| Header "math.h" has symbol "tan" : YES (cached)
sdl2| Header "math.h" has symbol "tanf" : YES (cached)
sdl2| Header "math.h" has symbol "trunc" : YES (cached)
sdl2| Header "math.h" has symbol "truncf" : YES (cached)
sdl2| Check usable header "memory.h" : YES (cached)
sdl2| Check usable header "mmdeviceapi.h" : NO (cached)
sdl2| Check usable header "poll.h" : YES (cached)
sdl2| Header "poll.h" has symbol "poll" : YES (cached)
sdl2| Check usable header "pthread.h" : YES (cached)
sdl2| Header "pthread.h" has symbol "pthread_set_name_np" : NO (cached)
sdl2| Header "pthread.h" has symbol "pthread_setname_np" : NO (cached)
sdl2| Check usable header "pthread_np.h" : NO (cached)
sdl2| Check usable header "semaphore.h" : YES (cached)
sdl2| Header "semaphore.h" has symbol "sem_timedwait" : NO (cached)
sdl2| Check usable header "sensorsapi.h" : NO (cached)
sdl2| Check usable header "setjmp.h" : YES (cached)
sdl2| Header "setjmp.h" has symbol "setjmp" : YES (cached)
sdl2| Check usable header "signal.h" : YES (cached)
sdl2| Header "signal.h" has symbol "sigaction" : YES (cached)
sdl2| Check usable header "stdarg.h" : YES (cached)
sdl2| Check usable header "stddef.h" : YES (cached)
sdl2| Check usable header "stdint.h" : YES (cached)
sdl2| Check usable header "stdio.h" : YES (cached)
sdl2| Header "stdio.h" has symbol "fopen64" : NO (cached)
sdl2| Header "stdio.h" has symbol "fseeko" : YES (cached)
sdl2| Header "stdio.h" has symbol "fseeko64" : NO (cached)
sdl2| Header "stdio.h" has symbol "vsnprintf" : YES (cached)
sdl2| Header "stdio.h" has symbol "vsscanf" : YES (cached)
sdl2| Check usable header "stdlib.h" : YES (cached)
sdl2| Header "stdlib.h" has symbol "_Exit" : YES (cached)
sdl2| Header "stdlib.h" has symbol "_i64toa" : NO (cached)
sdl2| Header "stdlib.h" has symbol "_uitoa" : NO (cached)
sdl2| Header "stdlib.h" has symbol "_ultoa" : NO (cached)
sdl2| Header "stdlib.h" has symbol "abs" : YES (cached)
sdl2| Header "stdlib.h" has symbol "alloca" : NO (cached)
sdl2| Header "stdlib.h" has symbol "atof" : YES (cached)
sdl2| Header "stdlib.h" has symbol "atoi" : YES (cached)
sdl2| Header "stdlib.h" has symbol "bsearch" : YES (cached)
sdl2| Header "stdlib.h" has symbol "getenv" : YES (cached)
sdl2| Header "stdlib.h" has symbol "itoa" : NO (cached)
sdl2| Header "stdlib.h" has symbol "malloc" : YES (cached)
sdl2| Header "stdlib.h" has symbol "putenv" : YES (cached)
sdl2| Header "stdlib.h" has symbol "qsort" : YES (cached)
sdl2| Header "stdlib.h" has symbol "setenv" : YES (cached)
sdl2| Header "stdlib.h" has symbol "strtod" : YES (cached)
sdl2| Header "stdlib.h" has symbol "strtol" : YES (cached)
sdl2| Header "stdlib.h" has symbol "strtoll" : YES (cached)
sdl2| Header "stdlib.h" has symbol "strtoul" : YES (cached)
sdl2| Header "stdlib.h" has symbol "strtoull" : YES (cached)
sdl2| Check usable header "stlib.h" : NO (cached)
sdl2| Check usable header "string.h" : YES (cached)
sdl2| Header "string.h" has symbol "_stricmp" : NO (cached)
sdl2| Header "string.h" has symbol "_strlwr" : NO (cached)
sdl2| Header "string.h" has symbol "_strnicmp" : NO (cached)
sdl2| Header "string.h" has symbol "_strrev" : NO (cached)
sdl2| Header "string.h" has symbol "_strupr" : NO (cached)
sdl2| Header "string.h" has symbol "memcmp" : YES (cached)
sdl2| Header "string.h" has symbol "memcpy" : YES (cached)
sdl2| Header "string.h" has symbol "memmove" : YES (cached)
sdl2| Header "string.h" has symbol "memset" : YES (cached)
sdl2| Header "string.h" has symbol "strchr" : YES (cached)
sdl2| Header "string.h" has symbol "strcmp" : YES (cached)
sdl2| Header "string.h" has symbol "strlcat" : NO (cached)
sdl2| Header "string.h" has symbol "strlcpy" : NO (cached)
sdl2| Header "string.h" has symbol "strlen" : YES (cached)
sdl2| Header "string.h" has symbol "strncmp" : YES (cached)
sdl2| Header "string.h" has symbol "strrchr" : YES (cached)
sdl2| Header "string.h" has symbol "strstr" : YES (cached)
sdl2| Header "string.h" has symbol "strtok_r" : YES (cached)
sdl2| Check usable header "strings.h" : YES (cached)
sdl2| Header "strings.h" has symbol "bcopy" : NO (cached)
sdl2| Header "strings.h" has symbol "index" : NO (cached)
sdl2| Header "strings.h" has symbol "rindex" : NO (cached)
sdl2| Header "strings.h" has symbol "strcasecmp" : YES (cached)
sdl2| Header "strings.h" has symbol "strncasecmp" : YES (cached)
sdl2| Check usable header "sys/auxv.h" : NO (cached)
sdl2| Check usable header "sys/inotify.h" : NO (cached)
sdl2| Check usable header "sys/sysctl.h" : YES (cached)
sdl2| Header "sys/sysctl.h" has symbol "sysctlbyname" : NO (cached)
sdl2| Check usable header "sys/types.h" : YES (cached)
sdl2| Check usable header "time.h" : YES (cached)
sdl2| Header "time.h" has symbol "clock_gettime" : YES (cached)
sdl2| Header "time.h" has symbol "nanosleep" : YES (cached)
sdl2| Check usable header "unistd.h" : YES (cached)
sdl2| Header "unistd.h" has symbol "getpagesize" : NO (cached)
sdl2| Header "unistd.h" has symbol "sysconf" : YES (cached)
sdl2| Check usable header "usb.h" : NO (cached)
sdl2| Check usable header "usbhid.h" : NO (cached)
sdl2| Check usable header "wchar.h" : YES (cached)
sdl2| Header "wchar.h" has symbol "_wcsdup" : NO (cached)
sdl2| Header "wchar.h" has symbol "_wcsicmp" : NO (cached)
sdl2| Header "wchar.h" has symbol "_wcsnicmp" : NO (cached)
sdl2| Header "wchar.h" has symbol "wcscmp" : YES (cached)
sdl2| Header "wchar.h" has symbol "wcsdup" : YES (cached)
sdl2| Header "wchar.h" has symbol "wcslen" : YES (cached)
sdl2| Header "wchar.h" has symbol "wcsncmp" : YES (cached)
sdl2| Header "wchar.h" has symbol "wcsstr" : YES (cached)
sdl2| Check usable header "windows.gaming.input.h" : NO (cached)
sdl2| Header "pthread.h" has symbol "PTHREAD_MUTEX_RECURSIVE" : YES (cached)
sdl2| Header "pthread.h" has symbol "PTHREAD_MUTEX_RECURSIVE_NP" : NO (cached)
sdl2| Checking for type "XINPUT_GAMEPAD_EX" with dependencies -lm, -ldl, , , libudev, -liconv, threads: NO (cached)
sdl2| Checking for type "XINPUT_STATE_EX" with dependencies -lm, -ldl, , , libudev, -liconv, threads: NO (cached)
sdl2| Checking whether type "struct sigaction" has member "sa_sigaction" : YES (cached)
sdl2| Checking if "__atomic_load_n test" : links: YES (cached)
sdl2| Checking if "__sync_lock_test_and_set test" : links: YES (cached)
sdl2| Checking if "input events test" compiles: NO (cached)
sdl2| Run-time dependency appleframeworks found: YES (AudioToolbox, AudioUnit, Carbon, Cocoa, CoreAudio, CoreFoundation, CoreGraphics, CoreServices, ForceFeedback, Foundation, IOKit, QuartzCore)
sdl2| Message: filesystem: cocoa
sdl2| Message: haptic: iokit
sdl2| Message: joystick: iokit, virtual, hidapi, dummy
sdl2| Message: loadso: dlopen
sdl2| Message: power: macosx
sdl2| Message: sensor: dummy
sdl2| Message: video: opengl, opengl_es2, opengl_egl, opengl_cgl
sdl2| Message: input:
sdl2| Message: audio_driver: coreaudio, dummy
sdl2| Message: video_driver: cocoa, dummy
sdl2| Message: video_render: ogl, ogl_es2
sdl2| Message: thread: pthread
sdl2| Message: timer: unix
sdl2| Configuring SDL_config.h using configuration
../subprojects/SDL2-2.30.6/src/core/meson.build:35:44: ERROR: The `==` operator of bool does not accept objects of type int (1)
A full log can be found at <omitted>/temp/builddir/meson-logs/meson-log.txt
FAILED: build.ninja
/Library/Frameworks/Python.framework/Versions/3.11/bin/meson --internal regenerate <omitted>/temp <omitted>/temp/builddir
ninja: error: rebuilding 'build.ninja': subcommand failed
Ugh, that wrap is so broken. Sorry, but I don't have the bandwidth to rewrite it.
Greetings; on my Mac both 2.30.6-2 and 2.30.3-3 produce the same build error:
I've made a simple project replicating the issue:
main.cpp
meson.build
Is there something I'm missing?
To reproduce the error: