Comments (7)
How come HAVE_MALLOC
is not defined on your system?
Lines 920 to 921 in 4728325
What does the log say in
CMakeFiles/CMakeConfigureLog.yaml
?If it's not present in the log, it's because we default it to enabled.
from sdl.
Forgot to mention. I have those variables
"SDL_STATIC": "ON",
"SDL_SHARED": "OFF",
"SDL_HIDAPI_LIBUSB": "OFF",
"SDL_DUMMYVIDEO": "OFF",
"SDL_HIDAPI_LIBUSB_SHARED": "OFF",
"SDL_DIRECTX": "OFF",
"SDL_VULKAN": "OFF",
"SDL_HIDAPI": "OFF",
"SDL_AVX": "OFF",
"SDL_ASSEMBLY": "OFF",
"SDL_POWER": "OFF",
"SDL_LIBUDEV": "OFF",
"SDL_VIRTUAL_JOYSTICK": "OFF",
"SDL_OFFSCREEN": "OFF",
"SDL_XINPUT": "OFF",
"SDL_VIDEO": "ON",
"SDL_GCC_ATOMICS": "OFF",
"SDL_CAMERA": "OFF",
"SDL_HAPTIC": "OFF",
"SDL_JOYSTICK": "OFF",
"SDL_TEST_LIBRARY": "OFF",
"SDL_HIDAPI_JOYSTICK": "OFF",
"SDL_SENSOR": "OFF",
"SDL_DISABLE_INSTALL": "ON",
"SDL_AVX2": "OFF",
"SDL_AUDIO": "OFF",
"SDL_AVX512F": "OFF",
"SDL_LIBC": "OFF",
"SDL_RENDER_METAL": "OFF",
"SDL_RENDER": "OFF",
"SDL_DIALOG": "OFF"
Here's a CmakeConfigureLog
CMakeConfigureLog.txt
from sdl.
How come
HAVE_MALLOC
is not defined on your system?
I don't know. I recently fully reinstalled Windows 11. Installed Visual Studio Build Tools and used SDL3 for a month already until I've got this error.
CLang is from MSYS2 MINGW64. With this toolchain is working fine
While looking into RtlSetVolatileMemory
, ReadPointerNoFence
, ReadPointerNoFence
, RtlFillVolatileMemory
,
I found them in
D:\Windows Kits\10\Include\10.0.26100.0\um\winnt.h
And MapViewOfFile2
in
D:\Windows Kits\10\Include\10.0.26100.0\um\memoryapi.h
__imp_MapViewOfFileNuma2
- couldn't find at all
Found "malloc.h" in D:\Windows Kits\10\Include\10.0.26100.0\ucrt\malloc.h
#include <malloc.h> working fine. I don't know why CMake can't find it
from sdl.
Okay. Found what's happening then. It can find malloc.h. But it using another variable to check if it's enabled? Or I don't understand
from sdl.
Don't you need to use
target_compile_definitions
to defineHAVE_MALLOC
?
At the end of the configuration, a header is generated.
Something like include-config-debug/build_config/SDL_build_config.h
.
If we would use compile definitions, the compile commands would become very long and unreadable.
from sdl.
SDL_build_config.h.intermediate has #define HAVE_MALLOC 1
Looking into other issue
from sdl.
Found it. Yeah. Thanks for the hints @madebr
I disabled "SDL_LIBC": "OFF"
in a preset causing HAVE_LIBC
to not be defined
I will now understand how to handle those problems properly. Sorry for panic)))
You can close it, if this issue not relevant and if SDL_LIBC
need to be "ON" always
from sdl.
Related Issues (20)
- [Feature Request] SDL3 GPU Backend for WebGPU Target HOT 9
- testautomation_surface.c: SDLTest_AssertCheck() is always true HOT 1
- -Wcast-function-type warnings HOT 8
- GPU: Functions that may return errors should call SDL_SetError() HOT 5
- SDL_gpu_vulkan.c will always enable validation, not honoring the SDL_HINT_RENDER_VULKAN_DEBUG hint HOT 4
- SDL_WINDOWEVENT_EXPOSED not triggered on sway HOT 3
- Change SDL_GPU_TEXTUREFORMAT_INVALID to SDL_GPU_TEXTUREFORMAT_UNKNOWN = 0? HOT 2
- GPU: Reasonable zero-init defaults
- Can crash if Pipewire hotplug_loop_init() fails HOT 2
- Vcpkg Port Question HOT 3
- blit_testExampleApplicationRender failing on big-endian
- GPU shader format bit flags skip value 1 HOT 1
- Undefined symbols in project after trying to link SDL2 statically HOT 5
- Add new tutorial to sdl2 wiki HOT 1
- Guard against thread creation failure in PULSEAUDIO_DetectDevices HOT 6
- SDL_ShowSimpleMessageBox not working with wayland
- GPU: Remove lock in Vulkan FetchDescriptorSet
- I would love a SDL_GPU_DISABLED if possible, please. HOT 1
- GPU: User Clip Planes? (gl_ClipDistance / SV_ClipDistance)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.