You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2013/05/30 10:01:23 UTC

[jira] [Resolved] (THRIFT-1968) Thrift's include path is wrong in pkg-config files

     [ https://issues.apache.org/jira/browse/THRIFT-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1968.
---------------------------------

    Resolution: Fixed

comitted 
                
> Thrift's include path is wrong in pkg-config files
> --------------------------------------------------
>
>                 Key: THRIFT-1968
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1968
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.9
>         Environment: Gentoo Linux
>            Reporter: Tomasz RydzyƄski
>            Assignee: Roger Meier
>            Priority: Minor
>
> It seems like thrift's pkg-config files are pointing to a wrong include path.
> I've installed thrift 0.9.0 (and rechecked with git's master) like this:
>   ./configure --prefix=/opt/thrift
>   make
>   sudo make install
> Now I have, e.g. this file:
>   /opt/thrift/include/thrift/Thrift.h
> However, at this point I'm not able to include <thrift/Thrift.h>, because
>   pkg-config thrift --cflags
> returns:
>   -I/opt/thrift/include/thrift
> Which means I should include <Thrift.h>
> Page http://wiki.apache.org/thrift/ThriftUsageC%2B%2B suggests including files without the "thrift/" prefix. But the generated code does contain the prefix...
> Am I doing something wrong, or is it actually a bug and thrift should install headers with one more directory in the path, e.g:
>   ${PREFIX}/include/thrift-0.9.0/thrift
> That's the way some other libraries are doing it, e.g. gtk+.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira