You are not logged in.
Pages: 1
Topic closed
I would like to install the development version of UFO: alien invasion as I want to see the latest features they are working on ..
I tried installing it via package manager and then makepkg but same result. it comes with this message:
/usr/bin/ld: cannot find -llua5.1
I check and have the package lua installed so I'm not sure what to do.
If anyone knows, please tell me :-)
Thanks for reading and looking forward to some replies!
Offline
Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
The "lua" package is at 5.3, which obviously isn't what it's looking for.
Offline
Lua5.1 is available in the repo... have you installed it?
Offline
I didn't know there would be a downgraded version. And I could have both lua and lua51, which is nice as VLC uses the latter.
Unfortunately, no success :-(
This is my attempt:
17:06:24^edwooger▓▒░$pacaur -S ufoai-git
:: Package(s) ufoai-git not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...
AUR Packages (1): ufoai-git-latest
:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
Already up-to-date.
:: View ufoai-git PKGBUILD? [Y/n] n
:: Checking ufoai-git integrity...
==> Making package: ufoai-git 1:2.6.42188.8e2a1a5-1 (Fri 29 Jan 17:06:36 GMT 2016)
==> Retrieving sources...
-> Updating ufoai git repo...
Fetching origin
==> Validating source files with sha256sums...
ufoai ... Skipped
:: Building ufoai-git package(s)...
==> Making package: ufoai-git 1:2.6.44676.c4b67b0-1 (Fri 29 Jan 17:06:38 GMT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating ufoai git repo...
Fetching origin
==> Validating source files with sha256sums...
ufoai ... Skipped
==> Extracting sources...
-> Creating working copy of ufoai git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
use c compiler: cc
use c++ compiler: c++
Compile for linux
Compile for x86_64
Compile in release mode
Disable ccache
Added CFLAGS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
Added LDFLAGS -Wl,-O1,--sort-common,--as-needed,-z,relro
Found cc cc
Found cxx c++
Using bindir /usr/bin/
Using datadir /usr/share/ufoai
Using libdir /usr/lib/
Using localedir /usr/share/ufoai/base/i18n/
Using prefix /usr
Enable hard linked cgame
Use signal handler
Setting custom data directory
Setting custom library directory
Setting custom locale directory
Found zip from zip
Found python from python
Could not find doxygen from doxygen
Found xvid.h
Found theora/theora.h
Found execinfo.h
Could not find bfd.h
Found sys/utsname.h
Found link.h
Found jpeglib.h
Found zlib.h
Found png.h
Found curl/curl.h
Found lua.h
Could not find mxml.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Found SDL.h
Found SDL_mixer.h
Found SDL_ttf.h
Could not find picomodel.h
Found gtk/gtk.h
Found gtksourceview/gtksourceview.h
Found libxml/parser.h
Found AL/al.h
Found gtk/gtkglwidget.h
Build modules:
Build cgame-campaign
Build cgame-multiplayer
Build cgame-skirmish
Build game
Build memory
Build testall
Build ufo2map
Build ufoded
Build ufo
Build ufomodel
Build uforadiant
Build ufoslicer
==> Removing existing $pkgdir/ directory...
==> Starting build()...
===> LD [base/game.so]
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionflee(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1982: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionhide(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1461: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionmission(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1772: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionapproach(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1545: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionwander(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1816: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o:/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1829: more undefined references to `lua_tonumberx' follow
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_ActorThink(Player&, Actor*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2114: undefined reference to `lua_getglobal'
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2117: undefined reference to `lua_pcallk'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_TeamThink(Player&)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2163: undefined reference to `lua_getglobal'
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2166: undefined reference to `lua_pcallk'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_InitActor(Actor*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2221: undefined reference to `lua_getglobal'
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2231: undefined reference to `lua_pcallk'
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2237: undefined reference to `lua_setglobal'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_waypoints(lua_State*)':
/tmp/pacaurtmp-edwooger/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1684: undefined reference to `lua_tonumberx'
collect2: error: ld returned 1 exit status
Makefile:171: recipe for target 'base/game.so' failed
make: *** [base/game.so] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: Installing ufoai-git package(s)...
:: failed to build ufoai-git package(s)
I did install ufoai to see if that installed but everything should be clear as I uninstalled it ..
Offline
I can confirm both problems:
when lua51 is not installed but lua 5.3 is, configure finds a lua.h but later fails because is not lua51:
Found lua.h
...
...
===> CXX [game] src/game/inventory.cpp
===> LD [base/game.so]
/usr/bin/ld: cannot find -llua5.1
collect2: error: ld returned 1 exit status
make: *** [Makefile:173: base/game.so] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: gtksourceview2 is a new orphan package
:: sdl2_image is a new orphan package
:: sdl2_mixer is a new orphan package
:: sdl2_ttf is a new orphan package
:: failed to build ufoai-git package(s)
then when lua51 is installed fails the compilation, maybe because lua 5.3 is beeing used for something:
===> LD [base/game.so]
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionflee(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1982: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionhide(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1461: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionmission(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1772: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionapproach(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1545: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_positionwander(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1816: undefined reference to `lua_tonumberx'
release-linux-x86_64/game/game/g_ai_lua.cpp.o:/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1829: more undefined references to `lua_tonumberx' follow
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_ActorThink(Player&, Actor*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2114: undefined reference to `lua_getglobal'
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2117: undefined reference to `lua_pcallk'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_TeamThink(Player&)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2163: undefined reference to `lua_getglobal'
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2166: undefined reference to `lua_pcallk'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_InitActor(Actor*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2221: undefined reference to `lua_getglobal'
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2231: undefined reference to `lua_pcallk'
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:2237: undefined reference to `lua_setglobal'
release-linux-x86_64/game/game/g_ai_lua.cpp.o: In function `AIL_waypoints(lua_State*)':
/home/ilario/.cache/pacaur/ufoai-git/src/ufoai/src/game/g_ai_lua.cpp:1684: undefined reference to `lua_tonumberx'
collect2: error: ld returned 1 exit status
make: *** [Makefile:173: base/game.so] Error 1
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build ufoai-git package(s)
A workaround is to enter the compilation directory
~/.cache/pacaur/ufoai-git/src/ufoai/
and issue:
./configure --with-embedded-lua5.1
and then
make
So looks an error in ufoai configure script which detects lua even if is an incompatible version.
Offline
That package looks like it needs to be changed,as it doesn't even list lua as dependency .
Either it's forced to use it's own lua or it should depend on lua51 .
Also the configurepart shouldn't be in prepare but in build function .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
I filed a bug on lua package, this would fix the first problem in case lua51 is not installed (as Ufoai would correctly detect that there's no lua51 and it would use the embedded one).
https://bugs.archlinux.org/task/52040
Otherwise a fix on ufoai side would be:
diff --git a/configure b/configure
index c1f9379..2ca8e02 100755
--- a/configure
+++ b/configure
@@ -238,7 +238,7 @@ check_headers() {
check_header "zlib.h" "zlib"
check_header "png.h" "libpng"
check_header_bundled "curl/curl.h" "libcurl"
- check_header_bundled "lua.h" "lua5.1"
+ check_header_bundled "lua5.1/lua.h"
check_header_bundled "mxml.h" "mxml"
check_header "SDL.h" "sdl"
check_header "SDL_mixer.h" "SDL_mixer"
Offline
I filed a bug on lua package, this would fix the first problem in case lua51 is not installed (as Ufoai would correctly detect that there's no lua51 and it would use the embedded one).
And that bug report is about to be closed unless you can tell me why it's a lua problem and not a Ufoai problem.
Offline
I just answered there.
Let me know if I should send a patch for ufoai instead.
Offline
The bug report on lua package has been closed.
I sent a patch to ufoai:
http://ufoai.org/bugs/ufoalieninvasion/issues/5632
Offline
The patch on ufoai is stuck (appears that is Gentoo the lua 5.1 libs location is different from Arch which in turn is different from Debian).
Do anyone have a better patch?
Offline
configure usually supports a --includedir=DIR setting .
Try setting that to arch lua51 location .
If that doesn't find other things, then maybe adding a custom includedir setting that gets added to includedir path might help.
Last edited by Lone_Wolf (2016-12-08 01:16:56)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Hi there!
I'm having the exact same problem and I also tried the changes above on the file configure (since lua5.1 is in fact under /usr/include/lua5.1.
BTW, I believe the change should be:
check_header_bundled "lua5.1/lua.h" "lua5.1"
And I'm also downloading the source directly from the UFO git repo. I wouldn't like to remove lua5.3 and downgrade lua to 5.1. Is there any news / ideas to solve this problem?
And BTW, "./configure" also fails to find the file "bfd.h" but I have binutils installed and the header file does exist under /src/include.,. Weird...
I'm also posting this issue on UFO AI forum:
http://ufoai.org/forum/index.php/topic,9096.0.html
Kind regards,
Carlos
Carlos Santos
Offline
I was able to solve the lua5.1 issue by editing the bash prepare() function in PKGBUILD as follows:
prepare() {
cd ${_gitname}
# uncomment the '--enable-uforadiant' line for ufo-radiant (map editor)
./configure --prefix=/usr --datadir=/usr/share/ufoai \
--enable-release --localedir=/usr/share/ufoai/base/i18n/ \
--enable-uforadiant --with-embedded-lua5.1
}
Note that --with-embedded-lua5.1 has been appended.
You cannot just go into ../src/ufoai and edit configure directly because every time you invoke makepkg -s it will do a git clone from https://github.com/ufoai/ufoai thereby overwriting your manual changes!
Offline
Thanks for sharing that, gojun077. I think OP has lost interest in this old topic, so I'm just going to go ahead and close it now.
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed