Menu

#208 No pkg-config file

None
closed
nobody
None
2
2014-12-02
2014-03-09
MDykstra
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

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

     
  • MDykstra

    MDykstra - 2014-06-02

    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.

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