-
Notifications
You must be signed in to change notification settings - Fork 45
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
Windows support #53
Comments
I tried this and compiled the dll file but somehow not able to load it in windows. I am using Lua 5.3. When I require alien then I get the error saying: error loading module 'alien_c' from file '.\alien_c.dll': I tried changing the module name in the alien.c file and tried a couple of variations but no success. I thought it might be getting confused by the submodule syntax but when I changed it to alienc.dll with the function called luaopen_alienc, I was still having the same problem. |
The problem was that libffi.dll was not in the path so it was not able to find it. Once I put that in there it worked. |
Next time could use lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues. to check dll libs dependences. |
To avoid problems like @robertlzj had in #56 (comment) on Windows 64bit one should replace these strings static const ffi_abi ffi_abis[] = { FFI_DEFAULT_ABI, FFI_SYSV, FFI_STDCALL };
static const char *const ffi_abi_names[] = { "default", "cdecl", "stdcall", NULL }; with a list of ABIs you want and your libffi provides. As seen here, |
Now problem with Windows that there no
config.h
files. And it require install mingw to be able use configure.I add this config.h file to my project
And I can compile
alien
with MSVC (with my fixes #49 , #50 , #51 ) and all tests pass.Also I add rockspec file to be able install it on Windows.
Also I add travis file to run tests on Travis CI service.
The text was updated successfully, but these errors were encountered: