[DiscordArchive] <@!109652764488892416> <@!425285449725116426> Do either of you know how to fix this error for Clion
[DiscordArchive] <@!109652764488892416> <@!425285449725116426> Do either of you know how to fix this error for Clion
Archived author: Deleted User • Posted: 2021-03-27T00:53:21.987000+00:00
Original source
<@!109652764488892416> <@!425285449725116426> Do either of you know how to fix this error for Clion on Mac OS X Big sur?
Archived author: Deleted User • Posted: 2021-03-27T00:53:38.815000+00:00
Original source
`Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES)`
Archived author: Deleted User • Posted: 2021-03-27T00:53:54.942000+00:00
Original source
I've set the openssl directory in the cmake options...
Archived author: Deleted User • Posted: 2021-03-27T00:54:09.116000+00:00
Original source
cmake options: `-DTOOLS=0 -DSCRIPTS=1 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1`
Archived author: Deleted User • Posted: 2021-03-27T01:13:50.179000+00:00
Original source
https://www.youtube.com/watch?v=3XjkaN8psp0
[Embed: Managing Environmental (ENV) variables on Mac OSX]
This video covers how you can create temporary ENVIRONMENTAL variables in the terminal as well as how you can use the .bash_profile file to create permanent ENV variables.
Also covered is how to open the .bash_profile file in the editor of your choice.
Also how to use ENV variables inside the values of other ENV variables.
https://www.youtube.com/watch?v=3XjkaN8psp0
Archived author: Deleted User • Posted: 2021-03-27T01:14:10.696000+00:00
Original source
Create an environment variable that points to these libraries
Archived author: Deleted User • Posted: 2021-03-27T01:19:30.055000+00:00
Original source
<@456226577798135808> Yup, I tried that as well. I setup both env variables and directly set the cmake options to no avail
Archived author: Deleted User • Posted: 2021-03-27T02:17:50.638000+00:00
Original source
For future explorers, I got it finally working by adding this to the `FindOpenSSL.cmake` file:
```
set(OPENSSL_LIBRARIES
${OPENSSL_ROOT_DIR}/lib/libcrypto.1.1.dylib
${OPENSSL_ROOT_DIR}/lib/libssl.1.1.dylib
)
```
Feels like a hack, but nothing else worked. I also had to add this to the cmake options:
`-DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl@1.1/1.1.1j`