Issues

Issue #394 invalid

Compiling error in wrap_Decoder.cpp

Anonymous created an issue

{{{

!bash

zenitur@linux-athlon64x2:~/love> hg clone https://bitbucket.org/rude/love destination directory: love requesting all changes adding changesets adding manifests adding file changes added 1029 changesets with 5316 changes to 898 files (+3 heads) updating to branch default 529 files updated, 0 files merged, 0 files removed, 0 files unresolved

...

zenitur@linux-athlon64x2:~/love/love> make (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/zenitur/love/love/platform/unix/missing --run autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h make all-recursive make[1]: Вход в каталог /home/zenitur/love/love' Making all in src make[2]: Вход в каталог/home/zenitur/love/love/src' make[3]: Вход в каталог /home/zenitur/love/love/src' depbase=echo modules/sound/wrap_Decoder.o | sed 's|[^/]*$|.deps/&|;s|.o$||';\ g++ -DHAVE_CONFIG_H -I. -I./modules -I./libraries -I/usr/include/AL -I/usr/include/freetype2 -I/usr/include/SDL -D_FILE_OFFSET_BITS=64 -g -O2 -MT modules/sound/wrap_Decoder.o -MD -MP -MF $depbase.Tpo -c -o modules/sound/wrap_Decoder.o modules/sound/wrap_Decoder.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from modules/sound/wrap_Decoder.h:25:0, from modules/sound/wrap_Decoder.cpp:21: ./common/runtime.h:87:9: error: ‘luaL_Reg’ does not name a type ./common/runtime.h:194:66: error: ‘luaL_Reg’ does not name a type ./common/runtime.h:194:81: error: ISO C++ forbids declaration of ‘f’ with no type ./common/runtime.h: In function ‘T* love::luax_getmodule(lua_State*, const char*, love::bits)’: ./common/runtime.h:366:24: error: there are no arguments to ‘lua_getfield’ that depend on a template parameter, so a declaration of ‘lua_getfield’ must be available ./common/runtime.h:366:24: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) modules/sound/wrap_Decoder.cpp: In function ‘int love::sound::w_Decoder_getChannels(lua_State*)’: modules/sound/wrap_Decoder.cpp:35:38: error: ‘lua_pushinteger’ was not declared in this scope modules/sound/wrap_Decoder.cpp: In function ‘int love::sound::w_Decoder_getBits(lua_State*)’: modules/sound/wrap_Decoder.cpp:42:34: error: ‘lua_pushinteger’ was not declared in this scope modules/sound/wrap_Decoder.cpp: In function ‘int love::sound::w_Decoder_getSampleRate(lua_State*)’: modules/sound/wrap_Decoder.cpp:49:40: error: ‘lua_pushinteger’ was not declared in this scope modules/sound/wrap_Decoder.cpp: At global scope: modules/sound/wrap_Decoder.cpp:53:15: error: ‘luaL_Reg’ does not name a type modules/sound/wrap_Decoder.cpp: In function ‘int love::sound::luaopen_decoder(lua_State*)’: modules/sound/wrap_Decoder.cpp:62:43: error: ‘functions’ was not declared in this scope make[3]: *** [modules/sound/wrap_Decoder.o] Ошибка 1 make[3]: Выход из каталога/home/zenitur/love/love/src' make[2]: [all-recursive] Ошибка 1 make[2]: Выход из каталога /home/zenitur/love/love/src' make[1]: *** [all-recursive] Ошибка 1 make[1]: Выход из каталога/home/zenitur/love/love' make: [all] Ошибка 2 zenitur@linux-athlon64x2:~/love/love> }}}

Comments (1)

  1. vrld
    • run platform/unix/automagic after cloning
    • run ./configure before make
    • be sure to have all dependencies installed on your system. In this case you are missing Lua.
  2. Log in to comment