Tomasz Rydzyński created THRIFT-1968:
----------------------------------------
Summary: 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
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