Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » Strange problem trying to use LDT on second machine
Strange problem trying to use LDT on second machine [message #1416951] Mon, 22 July 2013 15:52 Go to next message
Burt Bicksler is currently offline Burt BickslerFriend
Messages: 9
Registered: July 2013
Junior Member
Hi,
I'm new to Lua, and LDT. What I've seen with LDT is great but I'm having some challenges, the the current frustration is trying to duplicate the configuration for a project on my notebook that I finally got running on my desktop machine.

Both machines are running Ubuntu 12.04 LTS. I'm working with a project that uses lgi, and because I couldn't get the internal interpreters to work and play well with lgi I followed a suggestion to use the Lua version that is installed on my system.

I set up both Lua 5.2 and Lua 5.1 which I have on my desktop.

Note that from the command line I was able to build and test some simple GUI LUA programs with no problems. And after much fiddling I was able to get things set up with the external interpreters so that I could build using Lua 5.2 and run the application with no problem from LDT.

Of course I couldn't debug since I don't have a luasocket module for 5.2 yet, but I could run the applications in LDT.

So next I wanted to set up the same thing on the notebook where I'm doing most of the actual devlopment work.

As far as I can see I've duplicated the configuration the same as on the desktop but I'm hitting some issues on the notebook:

When I attempt to run a program that previously worked in LDT (non-Gui, just hello world) If I use internal Lua 5.1 it works, including debugging as before. But if I use the internal Lua 5.1 I get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/bbick/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/org.eclipse.osgi/bundles/202/1/.cp/lib/libjnlua52.so: liblua52.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at com.naef.jnlua.NativeSupport$DefaultLoader.load(NativeSupport.java:76)
at com.naef.jnlua.LuaState.<clinit>(LuaState.java:134)
at org.eclipse.koneki.ldt.support.lua52.internal.interpreter.JNLua52Launcher.run(JNLua52Launcher.java:29)
at org.eclipse.koneki.ldt.support.lua52.internal.interpreter.JNLua52Launcher.main(JNLua52Launcher.java:142)

I've searched and liblua52.so is found here:
/home/me/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/org.eclipse.osgi/bundles/202/1/.cp/lib/liblua52.so

Note that this particular problem happens on both the desktop and the notebook. If I use the Ubuntu Lua 5.2 it runs fine in LDT.

Also there is no issue using the Ubuntu Lua 5.2 from the command line. How do I go about tracking down the source of this particular problem?

=====
The other problem is that the lgi test GUI application.

I can now get that to run fine in LDT on the desktop and notebook using the external Ubuntu Lua 5.2.

But with the LDT internal Lua 5.2 I get the same error as above, and possible others if that is fixed. Is there a chance that with the build path set that I could get lgi working with the internal Lua 5.2 to get debugging working, or is it not worth exploring?

Thanks for any suggestions. (I had done a search for anything related to liblua52.so in the forum and on Goole but haven't found anything useful).

Burt
Re: Strange problem trying to use LDT on second machine [message #1416952 is a reply to message #1416951] Tue, 23 July 2013 14:16 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Hi,

If I understand you have severals problems :

1) You can not run a "print "hello" with embedded lua 5.2 on ubuntu 12.04 => this looks like a bug.
Could you say me the arch of your ubuntu (32 or 64 bit) ? and the version of java used to launch LDT ?

2) Waiting we find a solution for the embedded interpreter problem, I propose to you to install a compatible version of luasocket and add it to the path of your interpreter in LDT and you will be able to debug it.
=> https://github.com/diegonehab/luasocket/tree/v3.0-rc1
Re: Strange problem trying to use LDT on second machine [message #1416953 is a reply to message #1416952] Thu, 25 July 2013 15:23 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 76
Registered: July 2009
Member
Hi Burt,

I have reproduce your bug, and file a bug about it:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=413742

It seems this bug affect only ubuntu 32bit.
Re: Strange problem trying to use LDT on second machine [message #1416954 is a reply to message #1416953] Fri, 26 July 2013 00:53 Go to previous message
Burt Bicksler is currently offline Burt BickslerFriend
Messages: 9
Registered: July 2013
Junior Member
Thanks Marc,

I was going to respond that I'm running the 32 bit version of Ubuntu 12.04 LTS but I'd been cranking on the Lua application I had been charged with enhancing, so just got to surface for air.

Glad that it appears that I am not the only one seeing the problem, and thanks for logging the bug.

Burt
Previous Topic:Variable Reference Issue
Next Topic:Koneki LDT 1.0 (on Windows): Debugging not working
Goto Forum:
  


Current Time: Thu Oct 31 23:49:49 GMT 2024

Powered by FUDForum. Page generated in 0.03695 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top