[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-devel] Enigma: make error
From: |
VarLog |
Subject: |
[Enigma-devel] Enigma: make error |
Date: |
Tue, 19 May 2009 00:56:56 +0400 |
User-agent: |
Mutt/1.4.2.3i |
Здравствуйте. Надеюсь среди разработчиков найдутся те, кто поймёт великий и
могучий язык, на котором я изъясняюсь ;)
Скачал исходные коды enigma-1.01. Особые опции конфигурации не применял,
ограничился лишь --prefix=/opt/games.
Скрипт конфигурации нашёл все необходимые зависимости, и я начал процесс
сборки. Но к моему разочарованию через некоторое время увидел следующее:
>======================================
make[1]: Entering directory `/home/soft/src/enigma-1.01/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include -I/usr/X11R6/include
-I/opt/gtk+/include -I/opt/qt4/include -I/opt/qt3/include -I/opt/python/include
-I/opt/apache2/include -I/opt/games/include -I../lib-src/lua -march=pentium4
-mmmx -msse -msse2 -O3 -MT tolua-tolua.o -MD -MP -MF ".deps/tolua-tolua.Tpo" -c
-o tolua-tolua.o `test -f 'tolua.c' || echo './'`tolua.c; \
then mv -f ".deps/tolua-tolua.Tpo" ".deps/tolua-tolua.Po"; else rm -f
".deps/tolua-tolua.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/include -I/usr/X11R6/include
-I/opt/gtk+/include -I/opt/qt4/include -I/opt/qt3/include -I/opt/python/include
-I/opt/apache2/include -I/opt/games/include -march=pentium4 -mmmx -msse -msse2
-O3 -DENABLE_ASSERT -g -MT dummy.o -MD -MP -MF ".deps/dummy.Tpo" -c -o dummy.o
dummy.cc; \
then mv -f ".deps/dummy.Tpo" ".deps/dummy.Po"; else rm -f
".deps/dummy.Tpo"; exit 1; fi
g++ -march=pentium4 -mmmx -msse -msse2 -O3 -DENABLE_ASSERT -g -L/lib
-L/usr/lib -L/usr/X11R6/lib -L/opt/gtk+/lib -L/opt/qt4/lib -L/opt/qt3/lib
-L/opt/python/lib -L/opt/apache2/lib -L/opt/games/lib -o tolua tolua-tolua.o
tolua-toluabind.o dummy.o -L../lib-src/lua -llua -lxerces -lpng -ldl
tolua-tolua.o: In function `main':
tolua.c:(.text+0x20): undefined reference to `luaL_newstate'
tolua.c:(.text+0x2a): undefined reference to `luaL_openlibs'
tolua.c:(.text+0x52): undefined reference to `lua_setfield'
tolua.c:(.text+0x7a): undefined reference to `lua_setfield'
tolua.c:(.text+0x9c): undefined reference to `lua_createtable'
tolua.c:(.text+0xb4): undefined reference to `lua_setfield'
tolua.c:(.text+0xcc): undefined reference to `lua_createtable'
tolua.c:(.text+0xf4): undefined reference to `lua_setfield'
tolua.c:(.text+0x2ae): undefined reference to `lua_getfield'
tolua.c:(.text+0x2be): undefined reference to `lua_objlen'
tolua-toluabind.o: In function `tolua_tolua_open':
toluabind.c:(.text+0xf): undefined reference to `tolua_open'
toluabind.c:(.text+0x27): undefined reference to `tolua_module'
toluabind.c:(.text+0x37): undefined reference to `tolua_beginmodule'
toluabind.c:(.text+0x61): undefined reference to `tolua_dobuffer'
toluabind.c:(.text+0x97): undefined reference to `tolua_dobuffer'
toluabind.c:(.text+0xcd): undefined reference to `tolua_dobuffer'
toluabind.c:(.text+0x103): undefined reference to `tolua_dobuffer'
toluabind.c:(.text+0x139): undefined reference to `tolua_dobuffer'
tolua-toluabind.o:toluabind.c:(.text+0x16f): more undefined references to
`tolua_dobuffer' follow
tolua-toluabind.o: In function `tolua_tolua_open':
toluabind.c:(.text+0x4e3): undefined reference to `tolua_endmodule'
collect2: выполнение ld завершилось с кодом возврата 1
make[1]: *** [tolua] Ошибка 1
make[1]: Leaving directory `/home/soft/src/enigma-1.01/tools'
make: *** [all-recursive] Ошибка 1
varlog:·>
>======================================
Очевидно, ld не обнаружил необходимую библиотеку. Также понятно, что это
связано с lua.
У меня установленн Lua версии 5.1, что корректно указано в
/usr/lib/pkgconfig/lua.pc
Проверил библиотеки:
-rw-r--r-- 1 root root 210960 Май 18 19:19 /usr/lib/liblua.a
-rw-r--r-- 1 root root 82640 Май 15 20:40 /usr/lib/liblualib.a
Наконец, присудствуют следующие заголовочные файлы:
-rw-r--r-- 1 root root 22299 Фев 11 2008 /usr/include/luaconf.h
-rw-r--r-- 1 root root 11688 Авг 6 2008 /usr/include/lua.h
-rw-r--r-- 1 root root 191 Дек 23 2004 /usr/include/lua.hpp
-rw-r--r-- 1 root root 1026 Дек 27 2007 /usr/include/lualib.h
Самостоятельно не смог решить проблему, поэтому и пишу вам. Возможно нехватает
какого-то хендера и/или библиотеки? Пробовал собрать enigma с --disable-cxxlua,
проблема осталась. Надеюсь на помощь.
Linux x86
GCC 4.2.3
GNU Binutils 2.19
Lua 5.1.4
- [Enigma-devel] Enigma: make error,
VarLog <=