-
Notifications
You must be signed in to change notification settings - Fork 4
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
lua: hello.lua:3: module 'moonvulkan' not found: #6
Comments
Can't say much from this error message, except that Lua did not find MoonVulkan's files where they are supposed to be installed. This may be have different causes. Either
Did the installation process go smooth, or did it give you some errors of any kind? As for the last question, MoonVulkan loads the Vulkan loader (a shared object) at runtime using dlopen, and then retrieves the function pointers of the Vulkan API commands as explained in the Vulkan manual. The above error has nothing to do with this, though, since MoonVulkan did not start to begin with. |
$ sudo make install make[1]: Entering directory '/home/user/moonvulkan/src' And make itself didn't throw any errors. $ pacman -Q | grep "vulkan" lib32-vulkan-icd-loader 1.3.213-1 $ sudo pacman -S vulkan-devel :: There are 7 members in group vulkan-devel:
|
Does it indicate that I need to install and configure Vulkan SDK as in https://vulkan.lunarg.com/doc/sdk/1.3.211.0/linux/getting_started.html ? |
Yes. And of course you need vulkan-capable driver(s) for your device(s). This is actually indicated in the readme (see the Getting and installing section). Back to the original problem. By comparing the error message in your first post, and the output of the install command, you can see that the Lua interpreter doesn't look for the moonvulkan files in the paths where they are installed, which are subfolders of /usr/local (you can see where Lua searches for modules by printing out the package.path and package.cpath variables). To fix this problem you can either:
|
$ lua hello.lua
lua: hello.lua:3: module 'moonvulkan' not found:
no field package.preload['moonvulkan']
no file '/usr/share/lua/5.4/moonvulkan.lua'
no file '/usr/share/lua/5.4/moonvulkan/init.lua'
no file '/usr/lib/lua/5.4/moonvulkan.lua'
no file '/usr/lib/lua/5.4/moonvulkan/init.lua'
no file './moonvulkan.lua'
no file './moonvulkan/init.lua'
no file '/usr/lib/lua/5.4/moonvulkan.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './moonvulkan.so'
stack traceback:
[C]: in function 'require'
hello.lua:3: in main chunk
[C]: in ?
The text was updated successfully, but these errors were encountered: