Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Help Request: Unable to Find Shared Libraries Configuration in CLion  (Read 118 times)

0 Members and 1 Guest are viewing this topic.

SwiftFawn32

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
I am currently experiencing an issue with configuring SFML to use shared libraries in my project. I've followed the SFML installation instructions and built SFML from source on macOS (M1 arm64 architecture) with the intention of using shared libraries for my project. However, I'm encountering difficulties configuring my project to link against these shared libraries.
I followed instructions on an earlier post:
"If you are still trying to compile SFML for M1, I just did it some minutes ago and I want to share my process:
 - git clone https://github.com/SFML/SFML.git
 - mkdir build
 - cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=arm64 ..
 - make all"
and here is the error I'm receiving from CLion:
CMake Error at /usr/local/SFML/build/SFMLConfig.cmake:149 (message):
  Requested SFML configuration (Shared) was not found

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
It's recommended to use the SFML CMake template, which integrates the downloading and building of SFML, thus you don't have to worry about not matching configurations.

If it can't find the shared libraries, then it's either not been built as shared libraries, the path specified to SFML is wrong, or the CMake config for SFML hasn't been updated.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything