Giter VIP home page Giter VIP logo

Comments (8)

MockArch avatar MockArch commented on June 3, 2024

when i type the make file the error
generated

the error code is below

~/Desktop/MyHobby/tetris-sdl-c$ make
gcc -g sdl2-config --cflags -c src/init.c
In file included from src/init.h:1:0,
from src/init.c:1:
src/defs.h:10:26: fatal error: SDL2/SDL_ttf.h: No such file or directory
compilation terminated.
makefile:13: recipe for target 'init.o' failed
make: *** [init.o] Error 1

from tetris-sdl-c.

dashed avatar dashed commented on June 3, 2024

@MockBond hi, please create a new issue regarding your compilation issues. It looks like you need to install SDL2_ttf library.

from tetris-sdl-c.

MockArch avatar MockArch commented on June 3, 2024

i sloved it by :-> sudo apt-get install libSDL2-ttf-2.0-0

thanks a lot sir!!

sir , i would like to work with this project further by adding some fancy tweaks and feature .
also please get mario game with SDL2 .. we can work with that too!!
with slight changes , if your interested let me know sir ,,

have a great day sir !!

from tetris-sdl-c.

dashed avatar dashed commented on June 3, 2024

@MockBond glad it works. feel free to fork this repository and as much tweaks and features you like 👍

from tetris-sdl-c.

MockArch avatar MockArch commented on June 3, 2024

Sir again same problem


tetris-sdl-c$ make
gcc -g sdl2-config --cflags -c src/init.c
In file included from src/init.h:1:0,
from src/init.c:1:
src/defs.h:10:26: fatal error: SDL2/SDL_ttf.h: No such file or directory
compilation terminated.
makefile:13: recipe for target 'init.o' failed
make: *** [init.o] Error 1

from tetris-sdl-c.

MockArch avatar MockArch commented on June 3, 2024

libsdl2-ttf-2.0-0 This what the library i downloaded while ago!!

Sorry for interruption sir !!

from tetris-sdl-c.

dashed avatar dashed commented on June 3, 2024

@MockBond Sorry, I don't have an immediate access to a ubuntu machine (assuming that is your OS you're working in) to help you. I made the tetris program in mac, and thus only know how to compile it in that OS.

from tetris-sdl-c.

MockArch avatar MockArch commented on June 3, 2024

Thank you for the reply !!
Im still struggling with output ... I will try to get the output and update for the same .

Do u have any open source projects that you would like to suggest me ..
my skills are C,C++,Python, Linux shell

from tetris-sdl-c.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.