<FromGitter>
<Dan-Do> But don't know where to start 🙄
Volk has joined #crystal-lang
Volk has quit [Changing host]
Volk has joined #crystal-lang
<FromGitter>
<Dan-Do> I already built it and had the static lib `reindexer.a`
<xyhuvud>
well, then you need to link it and set up bindings, but perhaps bindgen does that for you?
SamantazFox has quit [Ping timeout: 265 seconds]
<FromGitter>
<rymiel:rymiel.space> trying to debug some strange generic type stuff resulting in a "you've found a bug in the crystal compiler" but i just don't understand the compiler types here. Why can't it assign a `GenericClassInstanceMetaclassType` to a `VirtualMetaclassType`? Basically I have an `abstract class Foo` with `class Bar(T) < Foo` and i'm trying to assign `Bar(SomeType).class` to `Foo+.class`... Or should I just try
<FromGitter>
... to do a minimal repro in carc.in?
<FromGitter>
<Blacksmoke16> the latter would be your best bet
<FromGitter>
<rymiel:rymiel.space> seems to match what i get
<FromGitter>
<rymiel:rymiel.space> oh yeah sorry that matches that comment exactly oops
<FromGitter>
<Dan-Do> @xyhuvud I follow the guide and run `lib/bindgen/tool.sh your_template.yml`, but it said `fatal error: 'core/namespacedef.h' file not found`
<FromGitter>
<Dan-Do> don't know how bindgen find the include directory of c++ project
<xyhuvud>
yeah well, I have no idea :D
<FromGitter>
<Dan-Do> Can you give some hints when you do it manually?
<xyhuvud>
manually, you link to the compiled file and manually read the .h file and type in the definitions you want in a crystal lib file.
<xyhuvud>
the .h is not involved compiletime at all then.
<FromGitter>
<Dan-Do> How about other .h? I see in the main reindexer.h, it includes some.
<FromGitter>
<Dan-Do> So we need to add them all to cr, doesn't it?
<xyhuvud>
you only need what you intend to use.
<FromGitter>
<HertzDevil> ```ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64```
<FromGitter>
<HertzDevil> been seeing this on macos ci recently
<FromGitter>
<HertzDevil> looks like a macos 11 problem
<FromGitter>
<HertzDevil> NixOS/nixpkgs#104580
<FromGitter>
<HertzDevil> i think we need a more recent version of nixpkgs but i don't know what else needs to be done
SamantazFox has joined #crystal-lang
Volk has quit [Read error: Connection reset by peer]