codegen can't build the simplest demo
8 Ansichten (letzte 30 Tage)
I am using codegen to build the 1st example in its doc, i.e. mcadd.m, it did not work.
I am running Maltab2020a on CentOs 8.3. When I first install matlab, I ran into an error as described in here. I followed the advice there and managed to install matlab. But after installing, when I open coder, it says 'Bundle#290 start failed: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b' in the command window. When I try to build something, it keeps saying the error message. So I can not use coder.
I tried to delete the two aforementioned .so files, libcrypto.so.1.1 and libssl.so.1.1, from the bin path (/usr/local/......./bin/glnxa64), surprisingly I can open coder. But when I try to build mcadd.m, it errored and says 'FAILED: mcadd_mex.mexa64 , ............. /usr/bin/ld: cannot find -lstdc++'.
It is probably due to corrupted installtion. I reached out to Mathworks support, they suggest me to switch to other operating systems beacause CentOs is not offically supported by matlab or switch to a newer version of matlab.
Is there any way to fix this without switching OS or matlab version?
AnnQ am 18 Jun. 2021
I understand that you are having trouble usding MATLAB Coder in R2020a release on CentOS 8.3
This is a known issue on Red Hat based distributions including CentOS 8.2 and later. This is a link to the External Bug Report: https://www.mathworks.com/support/bugreports/2294497
This issue has been fixed in R2021a Update 1. If upgrading is not an option, you can try this workaround in a terminal: