Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing imgraph using luarocks #7

Open
wmaiouiru opened this issue May 21, 2014 · 0 comments
Open

Installing imgraph using luarocks #7

wmaiouiru opened this issue May 21, 2014 · 0 comments

Comments

@wmaiouiru
Copy link

Helllo, I tried to install imgraph using luarocks following the tutorial from https://github.com/torch/torch7/wiki/Cheatsheet#installing-and-running-torch however, I received the following errors. I was wondering what is the best way to fix this?

In file included from /tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/init.cpp:31:
/tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/mergetree.h:28:19: error: use of undeclared identifier 'luaL_typerror'; did you mean 'luaT_typerror'?
  if (mt == NULL) luaL_typerror(L, index, MT);
                  ^~~~~~~~~~~~~
                  luaT_typerror
/usr/local/include/luaT.h:63:14: note: 'luaT_typerror' declared here
LUAT_API int luaT_typerror(lua_State *L, int ud, const char *tname);
             ^
In file included from /tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/init.cpp:31:
/tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/mergetree.h:37:19: error: use of undeclared identifier 'luaL_typerror'; did you mean 'luaT_typerror'?
  if (mt == NULL) luaL_typerror(L, index, MT);
                  ^~~~~~~~~~~~~
                  luaT_typerror
/usr/local/include/luaT.h:63:14: note: 'luaT_typerror' declared here
LUAT_API int luaT_typerror(lua_State *L, int ud, const char *tname);
             ^
In file included from /tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/init.cpp:31:
/tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/mergetree.h:102:14: error: unknown type name 'luaL_reg'; did you mean 'luaL_Reg'?
static const luaL_reg MergeTree_meta[] = {
             ^~~~~~~~
             luaL_Reg
/opt/local/include/lauxlib.h:26:3: note: 'luaL_Reg' declared here
} luaL_Reg;
  ^
In file included from /tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/init.cpp:31:
/tmp/luarocks_imgraph-1.0-0-4149/lua---imgraph/mergetree.h:112:3: error: use of undeclared identifier 'luaL_openlib'
  luaL_openlib(L, 0, MergeTree_meta, 0);    /* fill metatable */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant