g++ can't find header files for libeigen

Bug #996263 reported by Pavlo
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eigen3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

libeigen3-dev.

Header files invisible for g++. Problem can be fixed manually but it is not normal, for me. Since all variable in namespace it would be very nice to have those file in the g++ search path.

Description: Ubuntu 12.04 LTS
Release: 12.04

3.2.0-24-generic #38-Ubuntu SMP Tue May 1 16:18:50 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
ii libeigen3-dev 3.0.5-1 lightweight C++ template library for linear algebra
ii libeigen3-doc 3.0.5-1 eigen3 API documentation
ii g++ 4:4.6.3-1ubuntu5 GNU C++ compiler
ii g++-4.5 4.5.3-12ubuntu2 GNU C++ compiler
ii g++-4.6 4.6.3-1ubuntu5 GNU C++ compiler

Revision history for this message
Pavlo (pavlo-solntsev) wrote :

I forgot to show you file i tried to compile:

#include <Eigen/Core>
#include <Eigen/LU>

using namespace Eigen;

int main(int argc, char *argv[])
{
......
}

Revision history for this message
Julian Taylor (jtaylor) wrote :

g++ main.cpp `pkg-config --cflags eigen3` works fine here

Changed in eigen3 (Ubuntu):
status: New → Incomplete
Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 996263] [NEW] g++ can't find header files for libeigen

I would prefer to keep header-files in /usr/include/eigen3 as it is.

We have also eigen2, which will definitely conflict with eigen3, if
header-files from both packages will be placed into /usr/include.

Also eigen has an "unsupported" folder which will be confusing, if we
put it directly into /usr/include

Anton

Revision history for this message
Pavlo (pavlo-solntsev) wrote :

I didn't know trick with pkg-config. There is no info about that. It does work. Bug can be closed. We just probably need to add info about pkg-config somewhere to clarify this situation. Thank you.

PS.

Revision history for this message
Julian Taylor (jtaylor) wrote :

yes that information should be placed in README.Debian

Changed in eigen3 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Julian Taylor (jtaylor) wrote :

/usr/share/doc/libeigen3-dev/README.Debian that is
that is the normal place to put debian package specific information.

Revision history for this message
Anton Gladky (gladky-anton) wrote :

Strange, Launchpad does not send not all messages of this bug per email...

Pavlo, I think the following line should also compile your code:

g++ -I/usr/include/eigen3 main.cpp

Revision history for this message
Pavlo (pavlo-solntsev) wrote :

2Anton.

It does. As i said it is not normal way. pkg-config works perfect and it is solution. Bug is closed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.