Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] SFML/Graphics.hpp file not found #61

Open
vikrammeyer opened this issue Oct 19, 2022 · 4 comments
Open

[Question] SFML/Graphics.hpp file not found #61

vikrammeyer opened this issue Oct 19, 2022 · 4 comments
Labels
question Further information is requested

Comments

@vikrammeyer
Copy link

vikrammeyer commented Oct 19, 2022

I am on macOS Monterey and I have cmake and sfml installed via brew. However when I run, python3 setup.py develop I am getting the fatal error of SFML/Graphics.hpp' file not found. It appears that brew is installing SFML as below:

/usr/local/Cellar/sfml/2.5.1_2
├── INSTALL_RECEIPT.json
├── changelog.md
├── include
│   └── SFML
│       ├── Audio
│       ├── Audio.hpp
│       ├── Config.hpp
│       ├── GpuPreference.hpp
│       ├── Graphics
│       ├── Graphics.hpp
│       ├── Main.hpp
│       ├── Network
│       ├── Network.hpp
│       ├── OpenGL.hpp
│       ├── SFML
│       ├── System
│       ├── System.hpp
│       ├── Window
│       └── Window.hpp
├── lib
│   ├── cmake
│   │   └── SFML
│   ├── libsfml-audio.2.5.1.dylib
│   ├── libsfml-audio.2.5.dylib -> libsfml-audio.2.5.1.dylib
│   ├── libsfml-audio.dylib -> libsfml-audio.2.5.dylib
│   ├── libsfml-graphics.2.5.1.dylib
│   ├── libsfml-graphics.2.5.dylib -> libsfml-graphics.2.5.1.dylib
│   ├── libsfml-graphics.dylib -> libsfml-graphics.2.5.dylib
│   ├── libsfml-network.2.5.1.dylib
│   ├── libsfml-network.2.5.dylib -> libsfml-network.2.5.1.dylib
│   ├── libsfml-network.dylib -> libsfml-network.2.5.dylib
│   ├── libsfml-system.2.5.1.dylib
│   ├── libsfml-system.2.5.dylib -> libsfml-system.2.5.1.dylib
│   ├── libsfml-system.dylib -> libsfml-system.2.5.dylib
│   ├── libsfml-window.2.5.1.dylib
│   ├── libsfml-window.2.5.dylib -> libsfml-window.2.5.1.dylib
│   ├── libsfml-window.dylib -> libsfml-window.2.5.dylib
│   └── pkgconfig
│       ├── sfml-all.pc
│       ├── sfml-audio.pc
│       ├── sfml-graphics.pc
│       ├── sfml-network.pc
│       ├── sfml-system.pc
│       └── sfml-window.pc
├── license.md
├── readme.md
└── share
    └── SFML
        ├── doc
        ├── license.md
        └── readme.md

I ensured /usr/local/lib has the .dylib files for sfml and I manually copied the include directory from the downloaded SFML to /usr/local/include so that SFML/Graphics.hpp exists in there. None of this has worked in getting the project to compile and I am unsure how to proceed. Any tips on how to proceed to get this working?

@vikrammeyer vikrammeyer added the question Further information is requested label Oct 19, 2022
@eugenevinitsky
Copy link
Collaborator

Looking into this, but just to check, did you follow the M1 instructions if you have an M1 chip?

@vikrammeyer
Copy link
Author

I have an Intel chip so I did not do any of the M1 instructions. I do not use conda but from my understanding this would not be the issue.

@nathanlct
Copy link
Contributor

I just tried this on my Mac and it worked:

-- Found SFML 2.5.1 in /opt/homebrew/lib/cmake/SFML

Does this path exist for you? If so, do you have the following in your PATH?

> echo $PATH
/opt/homebrew/bin:/opt/homebrew/sbin

@vikrammeyer
Copy link
Author

/opt/homebrew/lib/cmake/SFML does not exist for me, in fact /opt/homebrew/ does not even exist for me. I get -- Found SFML 2.5.1 in /usr/local/lib/cmake/SFML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants