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.
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/freeglut
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.
So since we do actually have a pkg-config file. I'm closing this bug report.