The freeglut library doesn't have a .pc file.
"pkg-config --cflags --libs glut" or alternatively "pkg-config --cflags --libs freeglut" doesn't work.
The GLU library e.g. has "glu.pc.in" and autoconf generates a "glu.pc" file.
Diederick C. Niehorster
Hi, thanks for reporting. Is this with current trunk? We do have a file freeglut.pc.in in there, and the CMake file does contain the required lines to generate freeglut.pc from that.
Could you test and see where things fail for you?
Hey, the package was build from 2.8.1 tarball on Arch Linux.
I see current trunk uses CMake instead of autoconf. It also includes "freeglut.pc.in" so it will get solved in the future. Thanks.
Also it's rather redundant that we do have a pkg-config file. FreeGLUT doesn't need any weird flags or anything... Just -lglut to link is sufficient. So why do you need a pkg-config file?
It is only for convenience (e.g. "pkg-config --cflags --libs gl" also simply gives "-I/usr/include/libdrm -lGL", no complicated flags). It is when you have a small Makefile that you want to simply pass e.g. "pkg-config --cflags --libs gtk+-2.0 sdl gl glut" to gcc. I wouldn't say this mechanism is redundant. It exists for the programmer's delight.