Drahflow / DrahflowsAR

Stereoscopic AR Vision on an Epson Moverio BT-300
0 stars 0 forks source link

How to compile on the latest Android Studio? #1

Open diyism opened 5 years ago

diyism commented 5 years ago

I've imported the project into Android Studio, and comipled it successfully without error, but when I install the apk and run it, the app will crash with log: "couldn't find libar_jni.so"

How to compile on the latest Android Studio?

My current fork: https://github.com/diyism/bt300-vncviewer

Thanks.

Drahflow commented 5 years ago

It needs native support from here: https://github.com/Drahflow/DrahflowsAR/blob/b25bf50b66167a69b8ccd90ab9094c2959ac1e95/Makefile#L4

Source files are at: https://github.com/Drahflow/DrahflowsAR/tree/master/jni

I have no idea how this will be handled by Android Studio, but there is probably some option to compile native code in tandem with the rest of the project.

A quick side-note: You forked this to ...-vncviewer. Did you check https://github.com/Drahflow/android-vnc-viewer ? (It is a Android VNCViewer with just panning support and 1 virtual screen floating in space. Should be a lot easier to get to run. And has (in its current state) a lot more utility I'd say.)

This Repo is a currently not continued journey into full AR (i.e. it tracks BT300 position in space and renders AR objects at constant world positions (or tries anyway)). If you "just" want to have a quick way to use your BT300 as a VNC client, use the other project.

diyism commented 5 years ago

Sorry, could you do me a favor to attach the compied DrahflowAR.apk or send a copy to my email: kexianbin@diyism.com ? Thanks