Trouble-Shooting Eigen on 32bit Architectures

Using Eigen on 32bit architectures can produce the following error:

some_deployment: /path/to/rock/install/include/eigen3/Eigen/src/Core/DenseStorage.h:69: 
Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 16>::plain_array() 
[with T = double, int Size = 16, int MatrixOrArrayOptions = 0]: 
Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: " 
" **** READ THIS WEB PAGE !!! ****"' failed.

This can be solved by rebuilding rock with the EIGEN_DONT_ALIGN flag enabled globally. To do this, one has to add "-DEIGEN_DONT_ALIGN=1" to the Cflags in "rock/base/types/" and "rock/base/types/".

The Cflags-line in "" and "" should look like this:

Cflags: -I${includedir} -DEIGEN_DONT_ALIGN=1
Last modified 9 years ago Last modified on 06/04/12 11:51:04