Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created November 1, 2023 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/f5bc5ea91f97b050fe5265e4c2fb0be7 to your computer and use it in GitHub Desktop.
Save ab5tract/f5bc5ea91f97b050fe5265e4c2fb0be7 to your computer and use it in GitHub Desktop.
===> Searching for missing dependencies: Distribution::Builder::MakeFromJSON
===> Searching for missing dependencies: System::Query
===> Searching for missing dependencies: JSON::Fast
===> Building: Raylib::Bindings:ver<0.0.7>:auth<zef:vushu>
[Raylib::Bindings] Failed to open file /usr/local/include/raylib.h: No such file or directory
[Raylib::Bindings] in sub generate-bindings at /Users/longwalker/code/raku/z.others/raylib-raku/lib/Raylib/Generator.rakumod (Raylib::Generator) line 10
[Raylib::Bindings] in sub configure at configure.raku line 15
[Raylib::Bindings] in sub MAIN at configure.raku line 43
[Raylib::Bindings] in block <unit> at configure.raku line 3
[Raylib::Bindings] Actually thrown at:
[Raylib::Bindings] in sub generate-bindings at /Users/longwalker/code/raku/z.others/raylib-raku/lib/Raylib/Generator.rakumod (Raylib::Generator) line 11
[Raylib::Bindings] in sub configure at configure.raku line 15
[Raylib::Bindings] in sub MAIN at configure.raku line 43
[Raylib::Bindings] in block <unit> at configure.raku line 3
[Raylib::Bindings] resources/raylib_allocations.c:267:16: error: no member named 'name' in 'struct ModelAnimation'
[Raylib::Bindings] memcpy(ptr->name, name, 32 * sizeof(char));
[Raylib::Bindings] ~~~ ^
[Raylib::Bindings] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy'
[Raylib::Bindings] __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
[Raylib::Bindings] ^~~~
[Raylib::Bindings] resources/raylib_allocations.c:267:16: error: no member named 'name' in 'struct ModelAnimation'
[Raylib::Bindings] memcpy(ptr->name, name, 32 * sizeof(char));
[Raylib::Bindings] ~~~ ^
[Raylib::Bindings] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:63:62: note: expanded from macro 'memcpy'
[Raylib::Bindings] __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
[Raylib::Bindings] ^~~~
[Raylib::Bindings] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0'
[Raylib::Bindings] #define __darwin_obsz0(object) __builtin_object_size (object, 0)
[Raylib::Bindings] ^~~~~~
[Raylib::Bindings] 2 errors generated.
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:170:97: error: implicit declaration of function 'DrawLineBSpline' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] void DrawLineBSpline_pointerized( Vector2 * points, int pointCount, float thick, Color* color){ DrawLineBSpline(points, pointCount, thick, *color); }
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:171:100: error: implicit declaration of function 'DrawLineCatmullRom' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] void DrawLineCatmullRom_pointerized( Vector2 * points, int pointCount, float thick, Color* color){ DrawLineCatmullRom(points, pointCount, thick, *color); }
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:236:47: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
[Raylib::Bindings] Image ret = LoadImageFromMemory(fileType, fileData, dataSize);
[Raylib::Bindings] ^~~~~~~~
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1231:76: note: passing argument to parameter 'fileData' here
[Raylib::Bindings] RLAPI Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load image from memory buffer, fileType refers to extension: i.e. '.png'
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:255:96: error: implicit declaration of function 'ExportImageToMemory' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] char* ExportImageToMemory_pointerized(Image* image, char * fileType, int * fileSize){ return ExportImageToMemory(*image, fileType, fileSize); }
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:255:96: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'char *' [-Wint-conversion]
[Raylib::Bindings] char* ExportImageToMemory_pointerized(Image* image, char * fileType, int * fileSize){ return ExportImageToMemory(*image, fileType, fileSize); }
[Raylib::Bindings] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:265:17: error: implicit declaration of function 'GenImageGradientLinear' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] Image ret = GenImageGradientLinear(width, height, direction, *start, *end);
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:265:17: note: did you mean 'GenImageGradientRadial'?
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1243:13: note: 'GenImageGradientRadial' declared here
[Raylib::Bindings] RLAPI Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer); // Generate image: radial gradient
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:265:11: error: initializing 'Image' (aka 'struct Image') with an expression of incompatible type 'int'
[Raylib::Bindings] Image ret = GenImageGradientLinear(width, height, direction, *start, *end);
[Raylib::Bindings] ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:277:17: error: implicit declaration of function 'GenImageGradientSquare' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] Image ret = GenImageGradientSquare(width, height, density, *inner, *outer);
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:277:11: error: initializing 'Image' (aka 'struct Image') with an expression of incompatible type 'int'
[Raylib::Bindings] Image ret = GenImageGradientSquare(width, height, density, *inner, *outer);
[Raylib::Bindings] ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:510:45: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
[Raylib::Bindings] Font ret = LoadFontFromMemory(fileType, fileData, dataSize, fontSize, fontChars, glyphCount);
[Raylib::Bindings] ^~~~~~~~
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1356:74: note: passing argument to parameter 'fileData' here
[Raylib::Bindings] RLAPI Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int glyphCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:725:45: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
[Raylib::Bindings] Wave ret = LoadWaveFromMemory(fileType, fileData, dataSize);
[Raylib::Bindings] ^~~~~~~~
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1517:74: note: passing argument to parameter 'fileData' here
[Raylib::Bindings] RLAPI Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load wave from memory buffer, fileType refers to extension: i.e. '.wav'
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:744:17: error: implicit declaration of function 'LoadSoundAlias' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] Sound ret = LoadSoundAlias(*source);
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:744:11: error: initializing 'Sound' (aka 'struct Sound') with an expression of incompatible type 'int'
[Raylib::Bindings] Sound ret = LoadSoundAlias(*source);
[Raylib::Bindings] ^ ~~~~~~~~~~~~~~~~~~~~~~~
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:752:50: error: implicit declaration of function 'UnloadSoundAlias' [-Werror,-Wimplicit-function-declaration]
[Raylib::Bindings] void UnloadSoundAlias_pointerized(Sound* alias){ UnloadSoundAlias(*alias); }
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:752:50: note: did you mean 'UnloadSound'?
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1524:12: note: 'UnloadSound' declared here
[Raylib::Bindings] RLAPI void UnloadSound(Sound sound); // Unload sound
[Raylib::Bindings] ^
[Raylib::Bindings] resources/raylib_pointerized_wrapper.c:778:53: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
[Raylib::Bindings] Music ret = LoadMusicStreamFromMemory(fileType, data, dataSize);
[Raylib::Bindings] ^~~~
[Raylib::Bindings] /opt/homebrew/include/raylib.h:1545:82: note: passing argument to parameter 'data' here
[Raylib::Bindings] RLAPI Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize); // Load music stream from data
[Raylib::Bindings] ^
[Raylib::Bindings] 5 warnings and 10 errors generated.
[Raylib::Bindings] make: *** [raylib-raku] Error 1
===> Building [FAIL]: Raylib::Bindings:ver<0.0.7>:auth<zef:vushu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment