tolua++沒法用
(金慶的專欄)
覺得從C++頭文件生成lua綁定代碼的方法比較簡單,想試試tolua++.
從Github獲取toluapp:
https://github.com/LuaDist/toluapp.git
下載 lua-5.3.2.
Windows下 scons all 不能用:
gcc -o src\bin\tolua.o -c /nologo -Iinclude src\bin\tolua.c
'gcc' 不是內(nèi)部或外部命令,也不是可運行的程序或批處理文件。
scons: *** [src\bin\tolua.o] Error 1
scons: building terminated because of errors.
win32下有個vc7的工程,發(fā)現(xiàn)只有 tolua++.exe 項目,沒有 lib 項目,應(yīng)該沒用。
用CMake生成VS2015的sln, 編譯出現(xiàn)錯誤:
toluapp\src\lib\tolua_map.c(414): error C2065: “LUA_GLOBALSINDEX”: 未聲明的標識符
LUA_GLOBALSINDEX應(yīng)該是舊版本Lua的標識符,現(xiàn)已刪除。
tolua++ porting to 5.2
http://lua-users.org/lists/lua-l/2013-01/msg00352.html
提供了一個補丁。
正奇怪為什么該補丁沒有應(yīng)用到Github代碼庫中,看下面有一個回復(fù):
http://lua-users.org/lists/lua-l/2013-01/msg00362.html
...the core architecture is profoundly broken, ...
I would recommend using a different project rather than trying to maintain it...
(金慶的專欄)
覺得從C++頭文件生成lua綁定代碼的方法比較簡單,想試試tolua++.
從Github獲取toluapp:
https://github.com/LuaDist/toluapp.git
下載 lua-5.3.2.
Windows下 scons all 不能用:
gcc -o src\bin\tolua.o -c /nologo -Iinclude src\bin\tolua.c
'gcc' 不是內(nèi)部或外部命令,也不是可運行的程序或批處理文件。
scons: *** [src\bin\tolua.o] Error 1
scons: building terminated because of errors.
win32下有個vc7的工程,發(fā)現(xiàn)只有 tolua++.exe 項目,沒有 lib 項目,應(yīng)該沒用。
用CMake生成VS2015的sln, 編譯出現(xiàn)錯誤:
toluapp\src\lib\tolua_map.c(414): error C2065: “LUA_GLOBALSINDEX”: 未聲明的標識符
LUA_GLOBALSINDEX應(yīng)該是舊版本Lua的標識符,現(xiàn)已刪除。
tolua++ porting to 5.2
http://lua-users.org/lists/lua-l/2013-01/msg00352.html
提供了一個補丁。
正奇怪為什么該補丁沒有應(yīng)用到Github代碼庫中,看下面有一個回復(fù):
http://lua-users.org/lists/lua-l/2013-01/msg00362.html
...the core architecture is profoundly broken, ...
I would recommend using a different project rather than trying to maintain it...