Iris2.de

Iris2-Forum
It is currently Fri Apr 26, 2024 6:51 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Sep 17, 2007 9:54 pm 
Offline

Joined: Mon Sep 17, 2007 9:45 pm
Posts: 2
I downloaded both lua 5.0 and the latest Lua 5.1.2, released on 02 Apr 2007.
then i installed with the instructions from the package, but i modified like this: ./configure --prefix=/usr
then I modified ./config to look like:
Code:
# Locations for "make install". You may need to be root do "make install".
#
INSTALL_ROOT= /usr
INSTALL_BIN= $(INSTALL_ROOT)/bin
INSTALL_INC= $(INSTALL_ROOT)/include
INSTALL_LIB= $(INSTALL_ROOT)/lib
INSTALL_MAN= $(INSTALL_ROOT)/man/man1

# You may prefer to use "install" instead of "cp" if you have it.
# If you use "install", you may also want to change the permissions after -m.
#
INSTALL_EXEC= cp
INSTALL_DATA= cp
#INSTALL_EXEC= install -m 0755
#INSTALL_DATA= install -m 0644

# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

V=5.0

BIN= $(LUA)/bin
INC= $(LUA)/include
LIB= $(LUA)/lib

INCS= -I$(INC) $(EXTRA_INCS)
DEFS= $(NUMBER) $(EXTRA_DEFS)

CFLAGS= $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)

# (end of config)

so: make; make install; make so; make soinstall
then i tried to run ./configure (iris2) but it returned:
Code:
checking for lualib50... configure: error: Package requirements (lualib50) were not met:

No package 'lualib50' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables lualib50_CFLAGS
and lualib50_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

i dont know what to do...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 6:05 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
hi !
what linux distro are you on ?

we use lua50 , try uninstalling lua51, it is not backwards compatible.

if it is debian or ubuntu based, please try
apt-get install liblua50 liblualib50 lua50 liblua50-dev liblualib50-dev
or similar.

some things you can try :

if you built lua from source, be sure to do "make install"

try "locate liblua" and add the path where it is to /etc/ld.so.conf

execute /sbin/ldconfig after changing something

the lua packages might have different names, and there might be only one instead of lua and lualib,
try editing iris/configure.ac and adjust the package names, check the output of "pkg-config --list-all | grep lua"

hope this helps, good luck !

edit : if the problem persists or there are other problems, take a look at this (for a different project, but it has a very similar codebase as iris) http://sfz.schattenkind.net/wiki/index. ... leShooting


Top
 Profile  
 
 Post subject: Well...
PostPosted: Tue Sep 18, 2007 7:51 pm 
Offline

Joined: Mon Sep 17, 2007 9:45 pm
Posts: 2
I modified the file configure.ac to look like:
Code:
PKG_CHECK_MODULES(lualib50, [lua])
AC_SUBST(lualib50_CFLAGS)
AC_SUBST(lualib50_LIBS)

PKG_CHECK_MODULES(lua50, [lua])
AC_SUBST(lua50_CFLAGS)
AC_SUBST(lua50_LIBS)

because when i tried: pkg-config --list-all | grep lua
it returned: "lua Lua - An Extensible Extension Language"

ok, after that, i runned "sh cleanall.sh" then "sh bootstrap && sh configure && make" again. The configure step went very well, like this:
Code:
[root@xblade iris_2.0.1305]# sh configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for atexit... yes
checking for gethostbyname... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strerror... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether time.h and sys/time.h may both be included... yes
checking for size_t... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for lualib50... yes
checking for lua50... yes
checking for openal... yes
checking for vorbisfile... yes
checking for alutGetMajorVersion in -lalut... no
checking for IMG_Load_RW in -lSDL_image... yes
checking for OGRE... yes
checking for OIS... yes
configure: *** OIS found ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands

then when i tried make:
the script returnet a lot of information like these:
Code:
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1549: undefined reference to `luaopen_debug'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1674: undefined reference to `lua_dofile'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1703: undefined reference to `lua_dofile'
scripting.o: In function `l_Client_SetSkybox':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:626: undefined reference to `luaL_checklstring'
scripting.o: In function `l_OgreSetShadowTexturePixelFormat':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1161: undefined reference to `luaL_checknumber'
scripting.o: In function `l_OgreSetShadowTextureFadeEnd':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1155: undefined reference to `luaL_checknumber'
scripting.o: In function `l_OgreSetShadowTextureFadeStart':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1149: undefined reference to `luaL_checknumber'
scripting.o: In function `l_OgreSetShadowDirLightTextureOffset':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1143: undefined reference to `luaL_checknumber'
scripting.o: In function `l_OgreSetShadowFarDistance':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1137: undefined reference to `luaL_checknumber'
scripting.o:/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1129: more undefined references to `luaL_checknumber' follow
scripting.o: In function `l_OgreShadowTechnique':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1112: undefined reference to `luaL_checklstring'
scripting.o: In function `l_CreateSceneManager':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1056: undefined reference to `luaL_checklstring'
scripting.o: In function `l_ProjectSizeAndPos':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1043: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1043: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1043: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1043: undefined reference to `luaL_checknumber'
scripting.o: In function `l_ProjectPos':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1031: undefined reference to `luaL_checknumber'
scripting.o:/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1031: more undefined references to `luaL_checknumber' follow
scripting.o: In function `l_Client_DeleteLight':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:726: undefined reference to `luaL_checklstring'
scripting.o: In function `l_Client_AddDirectionalLight':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:719: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:719: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:719: undefined reference to `luaL_checknumber'
scripting.o: In function `l_Client_AddPointLight':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:704: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:704: undefined reference to `luaL_checknumber'
scripting.o:/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:704: more undefined references to `luaL_checknumber' follow
scripting.o: In function `l_OgreSetShadowTextureReceiverMaterial':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1235: undefined reference to `luaL_checklstring'
scripting.o: In function `l_OgreSetShadowTextureCasterMaterial':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:1229: undefined reference to `luaL_checklstring'
scripting.o: In function `l_OgreAddCompositor':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:260: undefined reference to `luaL_checklstring'
scripting.o: In function `cLuaBind<cViewport>::checkudata_alive(lua_State*, int)':
/home/hugo/Download/iris_2.0.1305/src/../include/luabind.h:261: undefined reference to `luaL_argerror'
scripting.o: In function `l_TerrainRayPick':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:801: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:801: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:801: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:802: undefined reference to `luaL_checknumber'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:802: undefined reference to `luaL_checknumber'
scripting.o:/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:802: more undefined references to `luaL_checknumber' follow
scripting.o: In function `l_CreateGrannyHuedTexture':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:389: undefined reference to `luaL_checklstring'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:390: undefined reference to `luaL_checklstring'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:392: undefined reference to `luaL_checknumber'
scripting.o: In function `l_HueMesh':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:461: undefined reference to `luaL_checklstring'
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:464: undefined reference to `luaL_checknumber'
scripting.o: In function `cLuaBind<cViewport>::checkudata(lua_State*, int)':
/home/hugo/Download/iris_2.0.1305/src/../include/luabind.h:251: undefined reference to `luaL_checkudata'
scripting.o: In function `l_OgreRemoveCompositor':
/home/hugo/Download/iris_2.0.1305/src/scripting.cpp:276: undefined reference to `luaL_checklstring'
scripting.o: In function `cLuaBind<cViewport>::checkudata_alive(lua_State*, int)':
/home/hugo/Download/iris_2.0.1305/src/../include/luabind.h:239: undefined reference to `luaL_checkudata'
/home/hugo/Download/iris_2.0.1305/src/../include/luabind.h:261: undefined reference to `luaL_argerror'
/home/hugo/Download/iris_2.0.1305/src/../include/luabind.h:253: undefined reference to `luaL_argerror'
collect2: ld returned 1 exit status
make[1]: ** [irisogre] Erro 1
make: ** [all-recursive] Erro 1

im not very good in english, but i'll try to answer you.

my distro: fedora core 7, kernel-2.6.22.5-76.fc7-i686, lua-5.0.tar.gz from http://www.lua.org/ftp/

i tried: yum search lua (it searches everything that match *lua*) but it returned nothing important.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 7:39 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
the compiler finds the lua header files correctly, but the linker does not find the lib files.
sorry, no idea what is going wrong here.

please try
locate liblua | grep "\.a"
if locate outputs the following two lines :
/usr/lib/liblualib50.a
/usr/lib/liblua50.a
add the following to the line with irisogre_LDFLAGS in src/Makefile.am
-llualib50 -llua50 -L/usr/lib
(remove the lib at the beginning of the filenames and the .a and add them with -l and add the folder with -L)

*grumble* why is autoconf called autoconf if it cannot handle things like this automatically *argh*


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group