silphendio / vr-media-player

Image and video viewer for virtual reality, made with Godot
MIT License
17 stars 2 forks source link

Error on startup - shared library couldn't be found #2

Closed MA3o closed 1 year ago

MA3o commented 1 year ago

Hi,

I'm trying to install this on my Manjaro machine and keep getting an error when I try to start the program.

ERROR: Can't open dynamic library: /home/MA3o/Local/vr-media-player/addons/godot-openxr/bin/linux/libgodot_openxr.so. Error: libopenxr_loader.so.1: cannot open shared object file: No such file or directory
   at: open_dynamic_library (drivers/unix/os_unix.cpp:418)
ERROR: Can't open dynamic library: /home/MA3o/Local/vr-media-player/addons/godot-openxr/bin/linux/libgodot_openxr.so. Error: libopenxr_loader.so.1: cannot open shared object file: No such file or directory
   at: open_dynamic_library (drivers/unix/os_unix.cpp:418)
ERROR: No valid library handle, can't get symbol from GDNative object
   at: get_symbol (modules/gdnative/gdnative.cpp:510)
ERROR: No nativescript_init in "res://addons/godot-openxr/bin/linux/libgodot_openxr.so" found
   at: init_library (modules/gdnative/nativescript/nativescript.cpp:1503)
ERROR: Unable to open file: res://.import/volume.svg-e472c2388b8a75b1dd50130dad3aeb00.stex.
   at: _load_data (scene/resources/texture.cpp:470)
ERROR: Failed loading resource: res://.import/volume.svg-e472c2388b8a75b1dd50130dad3aeb00.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://thirdparty/tabler-icons/volume.svg. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
SCRIPT ERROR: Parse Error: Can't preload resource at path: res://thirdparty/tabler-icons/volume.svg
          at: GDScript::reload (res://scenes/menu.gd:43)
ERROR: Unable to open file: res://.import/player-play.svg-169246065122197dce60b8b178ec3ebe.stex.
   at: _load_data (scene/resources/texture.cpp:470)
ERROR: Failed loading resource: res://.import/player-play.svg-169246065122197dce60b8b178ec3ebe.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://thirdparty/tabler-icons/player-play.svg. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: res://scenes/Menu.tscn:4 - Parse Error: [ext_resource] referenced nonexistent resource at: res://thirdparty/tabler-icons/player-play.svg
   at: poll (scene/resources/resource_format_text.cpp:412)
ERROR: Failed to load resource 'res://scenes/Menu.tscn'.
   at: load (core/io/resource_loader.cpp:206)
ERROR: Failed loading resource: res://scenes/Menu.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: res://scenes/Spatial.tscn:7 - Parse Error: [ext_resource] referenced nonexistent resource at: res://scenes/Menu.tscn
   at: poll (scene/resources/resource_format_text.cpp:412)
ERROR: Failed to load resource 'res://scenes/Spatial.tscn'.
   at: load (core/io/resource_loader.cpp:206)
ERROR: Failed loading resource: res://scenes/Spatial.tscn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading scene: res://scenes/Spatial.tscn
   at: start (main/main.cpp:2107)
ERROR: No valid library handle, can't get symbol from GDNative object
   at: get_symbol (modules/gdnative/gdnative.cpp:510)
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
     at: cleanup (core/object.cpp:2070)
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/resource.cpp:417)
ERROR: There are still MemoryPool allocs in use at exit!
   at: cleanup (core/pool_vector.cpp:63)

This reads to me as f a library cannot be found in "/home/MA3o/Local/vr-media-player/addons/godot-openxr/bin/linux/libgodot_openxr.so". What I did so far:

Any input on what might be wrong?

Thanks in advance!

ChristophHaag commented 1 year ago

Error: libopenxr_loader.so.1: cannot open shared object file: No such file or directory

You need to install the openxr package to get the openxr loader. godot-openxr assumes that it is installed in the system.

MA3o commented 1 year ago

Thanks! That fixed it!

May I suggest to add this to the list of required packages in the readme? Others might run into the same issue.

Also, another error message after instaling openxr complained that the project needed to be opened in the godot editor at least once. Not a big deal to do, but maybe this could be added to the install instructions, too.