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

lua-vips and ZeroBrane #2

Closed
JaiGe opened this issue May 8, 2018 · 1 comment
Closed

lua-vips and ZeroBrane #2

JaiGe opened this issue May 8, 2018 · 1 comment

Comments

@JaiGe
Copy link

JaiGe commented May 8, 2018

Has anyone used the lua-vips library with ZeroBrane, or does anyone know how to set it up to work with ZeroBrane? I don't know anything about linking in ZeroBrane.
I have the lua-vips installed via luaRocks, and I just copied the vips file and folder to my project. I run this code:
_vips = require "vips"

...but I am getting an error:

...ZeroBraneStudioEduPack-1.70-win32\bin\lua.exe: .\vips.lua:5: cannot load module 'libvips-42.dll': The specified module could not be found.

stack traceback:
[C]: in function 'load'
.\vips.lua:5: in main chunk
[C]: in function 'require'
...jects-Workshop\Gideros_Projects\GettingFamiliar\test.lua:5: in main chunk
[C]: at 0x00401b00
Program completed in 1.14 seconds (pid: 1796).

The libvips-42.dll file is actually in a folder (vips-dev-8.6) containing include and lib files, but I don't know how to link them for ZeroBrane to find. I entered the path in the environment variables path, but that doesn't help.
Any ideas on how to do this?

@asmagill
Copy link
Owner

Sorry I never responded; my experience using and integrating ZeroBrane with Hammerspoon is limited to Hammerspoon/hammerspoon#1268.

Hammerspoon is a macOS application -- by the looks of the error you've posted, it looks like you're using a Windows machine... while I can't say for certain, it looks like you may need to update your package.cpath variable to include the location of the vips library before trying to require it.

Hope you found your solution or that this may point you in the right direction if you're still looking.

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

2 participants