fishjam-dev / membrane_rtc_engine

Customizable Real-time Communication Engine/SFU library focused on WebRTC.
Apache License 2.0
140 stars 11 forks source link

I have issue with fast_stl compile error #359

Closed chanphiromsok closed 6 months ago

chanphiromsok commented 6 months ago

what is the OpenSSL version required for membrane ?

sgfn commented 6 months ago

Hi, this error happens because the compiler can't find the openssl headers and library files. The OpenSSL version you're using is fine, try running the following commands:

export CFLAGS="-I$(brew --prefix)/opt/openssl/include"
export LDFLAGS="-L$(brew --prefix)/opt/openssl/lib"

and then compile again.

chanphiromsok commented 6 months ago

let me try tmr how about openssl@3 ? can I uesd these export save in zshrc ?

sgfn commented 6 months ago

openssl@3 should be fine, I use it with no issues. Ofc you can save these exports in zshrc, just keep in mind that you have them always set (some libraries may not compile with them, so you might need to unset CFLAGS etc.)

chanphiromsok commented 6 months ago

it help me I try on intel processor it work fine for M1 chip not work hehe thx you

chanphiromsok commented 6 months ago

this issue can close now

work for M1 chip

export CFLAGS="-I$(brew --prefix)/opt/openssl/include"
export LDFLAGS="-L$(brew --prefix)/opt/openssl/lib"