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

The specified module could not be found. #15

Open
4avero opened this issue Jan 10, 2025 · 1 comment
Open

The specified module could not be found. #15

4avero opened this issue Jan 10, 2025 · 1 comment

Comments

@4avero
Copy link

4avero commented Jan 10, 2025

Hello, i've been searching OpenGL binding for Lua and someone recommended me MoonGL, but i have problem installing it. I followed every step but it started giving me errors(i probably messed up, sorry)

I tried to fix my issue by looking at others (Issues) and it helped me however i got this error.

$ lua valuators.lua
C:\msys64\mingw32\bin\lua.exe: error loading module 'moonfltk' from file 'C:\msys64\mingw32\lib\lua\5.4\moonfltk.dll':
The specified module could not be found.

stack traceback:
[C]: in ?
[C]: in function 'require'
valuators.lua:7: in main chunk
[C]: in ?

I am planning to use and learn moonGL and if you could help me, I would appreciate it :)

@4avero
Copy link
Author

4avero commented Jan 10, 2025

M2 MINGW32 ~/moonfltk
$ LUA_PATH=/mingw32/share/lua/5.4/?.lua
MINGW32 ~/moonfltk
$ LUA_CPATH=/lib/lua/5.4/?.dll
i changed path but i am not sure if it did something, but its show similiar error with standard path

i used these commands to check path
print(package.cpath)
print(package.path)
i am not sure why package.path is MASSIVE and if it should be like this
$ lua valuators.lua
/lib/lua/5.4/?.dll
C:\msys64\mingw32\bin..\share\lua\5.4?.lua;C:\msys64\mingw32\bin..\share\lua\5.4?\init.lua;C:\msys64\mingw32\bin..\lib\lua\5.4?.lua;C:\msys64\mingw32\bin..\lib\lua\5.4?\init.lua;.?.lua;.?\init.lua
C:\msys64\mingw32\bin\lua.exe: valuators.lua:8: module 'moonfltk' not found:
no field package.preload['moonfltk']
no file 'C:\msys64\mingw32\bin..\share\lua\5.4\moonfltk.lua'
no file 'C:\msys64\mingw32\bin..\share\lua\5.4\moonfltk\init.lua'
no file 'C:\msys64\mingw32\bin..\lib\lua\5.4\moonfltk.lua'
no file 'C:\msys64\mingw32\bin..\lib\lua\5.4\moonfltk\init.lua'
no file '.\moonfltk.lua'
no file '.\moonfltk\init.lua'
no file '/lib/lua/5.4/moonfltk.dll'
stack traceback:
[C]: in function 'require'
valuators.lua:8: in main chunk
[C]: in ?

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