almoghamdani / audify

Play/Stream/Record PCM audio data & Encode/Decode Opus to PCM audio data
MIT License
122 stars 20 forks source link

Cant build 1.6.3 on linux #20

Open prepconcede opened 2 years ago

prepconcede commented 2 years ago

First of all, thanks for the package. It is great and made my life much easier. Now to the point: on windows and my personal linux machine, everything works like a charm, but on my prod server with astra linux, I have problems building. The error pops up on 97% of build process and says like "In file included from /.../.../.../node_modules/audify/src/audify.cpp:4:0: /.../.../.../node_modules/audify/src/opus_encoder.h:21:41: error: ‘constructor’ declared as an ‘inline’ field inline static Napi::FunctionReference constructor;" I have latest cmake and gcc installed. I believe, that it may be somehow connected to glibc version, which is 2.24 on our machine, and the warning at the start of the build says " version `GLIBC_2.29' not found". If thats correct, what am I supposed to do? If not, what can i do to fix it? Using node 14.18.0 and electtron 15.1.2 if that is relevant in any way. Thanks in advance.

prepconcede commented 2 years ago

Update: that is 100% problem with glibc, but the thing is: there is no way I can update it on prod machine. Are there any workarounds? Can I somehow compile sources with older glibc?