openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Android fixes

Open prisonerjohn opened this issue 8 months ago • 5 comments

Trying to get Android working with 0.12.1 on Windows... still WIP I noticed a couple of typos fixed here.

prisonerjohn avatar Apr 28 '25 12:04 prisonerjohn

Projects are compiling but still not running. There's some type of linking error with OF at runtime. The app loads and runs but nothing happens.

I tried using OF_STATIC=true and get the following log: Loading the library normally failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found

I tried using OF_STATIC=false and get the following log: Loading the library normally failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libopenFrameworksAndroid.so" not found

prisonerjohn avatar Apr 28 '25 12:04 prisonerjohn

Yeah you need the examples changes merged since the main.cpp changes are important

On Mon, 28 Apr 2025 at 10:22 pm, Elie Zananiri @.***> wrote:

prisonerjohn left a comment (openframeworks/openFrameworks#8439) https://github.com/openframeworks/openFrameworks/pull/8439#issuecomment-2835064818

Projects are compiling but still not running. There's some type of linking error with OF at runtime. The app loads and runs but nothing happens.

I tried using OF_STATIC=true and get the following log: Loading the library normally failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libc++_shared.so" not found

I tried using OF_STATIC=false and get the following log: Loading the library normally failed: java.lang.UnsatisfiedLinkError: dlopen failed: library "libopenFrameworksAndroid.so" not found

— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/pull/8439#issuecomment-2835064818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HBUMRJ7GGMBZJ2I6LT23YMOTAVCNFSM6AAAAAB4AIWQSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZVGA3DIOBRHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

danoli3 avatar Apr 28 '25 13:04 danoli3

Thanks @danoli3! I'm assuming you mean the changes in this PR?

I brought those in to test BUT the new projects are missing the gradle wrapper (looks like it was removed from the template project). I tried adding it back in and that gets the build going but I still get a runtime crash:

Cmdline: cc.openframeworks.emptyExample
pid: 9590, tid: 9620, name: Thread-2  >>> cc.openframeworks.emptyExample <<<
        #00 pc 000000000057cfe0  /data/app/~~DeWzwrnF2XYQ48TyW0dHcQ==/cc.openframeworks.emptyExample-gMBvskePhVCjpSxG1AXIYQ==/base.apk!libopenFrameworksAndroid.so (offset 0xdcc000) (BuildId: ee08fbe21613093fb1d2e161fffb13ac5e998ef9)
        #18 pc 00000000003818f8  /data/app/~~DeWzwrnF2XYQ48TyW0dHcQ==/cc.openframeworks.emptyExample-gMBvskePhVCjpSxG1AXIYQ==/base.apk (offset 0x487000) (com.getkeepsafe.relinker.SystemLibraryLoader.loadLibrary+0)
        #24 pc 00000000003814f8  /data/app/~~DeWzwrnF2XYQ48TyW0dHcQ==/cc.openframeworks.emptyExample-gMBvskePhVCjpSxG1AXIYQ==/base.apk (offset 0x487000) (com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal+0)
        #30 pc 0000000000381374  /data/app/~~DeWzwrnF2XYQ48TyW0dHcQ==/cc.openframeworks.emptyExample-gMBvskePhVCjpSxG1AXIYQ==/base.apk (offset 0x487000) (com.getkeepsafe.relinker.ReLinkerInstance.access$000+0)
        #36 pc 0000000000381168  /data/app/~~DeWzwrnF2XYQ48TyW0dHcQ==/cc.openframeworks.emptyExample-gMBvskePhVCjpSxG1AXIYQ==/base.apk (offset 0x487000) (com.getkeepsafe.relinker.ReLinkerInstance$1.run+0)

prisonerjohn avatar Apr 28 '25 15:04 prisonerjohn

@danoli3 would love to release 0.12.1 Android is the only thing holding it up. If you want to point @prisonerjohn or myself towards what's needed I'd be more than happy to help, otherwise we can just release 0.12.1 now and add Android later when it's ready.

ofTheo avatar Apr 29 '25 21:04 ofTheo

Okay was able to turn virtualisation on my windows machine: image

seems like issue with ofxAccel

danoli3 avatar May 05 '25 06:05 danoli3

This is fixed now

danoli3 avatar Jul 21 '25 07:07 danoli3