lukasino1214/StellarEngine

compile error & error at start-up

Closed this issue · 0 comments

[ 95%] Building CXX object Engine/CMakeFiles/Engine.dir/pgepch.cpp.o
In file included from /home/beaumanvienna/dev/StellarEngine/Engine/System/PostProcessingSystem.cpp:5:
/home/beaumanvienna/dev/StellarEngine/Engine/System/PostProcessingSystem.h:10:10: fatal error: pipeline.h: No such file or directory
   10 | #include "pipeline.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Engine/CMakeFiles/Engine.dir/build.make:414: Engine/CMakeFiles/Engine.dir/System/PostProcessingSystem.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/beaumanvienna/dev/StellarEngine/Engine/Engine.h:35,
                 from /home/beaumanvienna/dev/StellarEngine/Engine/Engine.cpp:5:
/home/beaumanvienna/dev/StellarEngine/Engine/System/PostProcessingSystem.h:10:10: fatal error: pipeline.h: No such file or directory
   10 | #include "pipeline.h"

When I commented #include "pipeline.h", it compiled

However, when I run ./Editor/Editor, I get

validation layer: Searching for ICD drivers named libGLX_nvidia.so.0
validation layer: Searching for ICD drivers named /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so
validation layer: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
validation layer: Searching for ICD drivers named /usr/lib/x86_64-linux-gnu/libvulkan_intel.so
validation layer: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
validation layer: Searching for ICD drivers named /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so
validation layer: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
validation layer: Build ICD instance extension list
validation layer: Loading layer library libVkLayer_khronos_validation.so
validation layer: Loading layer library libVkLayer_MESA_device_select.so
validation layer: Build ICD instance extension list
validation layer: Build ICD instance extension list
validation layer: Build ICD instance extension list
validation layer: Build ICD instance extension list
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

validation layer: Copying old device 0 into new device 0
validation layer: Copying old device 1 into new device 1
validation layer: Copying old device 2 into new device 2
available extensions:
	VK_KHR_device_group_creation
	VK_KHR_display
	VK_KHR_external_fence_capabilities
	VK_KHR_external_memory_capabilities
	VK_KHR_external_semaphore_capabilities
	VK_KHR_get_display_properties2
	VK_KHR_get_physical_device_properties2
	VK_KHR_get_surface_capabilities2
	VK_KHR_surface
	VK_KHR_surface_protected_capabilities
	VK_KHR_wayland_surface
	VK_KHR_xcb_surface
	VK_KHR_xlib_surface
	VK_EXT_acquire_xlib_display
	VK_EXT_debug_report
	VK_EXT_debug_utils
	VK_EXT_direct_mode_display
	VK_EXT_display_surface_counter
	VK_EXT_acquire_drm_display
	VK_KHR_portability_enumeration
required extensions:
	VK_KHR_surface
	VK_KHR_xcb_surface
	VK_EXT_debug_utils
validation layer: Copying old device 0 into new device 0
validation layer: Copying old device 1 into new device 1
validation layer: Copying old device 2 into new device 2
validation layer: Copying old device 0 into new device 0
validation layer: Copying old device 1 into new device 1
validation layer: Copying old device 2 into new device 2
Device count: 3
validation layer: Copying old device 0 into new device 0
validation layer: Copying old device 1 into new device 1
validation layer: Copying old device 2 into new device 2
validation layer: Copying old device 0 into new device 0
validation layer: Copying old device 1 into new device 1
validation layer: Copying old device 2 into new device 2
physical device: NVIDIA GeForce RTX 3050 Ti Laptop GPU
validation layer: Loading layer library libVkLayer_khronos_validation.so
validation layer: Loading layer library libVkLayer_MESA_device_select.so
Present mode: V-Sync
validation layer: Validation Error: [ VUID-VkBufferCreateInfo-size-00912 ] Object 0: handle = 0x557cc530d3a0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x7c54445e | vkCreateBuffer: parameter pCreateInfo->size (= 0) is not greater than 0 The Vulkan spec states: size must be greater than 0 (https://vulkan.lunarg.com/doc/view/1.3.211.0/linux/1.3-extensions/vkspec.html#VUID-VkBufferCreateInfo-size-00912)
validation layer: Validation Error: [ VUID-VkMemoryAllocateInfo-allocationSize-00638 ] Object 0: handle = 0x557cc530d3a0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x31822c55 | vkAllocateMemory: allocationSize is 0. The Vulkan spec states: allocationSize must be greater than 0 (https://vulkan.lunarg.com/doc/view/1.3.211.0/linux/1.3-extensions/vkspec.html#VUID-VkMemoryAllocateInfo-allocationSize-00638)
terminate called after throwing an instance of 'std::runtime_error'
  what():  failed to allocate vertex buffer memory!
zsh: abort      ./Editor/Editor