Salut, j'ai besoin de votre aide les amis s'il vous plait
Je travail sur un projet c++ en sfml, je suis sur imac (mojave 10.14.6). Avec xcode le programme compile et la fenêtre se lance sans problème, mais je ne réussi pas avec le makefile
voici une partie du makefilefatal error: SFML/Audio.hpp: No such file or directory
5 | #include <SFML/Audio.hpp>
Code makefile : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 CC=g++ FLAGS=-W -Wall -lpthread -std=c++11 SF_INCLUDE = -I/usr/local/include SF_LIB= -L/usr/local/lib -lsfml-grafics -lsfml-audio -lsfml-window -lsfml-system -lsfml-network EXE=Prog OBJS=Macros.o $(EXE): main.o $(OBJS) $(CC) -o $(EXE) main.o $(OBJS) $(SF_LIB) $(FLAGS) Macros.o: Macros.hpp $(CC) -o Macros.o -c Macros.cpp $(SF_INCLUDE) $(FLAGS) main.o: main.cpp Macros.hpp $(CC) -o main.o -c main.cpp $(SF_INCLUDE) $(FLAGS) cls: rm -rf *.o
Quelqu'un peut me donner la bonne version. Merci et excellente journée





Répondre avec citation








et sa c'est le top ^^ Maintenant je peux travailler avec le fameux CMakeLists trankilou.

Partager