RobLoach / raylib-duktape

zlib License
32 stars 0 forks source link

Building on windows? #8

Closed joao678 closed 2 years ago

joao678 commented 3 years ago

Any instructions on how to build this project on windows?

RobLoach commented 3 years ago

Your best bet is CMake with visual studio. I don't use Windows or Visual Studio, so :shrug: ... VSCode may have a CMake plugin?

joao678 commented 3 years ago

Tried with: VSCode with the CMake plugin and MinGW Visual studio 2019 with cmake Both options give me some errors :/ Not sure if I'm doing something wrong, I also tried both the other 2 branches and nothing

RobLoach commented 3 years ago

What errors? Can you build raylib without duktape?

RobLoach commented 3 years ago

You might have better success with https://github.com/sntg-p/QuickJS-raylib too :thinking:

joao678 commented 3 years ago

No success with QuickJS-raylib as well, only raylib-node seems to work tho, well I'm experimenting anyways! image Here's the error with CMAKE

RobLoach commented 3 years ago

I think I might flip it to use git submodules for find_package instead. GetContent seems broken sometimes.

RobLoach commented 3 years ago

https://github.com/RobLoach/raylib-duktape/pull/9

joao678 commented 3 years ago

Using the submodules branch with MSYS2 MinGW still gives me some errors

[main] Building folder: raylib-duktape 
[build] Starting build
[proc] Executing command: C:\msys64\mingw64\bin\cmake.exe --build c:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/build --config Debug --target all -j 8 --
[build] [  4%] Built target duktape
[build] [  7%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_inheritance.cpp.obj
[build] [ 12%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_properties.cpp.obj
[build] [ 14%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_primitives.cpp.obj
[build] [  9%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_multiple_contexts.cpp.obj
[build] [ 21%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_dukvalue.cpp.obj
[build] [ 21%] Building CXX object ../vendor/dukglue/tests/CMakeFiles/dukglue_test.dir/test_classes.cpp.obj
[build] [ 56%] Built target glfw_objlib
[build] [ 58%] Built target glfw
[build] [ 78%] Built target raylib_static
[build] Consolidate compiler generated dependencies of target raylib-duktape
[build] Consolidate compiler generated dependencies of target raylib-duktape-test
[build] [ 80%] Building CXX object bin/CMakeFiles/raylib-duktape.dir/raylib-duktape.cpp.obj
[build] [ 82%] Building CXX object tests/CMakeFiles/raylib-duktape-test.dir/raylib-duktape-test.cpp.obj
[build] [ 85%] Linking CXX executable dukglue_test.exe
[build] [ 92%] Built target dukglue_test
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:7,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\bin\raylib-duktape.cpp:7:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h: In instantiation of 'static typename std::enable_if<(! std::is_void<_Dummy>::value)>::type dukglue::detail::FuncInfoHolder<RetType, Ts>::FuncRuntime::actually_call(duk_context*, RetType (*)(Ts ...), const std::tuple<_Args2 ...>&) [with Dummy = long int; BakedTs = {const char*}; RetType = long int; Ts = {const char*}; typename std::enable_if<(! std::is_void<_Dummy>::value)>::type = void; duk_context = duk_hthread]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:74:19:   required from 'static duk_ret_t dukglue::detail::FuncInfoHolder<RetType, Ts>::FuncRuntime::call_native_function(duk_context*) [with RetType = long int; Ts = {const char*}; duk_ret_t = int; duk_context = duk_hthread]'
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:26:90:   required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = long int; Ts = {const char*}; duk_context = duk_hthread]'
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:93:69:   required from here
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:89:67: error: no matching function for call to 'dukglue::types::DukType<long int>::push<long int>(duk_context*&, std::remove_reference<long int&>::type)'
[build]    89 |      DukType<typename Bare<RetType>::type>::template push<RetType>(ctx, std::move(return_val));
[build]       |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_stack.h:6,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:7,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\bin\raylib-duktape.cpp:7:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:109:16: note: candidate: 'template<class FullT, class> static void dukglue::types::DukType<T>::push(duk_context*, T&) [with FullT = FullT; <template-parameter-2-2> = <template-parameter-1-2>; T = long int]'
[build]   109 |    static void push(duk_context* ctx, T& value) {
[build]       |                ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:109:16: note:   template argument deduction/substitution failed:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:108:29: error: no type named 'type' in 'struct std::enable_if<false, void>'
[build]   108 |    template<typename FullT, typename = typename std::enable_if< std::is_reference<FullT>::value>::type >
[build]       |                             ^~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:121:16: note: candidate: 'template<class FullT, class> static void dukglue::types::DukType<T>::push(duk_context*, T*) [with FullT = FullT; <template-parameter-2-2> = <template-parameter-1-2>; T = long int]'
[build]   121 |    static void push(duk_context* ctx, T* value) {
[build]       |                ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:121:16: note:   template argument deduction/substitution failed:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:120:29: error: no type named 'type' in 'struct std::enable_if<false, void>'
[build]   120 |    template<typename FullT, typename = typename std::enable_if< std::is_pointer<FullT>::value>::type >
[build]       |                             ^~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:218:3: error: 'typedef struct Rectangle Rectangle' redeclared as different kind of entity
[build]   218 | } Rectangle;
[build]       |   ^~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:3158:28: note: previous declaration 'WINBOOL Rectangle(HDC, int, int, int, int)'
[build]  3158 |   WINGDIAPI WINBOOL WINAPI Rectangle(HDC hdc,int left,int top,int right,int bottom);
[build]       |                            ^~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:258:5: error: 'Rectangle' does not name a type
[build]   258 |     Rectangle source;   // Region in the texture
[build]       |     ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:281:5: error: 'Rectangle' does not name a type
[build]   281 |     Rectangle *recs;        // Characters rectangles in texture
[build]       |     ^~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:894:12: error: conflicting declaration of C function 'void CloseWindow()'
[build]   894 | RLAPI void CloseWindow(void);                                     // Close window and unload OpenGL context
[build]       |            ^~~~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:2279:29: note: previous declaration 'WINBOOL CloseWindow(HWND)'
[build]  2279 |   WINUSERAPI WINBOOL WINAPI CloseWindow (HWND hWnd);
[build]       |                             ^~~~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:932:12: error: conflicting declaration of C function 'void ShowCursor()'
[build]   932 | RLAPI void ShowCursor(void);                                      // Shows cursor
[build]       |            ^~~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:3757:25: note: previous declaration 'int ShowCursor(WINBOOL)'
[build]  3757 |   WINUSERAPI int WINAPI ShowCursor(WINBOOL bShow);
[build]       |                         ^~~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1106:12: error: variable or field 'DrawRectangleRec' declared void
[build]  1106 | RLAPI void DrawRectangleRec(Rectangle rec, Color color);                                                 // Draw a color-filled rectangle
[build]       |            ^~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1106:38: error: expected ')' before 'rec'
[build]  1106 | RLAPI void DrawRectangleRec(Rectangle rec, Color color);                                                 // Draw a color-filled rectangle
[build]       |                            ~         ^~~~
[build]       |                                      )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1106:50: error: expected primary-expression before 'color'
[build]  1106 | RLAPI void DrawRectangleRec(Rectangle rec, Color color);                                                 // Draw a color-filled rectangle
[build]       |                                                  ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1107:12: error: variable or field 'DrawRectanglePro' declared void
[build]  1107 | RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color);                 // Draw a color-filled rectangle with pro parameters
[build]       |            ^~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1107:38: error: expected ')' before 'rec'
[build]  1107 | RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color);                 // Draw a color-filled rectangle with pro parameters
[build]       |                            ~         ^~~~
[build]       |                                      )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1107:52: error: expected primary-expression before 'origin'
[build]  1107 | RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color);                 // Draw a color-filled rectangle with pro parameters
[build]       |                                                    ^~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1107:60: error: expected primary-expression before 'float'
[build]  1107 | RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color);                 // Draw a color-filled rectangle with pro parameters
[build]       |                                                            ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1107:82: error: expected primary-expression before 'color'
[build]  1107 | RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color);                 // Draw a color-filled rectangle with pro parameters
[build]       |                                                                                  ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:12: error: variable or field 'DrawRectangleGradientEx' declared void
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |            ^~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:45: error: expected ')' before 'rec'
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |                                   ~         ^~~~
[build]       |                                             )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:57: error: expected primary-expression before 'col1'
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |                                                         ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:69: error: expected primary-expression before 'col2'
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |                                                                     ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:81: error: expected primary-expression before 'col3'
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |                                                                                 ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1110:93: error: expected primary-expression before 'col4'
[build]  1110 | RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);       // Draw a gradient-filled rectangle with custom vertex colors
[build]       |                                                                                             ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1112:12: error: variable or field 'DrawRectangleLinesEx' declared void
[build]  1112 | RLAPI void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color);                              // Draw rectangle outline with extended parameters
[build]       |            ^~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1112:42: error: expected ')' before 'rec'
[build]  1112 | RLAPI void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color);                              // Draw rectangle outline with extended parameters
[build]       |                                ~         ^~~~
[build]       |                                          )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1112:48: error: expected primary-expression before 'int'
[build]  1112 | RLAPI void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color);                              // Draw rectangle outline with extended parameters
[build]       |                                                ^~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1112:69: error: expected primary-expression before 'color'
[build]  1112 | RLAPI void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color);                              // Draw rectangle outline with extended parameters
[build]       |                                                                     ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1113:12: error: variable or field 'DrawRectangleRounded' declared void
[build]  1113 | RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color);              // Draw rectangle with rounded edges
[build]       |            ^~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1113:42: error: expected ')' before 'rec'
[build]  1113 | RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color);              // Draw rectangle with rounded edges
[build]       |                                ~         ^~~~
[build]       |                                          )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1113:48: error: expected primary-expression before 'float'
[build]  1113 | RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color);              // Draw rectangle with rounded edges
[build]       |                                                ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1113:65: error: expected primary-expression before 'int'
[build]  1113 | RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color);              // Draw rectangle with rounded edges
[build]       |                                                                 ^~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1113:85: error: expected primary-expression before 'color'
[build]  1113 | RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color);              // Draw rectangle with rounded edges
[build]       |                                                                                     ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:12: error: variable or field 'DrawRectangleRoundedLines' declared void
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |            ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:47: error: expected ')' before 'rec'
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |                                     ~         ^~~~
[build]       |                                               )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:53: error: expected primary-expression before 'float'
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |                                                     ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:70: error: expected primary-expression before 'int'
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |                                                                      ^~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:84: error: expected primary-expression before 'int'
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |                                                                                    ^~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1114:105: error: expected primary-expression before 'color'
[build]  1114 | RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline
[build]       |                                                                                                         ^~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1123:40: error: expected ')' before 'rec1'
[build]  1123 | RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2);                                           // Check collision between two rectangles
[build]       |                              ~         ^~~~~
[build]       |                                        )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1123:56: error: expected ')' before 'rec2'
[build]  1123 | RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2);                                           // Check collision between two rectangles
[build]       |                              ~                         ^~~~~
[build]       |                                                        )
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1123:61: error: expression list treated as compound expression in initializer [-fpermissive]
[build]  1123 | RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2);                                           // Check collision between two rectangles
[build]       |                                                             ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1125:66: error: 'Rectangle' is not a type
[build]  1125 | RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec);                         // Check collision between circle and rectangle
[build]       |                                                                  ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1126:50: error: 'Rectangle' is not a type
[build]  1126 | RLAPI bool CheckCollisionPointRec(Vector2 point, Rectangle rec);                                         // Check if point is inside rectangle
[build]       |                                                  ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1130:7: error: 'Rectangle' does not name a type
[build]  1130 | RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2);                                         // Get collision rectangle for two rectangles collision
[build]       |       ^~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1138:13: error: conflicting declaration of C function 'Image LoadImageA(const char*)'
[build]  1138 | RLAPI Image LoadImage(const char *fileName);                                                             // Load image from file into CPU memory (RAM)
[build]       |             ^~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:4199:28: note: previous declaration 'void* LoadImageA(HINSTANCE, LPCSTR, UINT, int, int, UINT)'
[build]  4199 |   WINUSERAPI HANDLE WINAPI LoadImageA(HINSTANCE hInst,LPCSTR name,UINT type,int cx,int cy,UINT fuLoad);
[build]       |                            ^~~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1158:41: error: 'Rectangle' is not a type
[build]  1158 | RLAPI Image ImageFromImage(Image image, Rectangle rec);                                                  // Create an image from another image piece
[build]       |                                         ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1163:36: error: 'Rectangle' is not a type
[build]  1163 | RLAPI void ImageCrop(Image *image, Rectangle crop);                                                      // Crop an image to a defined rectangle
[build]       |                                    ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1187:7: error: 'Rectangle' does not name a type
[build]  1187 | RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold);                                       // Get image alpha border rectangle
[build]       |       ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1200:46: error: 'Rectangle' is not a type
[build]  1200 | RLAPI void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color);                                // Draw rectangle within an image
[build]       |                                              ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1201:48: error: 'Rectangle' is not a type
[build]  1201 | RLAPI void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color);                   // Draw rectangle lines within an image
[build]       |                                                ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1202:45: error: 'Rectangle' is not a type
[build]  1202 | RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint);             // Draw a source image within a destination image (tint applied to source)
[build]       |                                             ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1202:63: error: 'Rectangle' is not a type
[build]  1202 | RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint);             // Draw a source image within a destination image (tint applied to source)
[build]       |                                                               ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1215:48: error: 'Rectangle' is not a type
[build]  1215 | RLAPI void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels);                       // Update GPU texture rectangle with new data
[build]       |                                                ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1228:46: error: 'Rectangle' is not a type
[build]  1228 | RLAPI void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint);         // Draw a part of a texture defined by a rectangle
[build]       |                                              ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1229:79: error: 'Rectangle' is not a type
[build]  1229 | RLAPI void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint);  // Draw texture quad with tiling and offset parameters
[build]       |                                                                               ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1230:48: error: 'Rectangle' is not a type
[build]  1230 | RLAPI void DrawTextureTiled(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint);  // Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
[build]       |                                                ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1230:66: error: 'Rectangle' is not a type
[build]  1230 | RLAPI void DrawTextureTiled(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint);  // Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
[build]       |                                                                  ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1231:46: error: 'Rectangle' is not a type
[build]  1231 | RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint);       // Draw a part of a texture defined by a rectangle with 'pro' parameters
[build]       |                                              ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1231:64: error: 'Rectangle' is not a type
[build]  1231 | RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint);       // Draw a part of a texture defined by a rectangle with 'pro' parameters
[build]       |                                                                ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1232:72: error: 'Rectangle' is not a type
[build]  1232 | RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint);  // Draws a texture (or part of it) that stretches or shrinks nicely
[build]       |                                                                        ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1259:54: error: 'Rectangle' is not a type
[build]  1259 | RLAPI Image GenImageFontAtlas(const CharInfo *chars, Rectangle **recs, int charsCount, int fontSize, int padding, int packMethod);      // Generate image font atlas using chars info
[build]       |                                                      ^~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1265:12: error: conflicting declaration of C function 'void DrawTextA(const char*, int, int, int, Color)'
[build]  1265 | RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color color);       // Draw text (using default font)
[build]       |            ^~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:3476:25: note: previous declaration 'int DrawTextA(HDC, LPCSTR, int, LPRECT, UINT)'
[build]  3476 |   WINUSERAPI int WINAPI DrawTextA(HDC hdc,LPCSTR lpchText,int cchText,LPRECT lprc,UINT format);
[build]       |                         ^~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:9,
[build]                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1266:12: error: conflicting declaration of C function 'void DrawTextExA(Font, const char*, Vector2, float, float, Color)'
[build]  1266 | RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint);                // Draw text using font and additional parameters
[build]       |            ^~~~~~~~~~
[build] In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\catch.hpp:7678,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:2:
[build] C:/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:3478:25: note: previous declaration 'int DrawTextExA(HDC, LPSTR, int, LPRECT, UINT, LPDRAWTEXTPARAMS)'
[build]  3478 |   WINUSERAPI int WINAPI DrawTextExA(HDC hdc,LPSTR lpchText,int cchText,LPRECT lprc,UINT format,LPDRAWTEXTPARAMS lpdtp);
[build]       |                         ^~~~~~~~~~~
[build] In file included from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:3:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1267:53: error: 'Rectangle' is not a type
[build]  1267 | RLAPI void DrawTextRec(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint);   // Draw text using font inside rectangle limits
[build]       |                                                     ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1268:55: error: 'Rectangle' is not a type
[build]  1268 | RLAPI void DrawTextRecEx(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint,
[build]       |                                                       ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1380:63: error: 'Rectangle' is not a type
[build]  1380 | RLAPI void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 center, float size, Color tint); // Draw a billboard texture defined by source
[build]       |                                                               ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1407:7: error: 'Rectangle' does not name a type
[build]  1407 | RLAPI Rectangle GetShapesTextureRec(void);                                // Get texture rectangle to draw shapes
[build]       |       ^~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/raylib/src/raylib.h:1408:48: error: 'Rectangle' is not a type
[build]  1408 | RLAPI void SetShapesTexture(Texture2D texture, Rectangle source);         // Define default texture used to draw shapes
[build]       |                                                ^~~~~~~~~
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:160,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_stack.h:6,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:7,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\bin\raylib-duktape.cpp:7:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static const char* dukglue::types::DukType<const char*>::read(duk_context*, duk_idx_t) [with FullT = const char*]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:93:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    93 |    }
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static int32_t dukglue::types::DukType<int>::read(duk_context*, duk_idx_t) [with FullT = int]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:45:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    45 |   DUKGLUE_SIMPLE_VALUE_TYPE(int32_t, duk_is_number, duk_get_int, duk_push_int, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static float dukglue::types::DukType<float>::read(duk_context*, duk_idx_t) [with FullT = float]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:58:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    58 |   DUKGLUE_SIMPLE_VALUE_TYPE(float, duk_is_number, duk_get_number, duk_push_number, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static uint32_t dukglue::types::DukType<unsigned int>::read(duk_context*, duk_idx_t) [with FullT = unsigned int]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:40:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    40 |   DUKGLUE_SIMPLE_VALUE_TYPE(uint32_t, duk_is_number, duk_get_uint, duk_push_uint, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] mingw32-make[2]: *** [bin\CMakeFiles\raylib-duktape.dir\build.make:76: bin/CMakeFiles/raylib-duktape.dir/raylib-duktape.cpp.obj] Error 1
[build] mingw32-make[1]: *** [CMakeFiles\Makefile2:1028: bin/CMakeFiles/raylib-duktape.dir/all] Error 2
[build] mingw32-make[1]: *** Waiting for unfinished jobs....
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:10,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-structs.h:219:25: error: type/value mismatch at argument 1 in template parameter list for 'template<class T> struct dukglue::types::DukType'
[build]   219 | struct DukType<Rectangle> {
[build]       |                         ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-structs.h:219:25: note:   expected a type, got 'Rectangle'
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:12,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h: In function 'void raylib_duktape_register_functions(duk_context*)':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:12:63: error: no matching function for call to 'dukglue_register_function(duk_context*&, <unresolved overloaded function type>, const char [12])'
[build]    12 |     dukglue_register_function(ctx, &CloseWindow, "CloseWindow");
[build]       |                                                               ^
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note: candidate: 'template<class RetType, class ... Ts> void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*)'
[build]    24 | void dukglue_register_function(duk_context* ctx, RetType(*funcToCall)(Ts...), const char* name)
[build]       |      ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note:   template argument deduction/substitution failed:
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:12,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:12:63: note:   couldn't deduce template parameter 'RetType'
[build]    12 |     dukglue_register_function(ctx, &CloseWindow, "CloseWindow");
[build]       |                                                               ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:159:37: error: 'DrawRectangleRec' was not declared in this scope; did you mean 'DrawRectangleV'?
[build]   159 |     dukglue_register_function(ctx, &DrawRectangleRec, "DrawRectangleRec");
[build]       |                                     ^~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleV
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:160:37: error: 'DrawRectanglePro' was not declared in this scope; did you mean 'DrawRectangleV'?
[build]   160 |     dukglue_register_function(ctx, &DrawRectanglePro, "DrawRectanglePro");
[build]       |                                     ^~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleV
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:163:37: error: 'DrawRectangleGradientEx' was not declared in this scope; did you mean 'DrawRectangleGradientH'?
[build]   163 |     dukglue_register_function(ctx, &DrawRectangleGradientEx, "DrawRectangleGradientEx");
[build]       |                                     ^~~~~~~~~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleGradientH
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:165:37: error: 'DrawRectangleLinesEx' was not declared in this scope; did you mean 'DrawRectangleLines'?
[build]   165 |     dukglue_register_function(ctx, &DrawRectangleLinesEx, "DrawRectangleLinesEx");
[build]       |                                     ^~~~~~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleLines
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:166:37: error: 'DrawRectangleRounded' was not declared in this scope; did you mean 'DrawRectangleLines'?
[build]   166 |     dukglue_register_function(ctx, &DrawRectangleRounded, "DrawRectangleRounded");
[build]       |                                     ^~~~~~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleLines
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:167:37: error: 'DrawRectangleRoundedLines' was not declared in this scope; did you mean 'DrawRectangleLines'?
[build]   167 |     dukglue_register_function(ctx, &DrawRectangleRoundedLines, "DrawRectangleRoundedLines");
[build]       |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~
[build]       |                                     DrawRectangleLines
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:174:77: error: no matching function for call to 'dukglue_register_function(duk_context*&, bool*, const char [19])'
[build]   174 |     dukglue_register_function(ctx, &CheckCollisionRecs, "CheckCollisionRecs");
[build]       |                                                                             ^
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note: candidate: 'template<class RetType, class ... Ts> void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*)'
[build]    24 | void dukglue_register_function(duk_context* ctx, RetType(*funcToCall)(Ts...), const char* name)
[build]       |      ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note:   template argument deduction/substitution failed:
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:12,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:174:77: note:   mismatched types 'RetType(Ts ...)' and 'bool'
[build]   174 |     dukglue_register_function(ctx, &CheckCollisionRecs, "CheckCollisionRecs");
[build]       |                                                                             ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:177:37: error: 'GetCollisionRec' was not declared in this scope; did you mean 'GetCollisionRayMesh'?
[build]   177 |     dukglue_register_function(ctx, &GetCollisionRec, "GetCollisionRec");
[build]       |                                     ^~~~~~~~~~~~~~~
[build]       |                                     GetCollisionRayMesh
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:181:59: error: no matching function for call to 'dukglue_register_function(duk_context*&, <unresolved overloaded function type>, const char [10])'
[build]   181 |     dukglue_register_function(ctx, &LoadImage, "LoadImage");
[build]       |                                                           ^
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note: candidate: 'template<class RetType, class ... Ts> void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*)'
[build]    24 | void dukglue_register_function(duk_context* ctx, RetType(*funcToCall)(Ts...), const char* name)
[build]       |      ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note:   template argument deduction/substitution failed:
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:12,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:181:59: note:   couldn't deduce template parameter 'RetType'
[build]   181 |     dukglue_register_function(ctx, &LoadImage, "LoadImage");
[build]       |                                                           ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:261:57: error: no matching function for call to 'dukglue_register_function(duk_context*&, <unresolved overloaded function type>, const char [9])'
[build]   261 |     dukglue_register_function(ctx, &DrawText, "DrawText");
[build]       |                                                         ^
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note: candidate: 'template<class RetType, class ... Ts> void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*)'
[build]    24 | void dukglue_register_function(duk_context* ctx, RetType(*funcToCall)(Ts...), const char* name)
[build]       |      ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:24:6: note:   template argument deduction/substitution failed:
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape.h:12,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:6:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:261:57: note:   couldn't deduce template parameter 'RetType'
[build]   261 |     dukglue_register_function(ctx, &DrawText, "DrawText");
[build]       |                                                         ^
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h: In instantiation of 'static typename std::enable_if<(! std::is_void<_Dummy>::value)>::type dukglue::detail::FuncInfoHolder<RetType, Ts>::FuncRuntime::actually_call(duk_context*, RetType (*)(Ts ...), const std::tuple<_Args2 ...>&) [with Dummy = long int; BakedTs = {const char*}; RetType = long int; Ts = {const char*}; typename std::enable_if<(! std::is_void<_Dummy>::value)>::type = void; duk_context = duk_hthread]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:74:19:   required from 'static duk_ret_t dukglue::detail::FuncInfoHolder<RetType, Ts>::FuncRuntime::call_native_function(duk_context*) [with RetType = long int; Ts = {const char*}; duk_ret_t = int; duk_context = duk_hthread]'
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:26:90:   required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = long int; Ts = {const char*}; duk_context = duk_hthread]'
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/include/raylib-duktape-functions.h:93:69:   required from here
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:89:67: error: no matching function for call to 'dukglue::types::DukType<long int>::push<long int>(duk_context*&, std::remove_reference<long int&>::type)'
[build]    89 |      DukType<typename Bare<RetType>::type>::template push<RetType>(ctx, std::move(return_val));
[build]       |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_stack.h:6,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:109:16: note: candidate: 'template<class FullT, class> static void dukglue::types::DukType<T>::push(duk_context*, T&) [with FullT = FullT; <template-parameter-2-2> = <template-parameter-1-2>; T = long int]'
[build]   109 |    static void push(duk_context* ctx, T& value) {
[build]       |                ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:109:16: note:   template argument deduction/substitution failed:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:108:29: error: no type named 'type' in 'struct std::enable_if<false, void>'
[build]   108 |    template<typename FullT, typename = typename std::enable_if< std::is_reference<FullT>::value>::type >
[build]       |                             ^~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:121:16: note: candidate: 'template<class FullT, class> static void dukglue::types::DukType<T>::push(duk_context*, T*) [with FullT = FullT; <template-parameter-2-2> = <template-parameter-1-2>; T = long int]'
[build]   121 |    static void push(duk_context* ctx, T* value) {
[build]       |                ^~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:121:16: note:   template argument deduction/substitution failed:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:120:29: error: no type named 'type' in 'struct std::enable_if<false, void>'
[build]   120 |    template<typename FullT, typename = typename std::enable_if< std::is_pointer<FullT>::value>::type >
[build]       |                             ^~~~~~~~
[build] In file included from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_types.h:160,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_stack.h:6,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/register_function.h:3,
[build]                  from C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/dukglue.h:3,
[build]                  from C:\Users\joao6\Desktop\raylib-duktape\raylib-duktape\tests\raylib-duktape-test.cpp:5:
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static const char* dukglue::types::DukType<const char*>::read(duk_context*, duk_idx_t) [with FullT = const char*]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:93:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    93 |    }
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static int32_t dukglue::types::DukType<int>::read(duk_context*, duk_idx_t) [with FullT = int]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:45:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    45 |   DUKGLUE_SIMPLE_VALUE_TYPE(int32_t, duk_is_number, duk_get_int, duk_push_int, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static float dukglue::types::DukType<float>::read(duk_context*, duk_idx_t) [with FullT = float]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:58:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    58 |   DUKGLUE_SIMPLE_VALUE_TYPE(float, duk_is_number, duk_get_number, duk_push_number, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static uint32_t dukglue::types::DukType<unsigned int>::read(duk_context*, duk_idx_t) [with FullT = unsigned int]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:40:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    40 |   DUKGLUE_SIMPLE_VALUE_TYPE(uint32_t, duk_is_number, duk_get_uint, duk_push_uint, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h: In static member function 'static bool dukglue::types::DukType<bool>::read(duk_context*, duk_idx_t) [with FullT = bool]':
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:28:4: warning: control reaches end of non-void function [-Wreturn-type]
[build]    28 |    } \
[build]       |    ^
[build] C:/Users/joao6/Desktop/raylib-duktape/raylib-duktape/vendor/dukglue/include/dukglue/detail_primitive_types.h:36:3: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE'
[build]    36 |   DUKGLUE_SIMPLE_VALUE_TYPE(bool, duk_is_boolean, 0 != duk_get_boolean, duk_push_boolean, value)
[build]       |   ^~~~~~~~~~~~~~~~~~~~~~~~~
[build] mingw32-make[2]: *** [tests\CMakeFiles\raylib-duktape-test.dir\build.make:76: tests/CMakeFiles/raylib-duktape-test.dir/raylib-duktape-test.cpp.obj] Error 1
[build] mingw32-make[1]: *** [CMakeFiles\Makefile2:1213: tests/CMakeFiles/raylib-duktape-test.dir/all] Error 2
[build] mingw32-make: *** [Makefile:165: all] Error 2
[build] Build finished with exit code 2
RobLoach commented 2 years ago

I switched it to use Cmake fetch :+1: