home Forums # Technical Support Error in fuzzylite.pc.in file (issue report and fix)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2093
    Unknown
    Member

    When installing fuzzylite in a location different from default, pkgconfig won’t be able to find library dir and include dir.

    How to reproduce:
    – Build fuzzylite and install it in a non-default path (for example, /opt/fuzzylite):
    $ cmake -DCMAKE_INSTALL_PREFIX=/opt/fuzzylite . && make install

    – Run pkg-config –libs:
    $ PKG_CONFIG_PATH=/opt/fuzzylite/lib/pkgconfig/ pkg-config –libs fuzzylite
    Output: -L -lfuzzylite
    Expected Output: -L/opt/fuzzylite/lib -lfuzzylite

    – Run pkg-config –cflags:
    PKG_CONFIG_PATH=/opt/fuzzylite/lib/pkgconfig/ pkg-config –cflags fuzzylite
    Output: -I/opt/fuzzylite/include/fl
    Expected Output: -I/opt/fuzzylite/include

    I wrote a patch fixing the issue: http://pastebin.com/0jD8tdjh

    #2094

    Dear otaviobp,

    thank you very much for your patch. I have applied the patch to the master branch.

    Cheers.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.