Skip to content

Autogenerating boiler plate fails  #26

Description

@Aniketh01

Hi,

I was trying to generate a boiler plate using the scripts available in bin/ and as per the readme file. However, I end up with the following error:

fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'libclang.so'
    at Object.openSync (fs.js:443:3)
    at readFileSync (fs.js:343:35)
    at new DynamicLibrary (/home/aniketh/frida-trace/node_modules/ffi/lib/dynamic_library.js:67:21)
    at new Library (/home/aniketh/frida-trace/node_modules/ffi/lib/library.js:45:12)
    at Object.<anonymous> (/home/aniketh/frida-trace/node_modules/frida-libclang/lib/dynamic_clang.js:951:20)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
undefined:1



SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at writeCode (/home/aniketh/frida-trace/bin/generate-boilerplate.js:12:20)
    at ConcatStream.<anonymous> (/home/aniketh/frida-trace/node_modules/concat-stream/index.js:37:43)
    at ConcatStream.emit (events.js:203:15)
    at finishMaybe (/home/aniketh/frida-trace/node_modules/readable-stream/lib/_stream_writable.js:620:14)
    at endWritable (/home/aniketh/frida-trace/node_modules/readable-stream/lib/_stream_writable.js:629:3)
    at ConcatStream.Writable.end (/home/aniketh/frida-trace/node_modules/readable-stream/lib/_stream_writable.js:567:22)
    at Socket.onend (_stream_readable.js:672:10)
    at Object.onceWrapper (events.js:286:20)
    at Socket.emit (events.js:203:15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions