crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Can't compile #1

Closed fazibear closed 9 years ago

fazibear commented 9 years ago

Trying to compile it, but have errors:

✓ ~/dev/crystal_lib git:master ➜ make
crystal build src/crystal_lib.cr
Error in /Users/fazibear/dev/crystal_lib/src/crystal_lib.cr:55: instantiating 'Clang::Cursor#declaration?()'

  puts "#{cursor.declaration?} #{cursor.spelling} #{cursor.kind} #{cursor.type.spelling}" #{cursor.type.canonical_type.spelling} #{cursor.type.kind} #{cursor.type.canonical_type.kind}"
                 ^~~~~~~~~~~~

in /Users/fazibear/dev/crystal_lib/libs/clang/cursor.cr:45: argument #1 of 'LibClang#is_declaration' must be LibClang::CursorKind, not Int32

    LibClang.is_declaration(kind) != 0
                            ^~~~

make: *** [crystal_lib] Error 1
✓ ~/dev/crystal_lib git:master ➜ crystal --version                                
Crystal 0.5.3 [eac061b] (Thu Nov  6 21:50:52 UTC 2014)
asterite commented 9 years ago

After 8f02da2487e285c77292c6efd00b223b1245ead6 it compiles again.

However, note that this project is a work in progress, you can't actually generate anything from it.