Open Scott-Klein opened 1 year ago
I will look into this further later today
Just to check, you did do a fresh export from unity? There might be some missing files that were gitignored
On exporting there's an error at the bottom here There are a lot of compile errors off the bat in unity upon opening the project from a fresh clone.
I have run into that as well. Mind showing me your Console when you attempt that? I will try to reproduce after work today.
In my case, when it said "compile errors in the editor" it wasn't even showing anything in the Console, I think I just had to restart unity at that point.
Maybe try enabling Development Build to see if that helps at all.
I have "export for app bundle" disabled in mine
Maybe also verify these project settings haven't changed:
I can confirm the player settings are identical. It looks like something from the NRSDK is missing, something called ZipUtility
yeah, i just verified the file is in the repo, this is strange. you could try importing the NRSDK unitypackage but, before you do that, could you try building once with Export unchecked?
Build fails with the same compilation errors, SharpZipLib is a dependency of the NRSDK and it seems the project can't find it, do you know how to manually add libraries to a project?
I manually added the SharpZipLib assembly and now there are a lot of other missing assemblies. Shall I grab the vlc library directly? I think the repo just doesn't include compiled assemblies.
hey yeah that makes sense. ill have to see about adding a script for downloading those
in the meantime you can download the trial version of the vlc for unity (android) package here https://videolabs.io/#unity
I've gotten it deployed, have you tried this on the Nreal Airs? I'm only getting some sound effect out of the right speaker, and everything blank with the default control layout on the phone screen
yes i only have Airs
and that video clip is a bad example i need to replace it. it only has audio in the right channel. https://jakedowns.com/media/sbs.mp4 is a longer/larger file that has other scenes with better stereo sound
the controller should show a Menu button at the top which should expose playback controls and the ability to change the url of the file being played
the local file picker isnt working yet. fixing that tonight
Is the app trying to download a video immediately? I get no visual output at all and the Menu button once clicked becomes greyed out and nothing changes. Perhaps I'll have a blank view until the video finishes downloading.
On Fri, Dec 2, 2022 at 12:39 PM Jake Downs @.***> wrote:
yes i only have Airs
and that video clip is a bad example i need to replace it. it only has audio in the right channel. https://jakedowns.com/media/sbs.mp4 is a longer/larger file that has other scenes with better stereo sound
the controller should show a Menu button at the top which should expose playback controls and the ability to change the url of the file being played
— Reply to this email directly, view it on GitHub https://github.com/jakedowns/Into3D/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGECX3DUNJQFUWY5FX6LAJDWLFHNRANCNFSM6AAAAAASQUF4SY . You are receiving this because you authored the thread.Message ID: @.***>
-- Regards,
Scott Klein
yes, video should start streaming right away
might need to check android logcat to see if some errors are being logged.
theres a way to connect adb to your phone over wifi
Hah I always debug wirelessly, there is a lot of output in logcat, and I can see that the problem most likely is not related to downloading or anything like that. I think there's a library misconfiguration lingering around in my build somewhere still. Can you think of a way to get a repeatable building pipeline going ahead? I'm looking through your code and am feeling like I can start work straight away once we sort this.
Here is the error filter, from the other filters I can see that VLC seems to be working correctly for the most part.
2022-12-02 13:00:32.974 13637-13637/? E/USNET: USNET: appName: com.jakedowns.nrealDemo
2022-12-02 13:00:33.444 13637-13637/com.jakedowns.nrealDemo E/downs.nrealDem: Failed to open file '/data/data/com.jakedowns.nrealDemo/code_cache/.overlay/base.apk/assets/bin/Data/boot.config': No such file or directory
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:33.666 13637-13669/com.jakedowns.nrealDemo E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-12-02 13:00:36.334 13637-13669/com.jakedowns.nrealDemo E/Unity: [Error][NRSessionManager] NRDevice Init failed: nr_api assembly:<unknown assembly> type:<unknown type> member:(null)
2022-12-02 13:00:36.442 13637-13669/com.jakedowns.nrealDemo E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
2022-12-02 13:00:36.585 13637-13669/com.jakedowns.nrealDemo E/Unity: [Error][NRVirtualDisplayer] NRDevice init error:System.DllNotFoundException: nr_api assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) NRKernal.NRDevice+NativeApi.NRSDKInitSetAndroidActivity(intptr)
at NRKernal.NRDevice.Init () [0x00045] in <6a7309979782489a9bd4fb2d1450eeb0>:0
at NRKernal.NRVirtualDisplayer.CreateDisplay () [0x00018] in <6a7309979782489a9bd4fb2d1450eeb0>:0
2022-12-02 13:00:36.590 13637-13669/com.jakedowns.nrealDemo E/Unity: DllNotFoundException: nr_api assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) NRKernal.NRDevice+NativeApi.NRSDKInitSetAndroidActivity(intptr)
at NRKernal.NRDevice.Init () [0x00045] in <6a7309979782489a9bd4fb2d1450eeb0>:0
at NRKernal.NRVirtualDisplayer.CreateDisplay () [0x00035] in <6a7309979782489a9bd4fb2d1450eeb0>:0
at NRKernal.NRVirtualDisplayer.Start () [0x00009] in <6a7309979782489a9bd4fb2d1450eeb0>:0
2022-12-02 13:00:36.591 13637-13669/com.jakedowns.nrealDemo E/Unity: DllNotFoundException: nr_api assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) NRKernal.NRDevice+NativeApi.NRSDKInitSetAndroidActivity(intptr)
at NRKernal.NRDevice.Init () [0x00045] in <6a7309979782489a9bd4fb2d1450eeb0>:0
at NRKernal.NRInput.Init () [0x0000f] in <6a7309979782489a9bd4fb2d1450eeb0>:0
at NRKernal.NRInput.Start () [0x00009] in <6a7309979782489a9bd4fb2d1450eeb0>:0
2022-12-02 13:00:39.158 13637-13780/com.jakedowns.nrealDemo E/NdkMediaCodec: sf error code: -38
yeah it definitely seems like there's still some missing compiled things. I'm gonna do a fresh clone and see what steps i need to perform to get it building. i'll get back to you
More than one file was found with OS independent path 'lib/armeabi-v7a/libc++_shared.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
I'm sure you've seen this error before?
I've done a fresh clone, deleted the NRSDK, deleted VLC, import my own fresh downloaded version of NRSDK, and VLC. Export, now trying to build in Android, I'm sure I've got all the dependencies now just need to get past this build error.
packagingOptions.pickFirst=**/libc++_shared.so
Yep that's configured as you have it, should I delete that line instead?
hrm. that line is how i resolved that error i believe. :G
I'll stop debugging then and just wait for you to see what happens when you do a git clone and build, that is if you want contributors to be able to debug their work. I'm tempted to just do work and PR without testing it.
i really appreciate the effort you've put into getting this running and i definitely do want to collaborate
this is my first time open sourcing a unity project and from what ive read there is a bit of a learning curve for working on them with version control
i saw a lot of recommendations for using perforce over git, which makes sense
i think its doable on git given the small size/scope of the project
i've also seen some stack exchange answers that mentioned collaborating by creating unity packages and sharing those instead of a unity project as a whole
I'm going to have to do some more research into these topics and common best practices for dealing things like binaries
i think you were on the right path by removing those plugins and re-adding them yourself
it took me a good 3 days to wrestle with similar errors and get it building nicely
i definitely think the build process can be fixed. id love to just be able to build straight from unity without exporting to android studio for example. or at least get it so you don't have to deal with ignoring manifest changes each time
but yeah. im pretty busy at my day job right now, ill try to dig into this more as time allows
sorry it wasn't as easy as cloning and hitting build
@Scott-Klein try deleting this file https://i.imgur.com/YXr6nPj.png it fixed the More than one file was found with OS independent path 'lib/armeabi-v7a/libc++_shared.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
issue for me
i think it's cause the vlcunity plugin also includes one
actually i think this might break the build
so weird that the pickFirst thing stopped working for me too. ill post back when i solve it
@Scott-Klein
the pickFirst thing does work, just have to make sure it's in both of these build.gradle files
Running Android Studo | 2021.3.1 Patch 1
Project folder is the android folder from the fresh clone of the repository