Open acgourley opened 8 years ago
In binding.gyp, you can specify a path to an actual static library instead of using -l (which will indicate dynamic link library): Current:
'libraries': [
"-lavcodec",
"-lavformat",
...
]
Modify:
'libraries': [
"/usr/local/lib/libavcodec.a",
"/usr/local/lib/libavformat.a",
...
]
I'm working on deploying this inside of a Google Cloud Function and in this context you cannot install the libav/ffmpeg libs on the system first.
In my fork I have node-pre-gyp working as a method for distributing the compiled libs, however these libs still dynamically link against the system library instead of bundling in the system libraries. Do you know if there is a way to use node-gyp to pull in these system libs into a monolithic library, or to copy them into the distribution some other way?