Skip to content

how to enable vgpu? #47

Description

@bondlei

how to enable vgpu? when i enable the "vgpu" option in meson_options.txt,compiler report an error like below:

My host is Deepin V23 .

[154/179] Compiling C++ object mvisor.p/devices_virtio_virtio_vgpu.cc.o FAILED: mvisor.p/devices_virtio_virtio_vgpu.cc.o c++ -Imvisor.p -I. -I.. -I../include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pixman-1 -I/usr/include/virgl -I/usr/include/SDL2 -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c++17 -O2 -g -Wno-address-of-packed-member -Wno-missing-field-initializers -mavx2 -D_REENTRANT -pthread -MD -MQ mvisor.p/devices_virtio_virtio_vgpu.cc.o -MF mvisor.p/devices_virtio_virtio_vgpu.cc.o.d -o mvisor.p/devices_virtio_virtio_vgpu.cc.o -c ../devices/virtio/virtio_vgpu.cc ../devices/virtio/virtio_vgpu.cc: In member function ‘void VirtioVgpu::CreateVirglContext(VirtElement*)’: ../devices/virtio/virtio_vgpu.cc:760:16: error: ‘virgl_renderer_context_create_with_flags’ was not declared in this scope; did you mean ‘virgl_renderer_context_create’? 760 | auto ret = virgl_renderer_context_create_with_flags(cmd->hdr.ctx_id, cmd->context_init, cmd->nlen, cmd->debug_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | virgl_renderer_context_create ../devices/virtio/virtio_vgpu.cc: In member function ‘void VirtioVgpu::CreateBlobResource(VirtElement*)’: ../devices/virtio/virtio_vgpu.cc:888:53: error: variable ‘VirtioVgpu::CreateBlobResource(VirtElement*)::virgl_renderer_resource_create_blob_args args’ has initializer but incomplete type 888 | struct virgl_renderer_resource_create_blob_args args = { | ^~~~ ../devices/virtio/virtio_vgpu.cc:899:11: error: ‘virgl_renderer_resource_create_blob’ was not declared in this scope; did you mean ‘virgl_renderer_resource_create_args’? 899 | ret = virgl_renderer_resource_create_blob(&args); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | virgl_renderer_resource_create_args ../devices/virtio/virtio_vgpu.cc: In member function ‘void VirtioVgpu::MapBlobResource(VirtElement*)’: ../devices/virtio/virtio_vgpu.cc:915:16: error: ‘virgl_renderer_resource_map’ was not declared in this scope; did you mean ‘virgl_renderer_resource_info’? 915 | auto ret = virgl_renderer_resource_map(cmd->resource_id, &map, &size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | virgl_renderer_resource_info ../devices/virtio/virtio_vgpu.cc:924:5: error: ‘virgl_renderer_resource_get_map_info’ was not declared in this scope; did you mean ‘virgl_renderer_resource_get_info’? 924 | virgl_renderer_resource_get_map_info(cmd->resource_id, &resp->map_info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | virgl_renderer_resource_get_info ../devices/virtio/virtio_vgpu.cc: In member function ‘void VirtioVgpu::UnmapBlobResource(VirtElement*)’: ../devices/virtio/virtio_vgpu.cc:935:16: error: ‘virgl_renderer_resource_unmap’ was not declared in this scope; did you mean ‘virgl_renderer_resource_unref’? 935 | auto ret = virgl_renderer_resource_unmap(cmd->resource_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | virgl_renderer_resource_unref [163/179] Compiling C++ object mvisor.p/images_qcow2.cc.o

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions