RobLoach / raylib-lua-sol

A simple and easy-to-use Lua library to enjoy videogames programming
http://www.raylib.com/
Other
94 stars 15 forks source link

make: *** [Makefile:101: all] Error 2 #45

Open gnuchanos opened 1 year ago

gnuchanos commented 1 year ago
archkubi@ThisIsMyKingdomCome ~/D/raylib-lua-sol (master)> cmake -B build .
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found raylib: /usr/lib/libraylib.so (Required is at least version "3.0.0") 
-- Configuring done (6.5s)
-- Generating done (0.1s)
-- Build files have been written to: /home/archkubi/Downloads/raylib-lua-sol/build
archkubi@ThisIsMyKingdomCome ~/D/raylib-lua-sol (master)> cmake --build ./build --config Release
[  2%] Building C object CMakeFiles/lua.dir/vendor/lua/lapi.c.o
[  5%] Building C object CMakeFiles/lua.dir/vendor/lua/lcode.c.o
[  8%] Building C object CMakeFiles/lua.dir/vendor/lua/lctype.c.o
[ 11%] Building C object CMakeFiles/lua.dir/vendor/lua/ldebug.c.o
[ 14%] Building C object CMakeFiles/lua.dir/vendor/lua/ldo.c.o
[ 17%] Building C object CMakeFiles/lua.dir/vendor/lua/ldump.c.o
[ 20%] Building C object CMakeFiles/lua.dir/vendor/lua/lfunc.c.o
[ 22%] Building C object CMakeFiles/lua.dir/vendor/lua/lgc.c.o
[ 25%] Building C object CMakeFiles/lua.dir/vendor/lua/llex.c.o
[ 28%] Building C object CMakeFiles/lua.dir/vendor/lua/lmem.c.o
[ 31%] Building C object CMakeFiles/lua.dir/vendor/lua/lobject.c.o
[ 34%] Building C object CMakeFiles/lua.dir/vendor/lua/lopcodes.c.o
[ 37%] Building C object CMakeFiles/lua.dir/vendor/lua/lparser.c.o
[ 40%] Building C object CMakeFiles/lua.dir/vendor/lua/lstate.c.o
[ 42%] Building C object CMakeFiles/lua.dir/vendor/lua/lstring.c.o
[ 45%] Building C object CMakeFiles/lua.dir/vendor/lua/ltable.c.o
[ 48%] Building C object CMakeFiles/lua.dir/vendor/lua/ltm.c.o
[ 51%] Building C object CMakeFiles/lua.dir/vendor/lua/lundump.c.o
[ 54%] Building C object CMakeFiles/lua.dir/vendor/lua/lvm.c.o
[ 57%] Building C object CMakeFiles/lua.dir/vendor/lua/lzio.c.o
[ 60%] Building C object CMakeFiles/lua.dir/vendor/lua/lauxlib.c.o
[ 62%] Building C object CMakeFiles/lua.dir/vendor/lua/lbaselib.c.o
[ 65%] Building C object CMakeFiles/lua.dir/vendor/lua/lcorolib.c.o
[ 68%] Building C object CMakeFiles/lua.dir/vendor/lua/ldblib.c.o
[ 71%] Building C object CMakeFiles/lua.dir/vendor/lua/liolib.c.o
[ 74%] Building C object CMakeFiles/lua.dir/vendor/lua/lmathlib.c.o
[ 77%] Building C object CMakeFiles/lua.dir/vendor/lua/loslib.c.o
[ 80%] Building C object CMakeFiles/lua.dir/vendor/lua/lstrlib.c.o
[ 82%] Building C object CMakeFiles/lua.dir/vendor/lua/ltablib.c.o
[ 85%] Building C object CMakeFiles/lua.dir/vendor/lua/lutf8lib.c.o
[ 88%] Building C object CMakeFiles/lua.dir/vendor/lua/loadlib.c.o
[ 91%] Building C object CMakeFiles/lua.dir/vendor/lua/linit.c.o
[ 94%] Linking C static library liblua.a
[ 94%] Built target lua
[ 97%] Building CXX object bin/CMakeFiles/raylib-lua-sol.dir/raylib-lua-sol.cpp.o
In file included from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack.hpp:28,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/sol.hpp:50,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/raylib-lua-sol.cpp:54:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void sol::detail::align_one(std::size_t, std::size_t, void*&)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:88:51: error: ‘numeric_limits’ is not a member of ‘std’
   88 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:88:77: error: expected primary-expression before ‘>’ token
   88 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:88:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
   88 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
In file included from /usr/include/c++/13.2.1/functional:67,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/string_view.hpp:31,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/traits.hpp:31,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/forward_detail.hpp:29,
                 from /home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/sol.hpp:48:
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void* sol::detail::align_usertype_pointer(void*)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:111:51: error: ‘numeric_limits’ is not a member of ‘std’
  111 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:111:77: error: expected primary-expression before ‘>’ token
  111 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:111:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  111 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void* sol::detail::align_usertype_unique_destructor(void*)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:133:51: error: ‘numeric_limits’ is not a member of ‘std’
  133 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:133:77: error: expected primary-expression before ‘>’ token
  133 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:133:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  133 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void* sol::detail::align_usertype_unique_tag(void*)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:155:51: error: ‘numeric_limits’ is not a member of ‘std’
  155 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:155:77: error: expected primary-expression before ‘>’ token
  155 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:155:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  155 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void* sol::detail::align_usertype_unique(void*)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:178:51: error: ‘numeric_limits’ is not a member of ‘std’
  178 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:178:77: error: expected primary-expression before ‘>’ token
  178 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:178:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  178 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp: In function ‘void* sol::detail::align_user(void*)’:
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:195:51: error: ‘numeric_limits’ is not a member of ‘std’
  195 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                   ^~~~~~~~~~~~~~
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:195:77: error: expected primary-expression before ‘>’ token
  195 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                             ^
/home/archkubi/Downloads/raylib-lua-sol/bin/../vendor/sol2/include/sol/stack_core.hpp:195:80: error: ‘::max’ has not been declared; did you mean ‘std::max’?
  195 |                         std::size_t space = (std::numeric_limits<std::size_t>::max)();
      |                                                                                ^~~
      |                                                                                std::max
/usr/include/c++/13.2.1/bits/stl_algo.h:5805:5: note: ‘std::max’ declared here
 5805 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
make[2]: *** [bin/CMakeFiles/raylib-lua-sol.dir/build.make:76: bin/CMakeFiles/raylib-lua-sol.dir/raylib-lua-sol.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:936: bin/CMakeFiles/raylib-lua-sol.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
gnuchanos commented 1 year ago

make test result

Test project /home/archkubi/Downloads/raylib-lua-sol/build
    Start 1: raylib-lua-sol-tests
Could not find executable /home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol
Looked in the following places:
/home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Release/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Release/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Debug/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Debug/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/MinSizeRel/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/MinSizeRel/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/RelWithDebInfo/raylib-lua-sol
/home/archkubi/Downloads/raylib-lua-sol/build/bin/RelWithDebInfo/raylib-lua-sol                          
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Deployment/raylib-lua-sol                              
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Deployment/raylib-lua-sol                              
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Development/raylib-lua-sol                             
/home/archkubi/Downloads/raylib-lua-sol/build/bin/Development/raylib-lua-sol                             
home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol                                          
home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol                                          
home/archkubi/Downloads/raylib-lua-sol/build/bin/Release/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Release/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Debug/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Debug/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/MinSizeRel/raylib-lua-sol                                                
home/archkubi/Downloads/raylib-lua-sol/build/bin/MinSizeRel/raylib-lua-sol                                                
home/archkubi/Downloads/raylib-lua-sol/build/bin/RelWithDebInfo/raylib-lua-sol                                            
home/archkubi/Downloads/raylib-lua-sol/build/bin/RelWithDebInfo/raylib-lua-sol                                            
home/archkubi/Downloads/raylib-lua-sol/build/bin/Deployment/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Deployment/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Development/raylib-lua-sol
home/archkubi/Downloads/raylib-lua-sol/build/bin/Development/raylib-lua-sol
Unable to find executable: /home/archkubi/Downloads/raylib-lua-sol/build/bin/raylib-lua-sol
1/1 Test #1: raylib-lua-sol-tests .............***Not Run   0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.04 sec

The following tests FAILED:
          1 - raylib-lua-sol-tests (Not Run)
Errors while running CTest
Output from these tests are in: /home/archkubi/Downloads/raylib-lua-sol/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
make: *** [Makefile:71: test] Error 8
RobLoach commented 1 year ago

It is definitely super old. Could use some build updates.

gnuchanos commented 1 year ago

can you tell me how i do that ? and why super old thing in main page ? 2023-10-28-112120_851x275_scrot

gnuchanos commented 1 year ago

helloooooooooooooo

wtjcn commented 5 months ago

in CMakeLists.txt, change

target_compile_definitions(lua PRIVATE LUA_COMPAT_5_2) to: target_compile_definitions(lua PRIVATE LUA_COMPAT_5_2 LUA_USE_POSIX)