-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile libminimapshared.so for x86 for Unit Test #161
Comments
Yes, you need to rename the If this doesn't solve your issue, please let me know |
Thanks for your help. I changed the
But I think XCode hasn't got the support enabled for NEON:
I think you are running on Linux so you are not using XCode :S , I will try to investigate it although any advice is welcome :) Thanks |
Yes we compiled all the libraries on Ubuntu terminal and copied them to Android Studio later. We have not tried compiling minimap2 on iOS. Can you try to compile on command line? I thought x86 uses SSE not NEON. You can also try to give a CMake option, e.g., we use Let us know what happened :) |
Since we built minimap2 for arm devices we compiled NEON related source files and included some headers. You can see them in the original Makefile also. If you want to use our CMake then you have to make some changes to it. |
@hiruna72 I'm trying to build for x86 for my test in Android (iOS will come later :) ) I commented the
|
@SanojPunchihewa so do you use NEON source files for x86 too? I follow your steps, replacing the
It may be how I create I'm creating the
|
I made some changes to the To make sure the shared library works, I also added an example code. |
Thanks a lot @hiruna72 I had to run the After running But in Android studio I'm still getting the same error, no idea why. I will keep trying to investigate, maybe something is cached. Thanks a lot for your help. |
You are welcome, great to hear that ! We also faced similar In Android, the reason could be, the C/CPP name mangling issue. Can you try after decorating the |
Yeah, I already had that interface in the cpp folder with that content and that name. Thanks |
Is your feature request related to a problem? Please describe.
Using unit test when using libminimapshared.so
Describe the solution you'd like
I'm using your app but only with minimap in Android, I have to say you've done a great job!.
My project has some unit test and instrumented test.
My instrumented test are passing with no problems but unit test are complaining in the building process because
libminimapshared.so
hasn't been built for x86.I've achieved to create
libminimapshared.so
from the minimap source code (https://github.com/lh3/minimap2).Unfortunately when I build my project for unit test, it seems it doesn't recognise
init_minimap2
Could you point if you did anything extra to create
libminimapshared.so
?Thanks
The text was updated successfully, but these errors were encountered: