Closed headius closed 4 years ago
@headius I can't confirm. Could you clone current master
branch and test it once more?
My setup:
RUBYLIB=$(pwd)/lib CPATH=/usr/include DYLD_LIBRARY_PATH=/Library/Developer/CommandLineTools/usr/lib ruby test.rb
Where test.rb is:
require 'ffi_gen'
FFIGen.generate(
module_name: "Ncurses",
ffi_lib: "ncurses",
headers: ["/usr/include/ncurses.h"],
cflags: `/usr/local/opt/llvm/bin/llvm-config --cflags`.split(" "),
prefixes: ["_nc_", "NCURSES_", "WA_", "COLOR_", "ACS_"],
output: "ffi-ncurses.rb")
I'm testing on Yosemite, all updates.
Seems to get past this point fine now and fail elsewhere.
I'm not sure what I'm doing wrong, but I get an error while ffi-gen is trying to traverse declarations (I think). Here's my gen file:
And here's the error I get running it: