Discussion:
Add Eigen library to NDK
Eduardo Santamaría Vázquez
2018-01-18 09:08:27 UTC
Permalink
Hi!

I'm triying to add Eigen library to my Andorid Projects to do some linear
algebra operations. This library doesn't need to be compiled, just include
the headers so I thought it would be easy, but i can't do it. I've been
looking for information on this topic, but there isn't too much. I've
tried to copy the folder with the headers in the NDK folder
(..\Android\Sdk\ndk-bundle\sysroot\usr\include) buy it didn't work (Android
Studio don't detect the fodler). How can i do it?

Thank you in advance!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/2aaeec3f-0ba3-4a65-8aff-7358c7eb6c80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kenneth Geisshirt
2018-01-19 10:47:08 UTC
Permalink
Hey Eduardo,

Do you plan to access the matrices from Java or only using it in your C++
code?

In Android Studio you can add support for C++ code in a project (see
https://groups.google.com/forum/#!topic/android-ndk/3kAhx15wUXs), and then
you can copy Eigen into your app's source code.

- Kenneth

On Thu, Jan 18, 2018 at 4:39 PM Eduardo Santamaría Vázquez <
Post by Eduardo Santamaría Vázquez
Hi!
I'm triying to add Eigen library to my Andorid Projects to do some linear
algebra operations. This library doesn't need to be compiled, just include
the headers so I thought it would be easy, but i can't do it. I've been
looking for information on this topic, but there isn't too much. I've
tried to copy the folder with the headers in the NDK folder
(..\Android\Sdk\ndk-bundle\sysroot\usr\include) buy it didn't work (Android
Studio don't detect the fodler). How can i do it?
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/2aaeec3f-0ba3-4a65-8aff-7358c7eb6c80%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/2aaeec3f-0ba3-4a65-8aff-7358c7eb6c80%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Kenneth Geisshirt, M.Sc., Ph.D.
MajbÞl Allé 18, DK-2770 Kastrup, +45 60 62 71 82
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFLzvuoWNWguVo0kN4N%3DYMrfoV1iek5M-hPL06gU_Yfyr2S%3Dvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Alex Cohn
2018-01-20 22:43:18 UTC
Permalink
Well, modifying the NDK directories is not a particularly good idea. You
are supposed to add the Eigen directory to your project (Android.mk or
CMakeLists.txt, depending on your build tools). But an experiment shows
that Android Studio finds the file sysroot\usr\include\q\qq.h, if it is
included as #include "q/qqq.h".

BR,
Alex

On Thursday, January 18, 2018 at 5:39:32 PM UTC+2, Eduardo Santamaría
Post by Eduardo Santamaría Vázquez
Hi!
I'm triying to add Eigen library to my Andorid Projects to do some linear
algebra operations. This library doesn't need to be compiled, just include
the headers so I thought it would be easy, but i can't do it. I've been
looking for information on this topic, but there isn't too much. I've
tried to copy the folder with the headers in the NDK folder
(..\Android\Sdk\ndk-bundle\sysroot\usr\include) buy it didn't work (Android
Studio don't detect the fodler). How can i do it?
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/f156f089-3ed6-4fc3-b1af-05b0d88c330f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kenneth Geisshirt
2018-01-19 22:26:44 UTC
Permalink
Hi again,

I have created https://github.com/kneth/EigenDemo to show how you can add
Eigen to your app. I am using git submodule to pull Eigen into the app.

- Kenneth

On Thursday, January 18, 2018 at 4:39:32 PM UTC+1, Eduardo Santamaría
Post by Eduardo Santamaría Vázquez
Hi!
I'm triying to add Eigen library to my Andorid Projects to do some linear
algebra operations. This library doesn't need to be compiled, just include
the headers so I thought it would be easy, but i can't do it. I've been
looking for information on this topic, but there isn't too much. I've
tried to copy the folder with the headers in the NDK folder
(..\Android\Sdk\ndk-bundle\sysroot\usr\include) buy it didn't work (Android
Studio don't detect the fodler). How can i do it?
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/c26705cb-6bfe-4b56-91f1-8b2c28dbb41f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...