Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to create ThirdParty for Android with shared (.so) library within

Hello, again!

I'm no very familiar wih Android development. At this moment I have NDK shared library(.so), header files for it (.h), and .jar library. I don't have linux library (.a). So, this pack of files is enough to create ThirdParty for Android? I already create few ThirdParty for Win, with static and dynamic libraries, but I have no idea how to do same for Android. Can i use PublicDelayLoadDLLs for ".so"?

Product Version: Not Selected
more ▼

asked Jul 03 '14 at 04:48 AM in C++ Programming

avatar image

173 13 12 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Solved. There is no way to create ThirdParty for android using Java libs. It's only C++.

Instead, i can edit "UE4 Java Activity", e.g. "Engine\Build\Android\Java\src\com\epicgames\ue4\GameActivity.java" and include into it whatever i need. Also, for we must edit "Android.mk".

In "Android.mk":

 include $(CLEAR_VARS)
 LOCAL_MODULE := Vuforia-prebuilt
 LOCAL_SRC_FILES = C:\NVPACK\vuforia-sdk-android-3-0-5_0\build\lib\armeabi-v7a\libVuforia.so
 LOCAL_EXPORT_C_INCLUDES := C:\NVPACK\vuforia-sdk-android-3-0-5_0\build\include

In "GameActivity.java":

 import com.qualcomm.QCAR.QCAR;

And in end "load library" section:


And ofcourse create "Java/libs" folder and put *.jar into it.

Finally with connected lib (tested - all is OK) i can use JNI methods to access Java from C++. There are still a lot of work: per class C++->Java communication and engine-dependend template creation. Have something to do for few next weeks.

more ▼

answered Jul 05 '14 at 12:58 PM

avatar image

173 13 12 23

avatar image p4cm4n Jan 18 '16 at 10:24 AM

Did you get any results?

I have to work with vuforia, but i reaaaally don't like unity compared to UE, and unreal4ar doesn't really cut it once you know how vuforia works.

How have you approached the camera and target image prefabs absence?

Thanks for your insights :)

avatar image FilAl Oct 15 '17 at 06:09 PM

Almost same here. I am trying to load some dynamic external library. I have .so and .h for function signatures and .aar , but for the life of me i can't figure out how to link it to the packaged .apk . Your answer is outdated a bit, can anyone please share link to documentation how to do it at least on 4.16 pls?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question