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

"Package SDL_ttf was not found in the pkg-config search path." #35

Open
zippoxer opened this issue Jul 22, 2011 · 5 comments
Open

"Package SDL_ttf was not found in the pkg-config search path." #35

zippoxer opened this issue Jul 22, 2011 · 5 comments

Comments

@zippoxer
Copy link

The output of calling make:

gomake -C sdl
make[1]: Entering directory `/root/Go-SDL/sdl'
make[1]: Leaving directory `/root/Go-SDL/sdl'
gomake -C ttf
make[1]: Entering directory `/root/Go-SDL/ttf'
CGOPKGPATH=sdl cgo --  ttf.go
Package SDL_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL_ttf' found
ttf.go: bad #cgo option pkg-config: pkg-config failed
make[1]: *** [_obj/_cgo_run] Error 2
make[1]: Leaving directory `/root/Go-SDL/ttf'
make: *** [all] Error 2

I do have libsdl-ttf-dev installed.
I do not have the file SDL_ttf.pc anywhere on my only hard drive.
I do not know why it's happening to me.

@mogoh
Copy link

mogoh commented Jul 27, 2011

I've got the same problem and also no Idea.

@bmatsuo
Copy link

bmatsuo commented Aug 3, 2011

Also a problem for me on Ubuntu Lucid.

@zombieCraig
Copy link

I had the same problem on my Ubuntu system. I created two files by hand SDL_ttf.pc and SDL_mixer.pc. I then copied them to /usr/lib/pkgconfig and all worked fine. Below is the contents of the two files:

SDL_ttf.pc

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: SDL_ttf
Description: ttf library for Simple DirectMedia Layer with FreeType 2 support
Version: @VERSION@
Requires: sdl >= @SDL_VERSION@
Libs: -L${libdir} -lSDL_ttf
Cflags: -I${includedir}/SDL

SDL_mixer.pc

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: SDL_mixer
Description: mixer library for Simple DirectMedia Layer
Version: @VERSION@
Requires: sdl >= @SDL_VERSION@
Libs: -L${libdir} -lSDL_mixer
Cflags: -I${includedir}/SDL

Note I haven't tested Go-SDL yet just saw that it compiled fine.

@ghost
Copy link

ghost commented Feb 24, 2013

Ubuntu 12.10 (quantal) appears to be shipping with SDL_ttf.pc.

http://packages.ubuntu.com/quantal/i386/libsdl-ttf2.0-dev/filelist

@trosh
Copy link

trosh commented Mar 17, 2013

@zombieCraig not sure what witchcraft you used but this solves everything (at least on my #! distro). thumbs up.

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

No branches or pull requests

5 participants