I am start game development with C++ and i am using SDL2, i download sdl_tff extension in libsdl.org and run ./configure
->make
->make install
to install it but when i compile it says no file found , I am currently learning from lazyfoo tutorials my makefile to generate the program is:
# set the compiler CC := clang # set the compiler flags CFLAGS := -lSDL2 -lSDL2_image -lSDL2_tff # add header files here HDRS := # add source files here SRCS := pepe.cpp # generate names of object files OBJS := $ (SRCS:.cpp=.o) #This is the target that compiles our executable all : $ (SRCS) $ (CC) $ (SRCS) $ (CFLAGS) -o $ (OBJS) ./$ (OBJS)
When I do find /usr|grep SDL_ttf
it gives me the following output:
/usr/lib/x86_64-linux-gnu/libSDL_ttf.a /usr/lib/x86_64-linux-gnu/libSDL_ttf-2.0.so.0 /usr/lib/x86_64-linux-gnu/pkgconfig/SDL_ttf.pc /usr/lib/x86_64-linux-gnu/libSDL_ttf-2.0.so.0.10.1 /usr/lib/x86_64-linux-gnu/libSDL_ttf.so /usr/local/include/SDL2/SDL_ttf.h /usr/include/SDL2/SDL_ttf.h /usr/include/SDL/SDL_ttf.h
I forgot to say my operating system is Ubuntu 18.04 LTS. Thanks!