Coder Social home page Coder Social logo

make fails: SDL_ttf.h not found about freerct HOT 3 CLOSED

freerct avatar freerct commented on June 27, 2024
make fails: SDL_ttf.h not found

from freerct.

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
The Makefile setup is not generic yet, so it may fail at other systems.

CXX=g++
CXXFLAGS=-Wall -g
INCLUDES=-I$(OBJDIR) -I/usr/include/SDL
LIBS=-lSDL -lSDL_ttf

lines in the src/Makefile may need tweaking. Try adding a  
-I/path/to/the/directory/ofyour/ttf_file.h   to the includes.
Likewise the libs may need a -L/path/to/your/sdl-libs/directory  before the -l 
options.

Original comment by [email protected] on 17 Aug 2013 at 1:00

from freerct.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Thanks. Editing the Makefile in the src diretory works.

Actually, the real problem was, that I had SDL2, not SDL1.
That means: Installing the SDL1-ttf package works, but setting the include path 
in the Makefile to /usr/include/SDL2 does not work since some mouse events are 
not supported.

Solution: use the ttf package from SDL 1
solved. Thank you

Original comment by [email protected] on 17 Aug 2013 at 6:31

from freerct.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Adapted the build program wiki page.

Original comment by [email protected] on 17 Aug 2013 at 7:25

  • Changed state: Fixed

from freerct.

Related Issues (20)

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.