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

How to compile and use for Ubuntu 22.04 #527

Open
TheVons opened this issue Mar 2, 2024 · 1 comment
Open

How to compile and use for Ubuntu 22.04 #527

TheVons opened this issue Mar 2, 2024 · 1 comment

Comments

@TheVons
Copy link

TheVons commented Mar 2, 2024

I know issues isn't for help requests but there's no other option to submit in this project.

I am trying to call .net functions from lua scripts that are running in Ubuntu. Is there a guide on how to do this anywhere?

@TheVons
Copy link
Author

TheVons commented Mar 3, 2024

I am able to compile .net 8 nlua on Ubuntu. My problem is figuring out how to actually use it...

~/tmp/luanet-test/NLua/build/net8.0/obj/Debug/net8.0$ ls
NLua.dll                                               NLua.net8.0.assets.cache                    NLua.net8.0.csproj.CoreCompileInputs.cache  NLua.net8.0.sourcelink.json  hello1.lua  refint
NLua.net8.0.GeneratedMSBuildEditorConfig.editorconfig  NLua.net8.0.csproj.AssemblyReference.cache  NLua.net8.0.csproj.FileListAbsolute.txt     NLua.pdb                     ref
user@stack:~/tmp/luanet-test/NLua/build/net8.0/obj/Debug/net8.0$ lua hello1.lua
lua: hello1.lua:1: module 'luanet' not found:
        no field package.preload['luanet']
        no file './luanet.lua'
        no file '/usr/local/share/lua/5.1/luanet.lua'
        no file '/usr/local/share/lua/5.1/luanet/init.lua'
        no file '/usr/local/lib/lua/5.1/luanet.lua'
        no file '/usr/local/lib/lua/5.1/luanet/init.lua'
        no file '/usr/share/lua/5.1/luanet.lua'
        no file '/usr/share/lua/5.1/luanet/init.lua'
        no file './luanet.so'
        no file '/usr/local/lib/lua/5.1/luanet.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/luanet.so'
        no file '/usr/lib/lua/5.1/luanet.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        hello1.lua:1: in main chunk
        [C]: ?

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

1 participant