New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 351 - Fixed path in pkg-config control file eigen2.pc breaks cross-compiling
Summary: Fixed path in pkg-config control file eigen2.pc breaks cross-compiling
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux
: --- minor
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 08:19 UTC by Steve Wolter
Modified: 2011-09-22 08:19 UTC (History)
2 users (show)



Attachments
Patch for eigen2-2.0.16 that fixes the issue. (430 bytes, application/octet-stream)
2011-09-22 08:19 UTC, Steve Wolter
no flags Details

Description Steve Wolter 2011-09-22 08:19:42 UTC
Created attachment 211 [details]
Patch for eigen2-2.0.16 that fixes the issue.

The pkg-config file of Eigen2 declares a fixed include path like

Cflags: -I/usr/include/eigen2

while standard practice is to declare it with variables, like:

prefix=/usr
includedir=${prefix}/include
Cflags: -I${includedir}/eigen2

Cross-compiling tools like dpkg-cross rely on the standard layout to re-base compiler and linker paths from /usr to /usr/${triplet} and can't perform their job if the path is fixed.

I've attached a patch to fix this issue.

Note You need to log in before you can comment on or make changes to this bug.