#208 No pkg-config file


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?

  • John Tsiombikas

    John Tsiombikas - 2014-07-19

    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?

  • MDykstra

    MDykstra - 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.

  • John Tsiombikas

    John Tsiombikas - 2014-12-02
    • status: open --> closed
    • Group: -->
  • John Tsiombikas

    John Tsiombikas - 2014-12-02

    So since we do actually have a pkg-config file. I'm closing this bug report.


Log in to post a comment.