This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compiling Eigen 3.1 with the Android NDK

Tags: None
(comma "," separated)
woutervd
Registered Member
Posts
3
Karma
0
Hi,

I just switched over to the latest and greatest Eigen version. It works out of the box on all the tested platforms except for Android.
It seems that isfinite was already defined by a macro. What I did was add
Code: Select all
#undef isfinite
just before isfinite is declared in MathFunctions.h.
That solved my problem. Hopefully a fix will be included in a future build of Eigen :)

Thanks,

Wouter
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
I'd rather blame the Android NDK which should not define such a polluting macro.

What if you include Eigen headers first?
woutervd
Registered Member
Posts
3
Karma
0
Blaming the NDK is fine by me :) I guess I could report it there as well.
Including Eigen first is not really an option. The project is way too big to manage that.

Thanks for your time.

Wouter
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
woutervd
Registered Member
Posts
3
Karma
0
Great! I will make use of it with the next release integration.

Thanks,

Wouter


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]