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

Crash openra latest version on Mageia 4 x86_64 #6886

Closed
xlin opened this issue Nov 4, 2014 · 8 comments
Closed

Crash openra latest version on Mageia 4 x86_64 #6886

xlin opened this issue Nov 4, 2014 · 8 comments

Comments

@xlin
Copy link

xlin commented Nov 4, 2014

Platform is Linux
Using SDL 2 with OpenGL renderer
Desktop resolution: 1366x768
No custom resolution provided, using desktop resolution
Using resolution: 1366x768
Detected OpenGL version: 4.4
Using OpenAL sound engine
Using default device
Available mods:
cnc: Tiberian Dawn ({DEV_VERSION})
d2k: Dune 2000 ({DEV_VERSION})
modchooser: Mod Chooser ({DEV_VERSION})
ra: Red Alert ({DEV_VERSION})
Loading mod: modchooser
Loading mod: cnc
Loading mod: cnc
Exception of type System.DllNotFoundException: lua51.dll
TypeName=at (wrapper managed-to-native) Eluant.LuaApi:lua_newstate (Eluant.LuaRuntime/LuaAllocator,intptr) at Eluant.LuaRuntime..ctor () [0x00000] in <filename unknown>:0 [xlin@xlin-netbook ~]$ [xlin@xlin-netbook Logs]$ cat exception.log Tiberian Dawn Mod at Version {DEV_VERSION} Operating System: Linux (Unix 3.14.18.3) Runtime Version: Mono 3.2.3 (tarball Wed Jan 1 21:52:02 UTC 2014) CLR 4.0.30319.17020 Exception of typeSystem.DllNotFoundException: lua51.dll TypeName=
at (wrapper managed-to-native) Eluant.LuaApi:lua_newstate (Eluant.LuaRuntime/LuaAllocator,intptr)
at Eluant.LuaRuntime..ctor () [0x00000] in :0

@xlin xlin changed the title Crash openrd latest version on Mageia 4 x86_64 Crash openra latest version on Mageia 4 x86_64 Nov 4, 2014
@obrakmann
Copy link
Contributor

you need to run

$ ./configure
$ make dependencies

once when you run directly from git.

If configure doesn't pick up your OS's copy of the lua51 library (it seems to have different names everywhere), please re-open this and let us know which name it is in Mageia and we'll add it.

@xlin
Copy link
Author

xlin commented Nov 4, 2014

I installed lua

[xlin@xlin-netbook aum]$ sudo rpm -qa | grep lua5.1
liblua5.1-5.1.5-4.1.mga4
lua5.1-5.1.5-4.1.mga4
lib64lua5.1-5.1.5-4.1.mga4

@xlin
Copy link
Author

xlin commented Nov 4, 2014

./configure
Detected Lua 5.1 library at /usr/lib/liblua.so.5.1
Eluant.dll.config has been created successfully.

@xlin
Copy link
Author

xlin commented Nov 4, 2014

if install from source
[xlin@xlin-netbook openra]$ ./launch-game.sh
Platform is Linux
Using SDL 2 with OpenGL renderer
Desktop resolution: 1366x768
No custom resolution provided, using desktop resolution
Using resolution: 1366x768
Detected OpenGL version: 4.4
Using OpenAL sound engine
Using default device
Available mods:
cnc: Tiberian Dawn ({DEV_VERSION})
d2k: Dune 2000 ({DEV_VERSION})
modchooser: Mod Chooser ({DEV_VERSION})
ra: Red Alert ({DEV_VERSION})
Loading mod: cnc
Exception of type System.DllNotFoundException: liblua64.5.1.5.so
TypeName=``
at (wrapper managed-to-native) Eluant.LuaApi:lua_newstate (Eluant.LuaRuntime/LuaAllocator,intptr)
at Eluant.LuaRuntime..ctor () [0x00000] in :0

@xlin
Copy link
Author

xlin commented Nov 4, 2014

in Mageia not lib liblua64.5.1.5.so

[xlin@xlin-netbook ~]$ sudo urpmf lib64lua | grep so
lib64lua5.1-devel:/usr/lib64/liblua.so
lib64lua5.2:/usr/lib64/liblua.so.5.2
lib64lua-devel:/usr/lib64/liblua.so
lib64luajit-5.1_2:/usr/lib64/libluajit-5.1.so.2
lib64luajit-5.1_2:/usr/lib64/libluajit-5.1.so.2.0.2
lib64luajit-5.1-devel:/usr/lib64/libluajit-5.1.so
lib64lua5.0-devel:/usr/lib64/liblua.so
lib64lua5.0-devel:/usr/lib64/liblualib.so
lib64lua5.1:/usr/lib64/liblua.so.5.1
lib64lua5.0:/usr/lib64/liblua.so.5.0
lib64lua5.0:/usr/lib64/liblualib.so.5.0
lib64lua5.1-devel:/usr/lib64/liblua.so
lib64lua5.1:/usr/lib64/liblua.so.5.1
lib64lua-devel:/usr/lib64/liblua.so
lib64lua5.2:/usr/lib64/liblua.so.5.2

@obrakmann
Copy link
Contributor

sorry, that was my mistake. ./configure needs to run after make dependencies.

You could still have a problem, though, since configure picks up the 32bit lib first. If your mono is 64bit, I expect it will need a 64bit lua library, as well. In that case just edit the Eluant.dll.config file in the openra directory to point at the proper file (ie. in /lib64 and not /lib)

@xlin
Copy link
Author

xlin commented Nov 4, 2014

Yes, thank you. Sorted out already. Make a patch and compile the package for mageia

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

2 participants