hack0z / luject

🍹A static injector of dynamic library for application (android, iphoneos, macOS, windows, linux)
https://tboox.org
Apache License 2.0
320 stars 50 forks source link

luject master xmake failed #11

Closed q3593216 closed 1 year ago

q3593216 commented 1 year ago
xmake version :
xmake v2.7.9+20230515, A cross-platform build utility based on Lua

issue print to terminal

[ 25%]: cache compiling.release src/lni/main.cpp
/usr/bin/gcc -c -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++14 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -isystem /home/jiachengy/.xmake/packages/l/libxmake/v2.7.1/e20dade54e864035be295e18a062200d/include -isystem /home/jiachengy/.xmake/packages/l/libxmake/v2.7.1/e20dade54e864035be295e18a062200d/include/lua -isystem /home/jiachengy/.xmake/packages/l/lief/0.11.5/5fd114f41ff6445fb276c359a1d679ec/include -DNDEBUG -o build/.objs/luject/linux/x86_64/release/src/lni/main.cpp.o src/lni/main.cpp
error: src/lni/main.cpp: In function ‘tb_int_t lni_pe_add_libraries(lua_State*)’:
src/lni/main.cpp:44:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
   44 |         tb_size_t n = lua_objlen(lua, 3);
      |                       ^~~~~~~~~~
      |                       lua_len
src/lni/main.cpp: In function ‘tb_int_t lni_elf_add_libraries(lua_State*)’:
src/lni/main.cpp:86:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
   86 |         tb_size_t n = lua_objlen(lua, 3);
      |                       ^~~~~~~~~~
      |                       lua_len
src/lni/main.cpp: In function ‘tb_int_t lni_macho_add_libraries(lua_State*)’:
src/lni/main.cpp:161:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
  161 |         tb_size_t n = lua_objlen(lua, 3);
      |                       ^~~~~~~~~~
      |                       lua_len
src/lni/main.cpp: In function ‘tb_int_t main(tb_int_t, tb_char_t**)’:
src/lni/main.cpp:223:30: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
  223 |     tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
      |                              ^~~~~
src/lni/main.cpp:223:37: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
  223 |     tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
      |                                     ^~~~
src/lni/main.cpp:223:43: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
  223 |     tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
      |                                           ^~~~~~~~~~
ghotm commented 1 year ago

10

waruqi commented 1 year ago

try it again.

xrepo update-repo
xrepo remove --all -y libxmake
xmake f -c
xmake
q3593216 commented 1 year ago

tks