Giter VIP home page Giter VIP logo

Comments (7)

utkumaden avatar utkumaden commented on July 26, 2024 1

Linking does not work, however copying the library to the output directory as liblua53.so works.

from keralua.

utkumaden avatar utkumaden commented on July 26, 2024 1

The issue is not really solved.

The problem stems from the fact that KeraLua tries to load the Lua API with the incorrect name. The name shared object (DLL for linux) of the API is liblua5.3.so not liblua53.so (notice the extra period).

An ideal fix is to add a new if preprocessor for the LuaLibraryName constant in "src/NativeMethods.cs" for Linux hosts.

You could also provide arm builds like you do for the x86 architecture; which is automatically copied to the output directory.

If you won't do that just mark it wontfix and I won't complain.

from keralua.

viniciusjarina avatar viniciusjarina commented on July 26, 2024 1

The problem is that if I change I would break people how are already using the convention lua53 like on windows using LuaBinaries.

I would build the linux-arm, but not sure Azure DevOps supports cross compile linux-arm. (if supports feel free to send a PR with the cross compile patch).

Another solution is you build KeraLua from source and patch NativeMethods.cs

from keralua.

utkumaden avatar utkumaden commented on July 26, 2024 1

I see, sorry if my comment was passive aggressive. I was looking for a further explanation. I would send a PR but I am not experience enough in CI systems to be able to provide such a patch, but I would assume if you can run gcc for x64 linux builds, you can run them for arm with the correct compiler.

from keralua.

viniciusjarina avatar viniciusjarina commented on July 26, 2024

What if you create a symlink with the name liblua53 ?

from keralua.

viniciusjarina avatar viniciusjarina commented on July 26, 2024

No worries 😊
This is how I am building lua linux. https://github.com/NLua/KeraLua/blob/master/build/targets/BuildLua.Linux.targets

If you have any idea how to cross-build to target arm feel free to send a PR or instructions what should be added.

from keralua.

utkumaden avatar utkumaden commented on July 26, 2024

Some research shows that the common compiler is in the packages gcc-arm-linux-gnueabi and binutils-arm-linux-gnueabi. Then if you set the compiler to arm-linux-gnueabi-gccinstead, it should theoretically work. Most likely the variable is CC for the compiler, though you should inspect the makefiles for a better understading.

from keralua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.