Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to use Eigen in QNX 6.4.1: (2 Items)
   
How to use Eigen in QNX 6.4.1  
Hi all

Anyone knows how to include Eigen?

my target is QNX 6.4.1, PPC
I am using momentics for corss-compiling on windows

my program is simple

#include <Eigen/Dense>
using Eigen::MatrixXd;

int main(int argc, char *argv[])
{
    MatrixXd m(2,2);

    return 0;
}

when I compile it, it shows following errors:

Compiling my_math.cpp
qcc -V4.2.4,gcc_ntoppcbe_ecpp-ne  -D_NO_CONSOLE_IO_ -DNDEBUG -O2 -IC:\src_Robotics\Robotics/Releases/Include -IC:\
eigen_include\Eigen\src\Core -D_EMBEDDED_APPLICATION_  -Wno-unknown-pragmas -c vo_math.cpp
vo_math.cpp:26:23: error: Eigen/Dense: No such file or directory
cc: C:/QNX640/host/win32/x86/usr/lib/gcc/powerpc-unknown-nto-qnx6.4.0/4.2.4/cc1plus caught signal 1
make: *** [vo_math.o] Error 1

Thanks in advance

Re: How to use Eigen in QNX 6.4.1  
just compile this program using command line interface like this

go to the QNX installtion folder and run

source qnxsdp-env.sh

q++ -Vgcc_ntox86_64 -std=c++14 -I /home/madhav/eigen-3.3.9/ eigentest.cpp -o eigenexe1

thanks