Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Appears to not ever load libclang on my system. What can I do? #60

Open
hperrin opened this issue Aug 17, 2022 · 0 comments
Open

Appears to not ever load libclang on my system. What can I do? #60

hperrin opened this issue Aug 17, 2022 · 0 comments

Comments

@hperrin
Copy link

hperrin commented Aug 17, 2022

How exactly do I need to provide libclang? Is it libclang.so or a binary named libclang? I've built LLVM on my system and provided both its libclang.so and the one in PATH, but I still can't get any more output than what's below. It seems like clangffi isn't using the libclang I'm providing.

import ffi from "ffi-napi";
import ref, { Pointer as TypedPointer, UnderlyingType } from "ref-napi";
import refStructDi, { StructObject } from "ref-struct-di";
import refArrayDi, { TypedArray } from "ref-array-di";
import refUnionDi from "ref-union-di";
const Struct = refStructDi(ref);
const Union = refUnionDi(ref);
const ArrayType = refArrayDi(ref);
const Pointer = ref.refType;
export function dlopen(libPath: string) {
  return ffi.Library(libPath, {});
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant