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

Fix nclua runtime files location in both source code and deployed folder in windows #143

Open
alanlivio opened this issue May 14, 2018 · 2 comments

Comments

@alanlivio
Copy link
Member

See errors bellow.
Today, we workaround creating in deployed version by creating C:\Program Files (x86)\Ginga\ginga with content of C:\Program Files (x86)\Ginga. Then create C:\Program Files (x86)\Ginga\share and C:\Program Files (x86)\Ginga\lib folders with nclua required files.

error in source code folder:
module 'nclua.canvas' not found:
no field package.preload['nclua.canvas']
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\share\lua\5.3\nclua\canvas.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\share\lua\5.3\nclua\canvas\init.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\nclua\canvas.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\nclua\canvas\init.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\share\lua\5.3\nclua\canvas.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\share\lua\5.3\nclua\canvas\init.lua'
no file '.\nclua\canvas.lua'
no file '.\nclua\canvas\init.lua'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\nclua\canvas.dll'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3..\lib\lua\5.3\nclua\canvas.dll'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\loadall.dll'
no file '.\nclua\canvas.dll'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\nclua.dll'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3..\lib\lua\5.3\nclua.dll'
no file 'C:\Users\alan\dev\ginga\ginga\src-gui..\lib\lua\5.3\loadall.dll'
no file '.\nclua.dll'

error in source deployed folder:
module 'nclua.canvas' not found:
no field package.preload['nclua.canvas']
no file 'C:\Program Files (x86)\Ginga..\share\lua\5.3\nclua\canvas.lua'
no file 'C:\Program Files (x86)\Ginga..\share\lua\5.3\nclua\canvas\init.lua'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\nclua\canvas.lua'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\nclua\canvas\init.lua'
no file 'C:\Program Files (x86)\Ginga..\share\lua\5.3\nclua\canvas.lua'
no file 'C:\Program Files (x86)\Ginga..\share\lua\5.3\nclua\canvas\init.lua'
no file '.\nclua\canvas.lua'
no file '.\nclua\canvas\init.lua'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\nclua\canvas.dll'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3..\lib\lua\5.3\nclua\canvas.dll'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\loadall.dll'
no file '.\nclua\canvas.dll'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\nclua.dll'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3..\lib\lua\5.3\nclua.dll'
no file 'C:\Program Files (x86)\Ginga..\lib\lua\5.3\loadall.dll'
no file '.\nclua.dll'

@alanlivio alanlivio added this to the v.1.1 milestone May 14, 2018
@alanlivio alanlivio changed the title Fix nclua runtime files location in both source code and deployed folder Fix nclua runtime files location in both source code and deployed folder in windows May 14, 2018
@alanlivio
Copy link
Member Author

@gflima, do you suggest something?

@gflima
Copy link
Member

gflima commented May 15, 2018

Try making the executable (ginga or ginga-gui) set both LUA_PATH and LUA_CPATH to the directory of the .lua's and .dll's when it's on Windows. This can be done using setenv().

@alanlivio alanlivio removed this from the v.1.1 milestone May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants