SimulaVR / Simula

Linux VR Desktop
MIT License
2.97k stars 91 forks source link

NixOS + build.sh + Direct Binary Call #39

Closed georgewsinger closed 6 years ago

georgewsinger commented 6 years ago

Using build.sh from the build branch on NixOS (calling the simulavr binary directly):

$ ./.stack-work/install/x86_64-linux-nix/lts-10.4/8.2.2/bin/simulavr
Loading module '/nix/store/slqqaxda69b69zf44v803dn0gfcn2z3z-weston-3.0.0/lib/libweston-3/x11-backend.so'
Loading module '/nix/store/slqqaxda69b69zf44v803dn0gfcn2z3z-weston-3.0.0/lib/libweston-3/gl-renderer.so'
EGL client extensions: EGL_EXT_platform_base EGL_EXT_device_base
               EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions
               EGL_KHR_debug EGL_EXT_platform_x11 EGL_EXT_platform_device
EGL_KHR_surfaceless_context available
failed to create context
EGL error state: EGL_BAD_ALLOC (0x3003)
EGL error state: EGL_SUCCESS (0x3000)
Socket: wayland-0
["VK_EXT_debug_report","VK_KHR_external_memory_capabilities","VK_KHR_external_semaphore_capabilities","VK_KHR_get_physical_device_properties2"]
["VK_KHR_dedicated_allocation","VK_KHR_get_memory_requirements2","VK_KHR_external_memory","VK_KHR_external_memory_fd","VK_KHR_external_semaphore","VK_KHR_external_semaphore_fd"]

simulavr: user error (Failed compiling shader Shader {shaderID = 0})

Here is the vrclient_simulavr.txt output:

Wed Feb 21 2018 05:17:15.046971 - //=====================================================================================================================
Wed Feb 21 2018 05:17:15.047020 - vrclient startup with PID=4881, type=VRApplication_Scene, config=/home/george/.local/share/Steam/config
Wed Feb 21 2018 05:17:15.047606 - [Settings] Load Default Json Settings from /home/george/.local/share/Steam/steamapps/common/SteamVR/resources/settings/default.vrsettings
Wed Feb 21 2018 05:17:15.047671 - [Settings] Load Default Json Settings from /home/george/.local/share/Steam/steamapps/common/SteamVR/drivers/htc/resources/settings/default.vrsettings
Wed Feb 21 2018 05:17:15.047695 - [Settings] Load Default Json Settings from /home/george/.local/share/Steam/steamapps/common/SteamVR/drivers/lighthouse/resources/settings/default.vrsettings
Wed Feb 21 2018 05:17:15.047742 - [Settings] Load Default Json Settings from /home/george/.local/share/Steam/steamapps/common/SteamVR/drivers/null/resources/settings/default.vrsettings
Wed Feb 21 2018 05:17:15.047975 - [Settings] Load Json Settings from /home/george/.local/share/Steam/config/steamvr.vrsettings
Wed Feb 21 2018 05:17:15.062514 - CIPCPipe::ConnectPipe(VR_ServerPipe_4317) attempting bind to 57909
Wed Feb 21 2018 05:17:15.063692 - Received success response from vrserver connect
Wed Feb 21 2018 05:17:15.079490 - CIPCPipe::ConnectPipe(VR_CompositorPipe_4317) attempting bind to 35385
Wed Feb 21 2018 05:17:15.079657 - Received success response from vrcompositor connect
Wed Feb 21 2018 05:17:15.079667 - Initializing the limited version of CVRCompositorClient
Wed Feb 21 2018 05:17:15.092338 - Skipping VRWebHelper startup because of settings.
Wed Feb 21 2018 05:17:15.143574 - GetVulkanInstanceExtensionsRequired - checking for candidate instance extension 'VK_KHR_external_memory_capabilities'...found.
Wed Feb 21 2018 05:17:15.143601 - GetVulkanInstanceExtensionsRequired - checking for candidate instance extension 'VK_KHR_external_semaphore_capabilities'...found.
Wed Feb 21 2018 05:17:15.143607 - GetVulkanInstanceExtensionsRequired - checking for candidate instance extension 'VK_KHR_get_physical_device_properties2'...found.
Wed Feb 21 2018 05:17:15.172803 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_dedicated_allocation'...found.
Wed Feb 21 2018 05:17:15.172830 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_get_memory_requirements2'...found.
Wed Feb 21 2018 05:17:15.172844 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_external_memory'...found.
Wed Feb 21 2018 05:17:15.172848 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_external_memory_fd'...found.
Wed Feb 21 2018 05:17:15.172852 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_external_semaphore'...found.
Wed Feb 21 2018 05:17:15.172856 - GetVulkanDeviceExtensionsRequired - checking for candidate device extension 'VK_KHR_external_semaphore_fd'...found.
georgewsinger commented 6 years ago

Using the newest --run flag:

$ ./build.sh --run
Installing Simula..
Warning: /home/george/SimulaBuild/stack.yaml: The `*` ghc-options key is not recommended. Consider using $locals, or if really needed, $everything
Warning: /home/george/SimulaBuild/stack.yaml: The `*` ghc-options key is not recommended. Consider using $locals, or if really needed, $everything

Warning: Specified pattern "src/**/*.c" for c-sources does not match any files
WARNING: Ignoring out of range dependency (allow-newer enabled): base-4.10.1.0. linear-opengl requires: >=4.6 && <4.10
WARNING: Ignoring out of range dependency (allow-newer enabled): lens-4.15.4. linear-opengl requires: >=4.2 && <4.15
Copying from /home/george/SimulaBuild/.stack-work/install/x86_64-linux-nix/lts-10.4/8.2.2/bin/simulavr to /home/george/SimulaBuild/bin/simulavr

Copied executables to /home/george/SimulaBuild/bin:
- simulavr

Warning: Installation path /home/george/SimulaBuild/bin
         not found on the PATH environment variable.
Warning: There's no swrast in /run/opengl-driver
Remember to open steam and install and run SteamVR before launching Simula.
Remember to open steam and install and run SteamVR before launching Simula.
Launching Steam..
Launching SteamVR..
Launching Simula..
Loading module '/nix/store/slqqaxda69b69zf44v803dn0gfcn2z3z-weston-3.0.0/lib/libweston-3/x11-backend.so'
Loading module '/nix/store/slqqaxda69b69zf44v803dn0gfcn2z3z-weston-3.0.0/lib/libweston-3/gl-renderer.so'
EGL client extensions: EGL_EXT_platform_base EGL_EXT_device_base
               EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions
               EGL_KHR_debug EGL_EXT_platform_x11 EGL_EXT_platform_device
EGL_KHR_surfaceless_context available
failed to create context
EGL error state: EGL_BAD_ALLOC (0x3003)
EGL error state: EGL_SUCCESS (0x3000)
Failed to execute process '/home/george/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrserver': 2
Failed to execute process '/home/george/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor': 2
Socket: wayland-0
["VK_EXT_debug_report","VK_KHR_external_memory_capabilities","VK_KHR_external_semaphore_capabilities","VK_KHR_get_physical_device_properties2"]
["VK_KHR_dedicated_allocation","VK_KHR_get_memory_requirements2","VK_KHR_external_memory","VK_KHR_external_memory_fd","VK_KHR_external_semaphore","VK_KHR_external_semaphore_fd"]

simulavr: user error (Failed compiling shader Shader {shaderID = 0})
lboklin commented 6 years ago

What's the status of this now after the switch to Godot?

lboklin commented 6 years ago

I'm going to assume this is resolved. If it's not, please open a new issue.