#208 No pkg-config file

open
nobody
None
2
2014-07-19
2014-03-09
MarcelDykstra
No

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.

Discussion

  • 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?

     
  • 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?

     
  • MarcelDykstra
    MarcelDykstra
    2014-07-19

    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.