SFML community forums
General => General discussions => Topic started by: DryFear on August 17, 2024, 08:29:20 pm
-
Hello,
I have error "'SFML/Graphics.hpp' file not found"
But xcode adjust me autofill with header files (attached pic.). XCode knows what's inside the library, but still show me an error.
-
I switched "embed" option in frameworks and libraries to "do not embed" and error is gone. Now i have success build but there is another issue in command line (pic.).
Please help me fix it, i so tired by trying make it works.
-
Sorry for poor info about problem, i am newbee in c++ and xcode (i am student), therefore i just don't know what to describe. my problem is similar to the one described in this post https://en.sfml-dev.org/forums/index.php?topic=29322.msg180847#msg180847
But I installed all the libraries as written in the tutorial. (I did steps from here https://www.sfml-dev.org/tutorials/2.6/start-osx.php and, when it didn't work, from here https://en.sfml-dev.org/forums/index.php?topic=28823.0)
I may not have understood what is meant by "Install". I simply copied the content from "Frameworks" to "/Library/Frameworks" (its 6 .framework dirs), and also copied all the content from "extlibs" to "/Library/Frameworks" too.
I have mac m1, and downloaded clang 2.6.1 arm64 version of SFML
-
As I don't use macOS, I unfortunately can't provide a lot of assistance with XCode.
In general, make sure the framework exist at the path where the compiler/linker is looking for them.
What we recommend is to use the SFML CMake Template (https://github.com/SFML/cmake-sfml-project), as it will build SFML for you and ensure that it's correctly linked to your project.
CMake will allow you to use any other IDE on macOS if you want or you can generate XCode project files.