Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:27
    josfeenstra starred mosra/magnum
  • Nov 29 21:42

    mosra on vulkan

    (compare)

  • Nov 29 21:41
    mosra commented #234
  • Nov 29 21:41
    mosra labeled #234
  • Nov 29 21:41
    mosra closed #234
  • Nov 29 20:15
    mosra synchronize #234
  • Nov 29 18:14
    mosra ready_for_review #234
  • Nov 29 17:39
    ppboo starred mosra/magnum-examples
  • Nov 29 17:16
    mosra edited #234
  • Nov 29 17:01
    mosra edited #234
  • Nov 29 16:44
    mosra closed #473
  • Nov 29 16:44
    mosra commented #473
  • Nov 29 16:43
    mosra closed #484
  • Nov 29 16:43

    mosra on master

    add ray range interection algor… modules: update FindCorrade.cma… modules: port FindMagnum to use… and 11 more (compare)

  • Nov 29 16:38
    mosra edited #234
  • Nov 29 16:38
    mosra edited #234
  • Nov 29 16:38
    mosra edited #234
  • Nov 29 15:16
    baiyulanzhi starred mosra/magnum
  • Nov 28 23:25
Vladimír Vondruš
@mosra
:) thank you
Vladimír Vondruš
@mosra
YOLO
Guillaume Jacquemin
@williamjcm
What happened ?
Vladimír Vondruš
@mosra
i'm merging the vulkan branch because juggling the hundred commits is getting increasingly insufferable
development will continue on master now
Guillaume Jacquemin
@williamjcm
🤞
Vladimír Vondruš
@mosra
also, git rebase -i master --exec "cd build && ninja" is a great way how to heat the room
tho for the 100 commits it took maybe 10 minutes in total
Guillaume Jacquemin
@williamjcm
This command scares me.
Vladimír Vondruš
@mosra
it builds the whole thing for every commit, yelling at me whenever a commit isn't in a buildable state
useful for the future when i'll want to bisect or blame the original commits
Guillaume Jacquemin
@williamjcm
Interesting.
I guess I should keep that in mind.
hsdk123
@hsdk123
11-30 03:23:20.031 24544 24544 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Unable to load native library "/data/app/cz.mosra.magnum.MyApplication-CbCTHcuAoE0NBmDRbwLygA==/lib/arm64/libLightApp.so": undefined symbol: ANativeActivity_onCreate
I seem to get this error when trying to run the apk I created with magnum, does anyone have any hunches on what might be happening?
hsdk123
@hsdk123

Something I don't quite understand is why the library is being looked for in

/lib/arm64/

when I'm expecting lib/arm64-v8a/ instead

Vladimír Vondruš
@mosra
oh noes, more cursed android nightmares
cmake and ndk version?
there are some libs that should get linked implicitly, but maybe it's not done implicitly anymore
ah no that's this cursed thing again
this thing is from 2018: mosra/magnum@97a39d7
so i wonder what changed that this is broken again
ytain
@ytain
is this 'cz.mosra.magnum.MyApplication-CbCTHcuAoE0NBmDRbwLygA==' the culprit?
is it found the same in the java code?
where it loads the .so file
Vladimír Vondruš
@mosra
doesn't seem to be, the other bugreports list the same
probably some temp dir where the apk got extracted or whatever
ytain
@ytain
I guess we need some tool where it verifies the apk that is properly bundled
there it talks about that onCreate not being found
it says about using app_dummy()
Vladimír Vondruš
@mosra
yes that's the exact issue that commit from 2018 is about
of all things to do on sunday evening, android is something i really don't want to dive into
ytain
@ytain
well I guess they say that you have to use gradlew instead of cmake
Vladimír Vondruš
@mosra
no
this is the gradle-less workflow, with android_create_apk()
@hsdk123 stupid question, but ... are you using AndroidApplication or something other / custom?
ytain
@ytain
weird
Vladimír Vondruš
@mosra
that's irrelevant, sorry

so, i fortunately have a working android build here, and i did the least-effort thing i could do, which is

$ ninja PlatformAndroidApplicationTest-deploy

and it works -- the app opens and runs:

$ adb logcat *:S magnum
--------- beginning of system
--------- beginning of main
11-29 20:09:33.141 14737 14759 I magnum  : Renderer: Mali-G71 by ARM
11-29 20:09:33.141 14737 14759 I magnum  : OpenGL version: OpenGL ES 3.2 v1.r14p0-00cet0.9500166da1423e9591394b068a52b758
11-29 20:09:33.141 14737 14759 I magnum  : Using optional features:
11-29 20:09:33.141 14737 14759 I magnum  :     GL_EXT_robustness
NDK r19, cmake-git 3.19.0.rc3.337.g8705f9116e-1
but this worked always (with AndroidApplication), i'm not aware of this breaking at any point after that commit from 2018, independently of the NDK or cmake version
ytain
@ytain
no idea then
hsdk123
@hsdk123

@mosra
Using AndroidApplication

ndk version: 22.0.6917172

Name-deploy doesn't work for me either

Vladimír Vondruš
@mosra
huh? why it doesn't work
ndk r22, you're brave
hsdk123
@hsdk123
Thought I might as well, ah... For a second I was hoping Android had gotten better
Vladimír Vondruš
@mosra
so, there are two options:
  • i'll try r22 and then will probably be miserable for the rest of the day or week or year
  • you try r19 :D
can't see anything related to onCreate in r22 changelog, and i don't want to break my barely working setup right now, i need it for vulkan testing :sweat_smile:
hsdk123
@hsdk123
I'll check on r19