Re: trying include luajit into embebbed application that already uses lua5.1

  • From: zejian ju <juzejian@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 25 Oct 2014 10:22:47 +0800

2014-10-24 21:18 GMT+08:00 José Seabra <joseseabra4@xxxxxxxxx>:

> Hi Crhis,
> Thank you for your reply,
> Yes i have read this doc, and i have linked, but or it is not much clear
> to me, or I'm doing something wrong, because when i try start my app i got
> the following error:
> app_lua.so>: libluajit-5.1.so.2: cannot open shared object file: No such
> file or directory
>
> the SONAME in libluajit.so is libluajit-5.1.so.2, so you should name your
luajit library as libluajit-5.1.so.2, then symbol link it as libluajit.so.

you can confirm this from the Makefile in luajit/src:

TARGET_SONAME= libluajit-$(ABIVER).so.$(MAJVER)
...
TARGET_XSHLDFLAGS= -shared -fPIC -Wl,-soname,$(TARGET_SONAME)

Other related posts: