Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/146.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 有些帮助修补linux/c++;代码_C++_C_Ubuntu_Compiler Errors_Xen - Fatal编程技术网

C++ 有些帮助修补linux/c++;代码

C++ 有些帮助修补linux/c++;代码,c++,c,ubuntu,compiler-errors,xen,C++,C,Ubuntu,Compiler Errors,Xen,我想通过xen将集成gpu从主机操作系统(ubuntu 20.04)传递到windows 10来宾操作系统。这是因为xen非常适合我,比qemu kvm更适合我的特定需求,而且我只有两张图形卡。英伟达RTX 2080 TI,我已经通过了客人,和英特尔UHD 630,可以复制从主机到客人,以便它可以在两个地方使用而不中断。因此,我正在尝试构建此存储库: 我不得不说,这本指南写得不是很好。代码中充满了未修复的bug。我花了一个月的时间来解决这个问题,试图修复从2015年到今天出现的bug。这不是我

我想通过xen将集成gpu从主机操作系统(ubuntu 20.04)传递到windows 10来宾操作系统。这是因为xen非常适合我,比qemu kvm更适合我的特定需求,而且我只有两张图形卡。英伟达RTX 2080 TI,我已经通过了客人,和英特尔UHD 630,可以复制从主机到客人,以便它可以在两个地方使用而不中断。因此,我正在尝试构建此存储库:

我不得不说,这本指南写得不是很好。代码中充满了未修复的bug。我花了一个月的时间来解决这个问题,试图修复从2015年到今天出现的bug。这不是我的工作。这是我的爱好。但是,我需要激活我的集成GPU的传递,这样我就不会放弃

现在我正在努力修复这个错误。434544,你可以在下面看到

> CC util/qemu-error.o
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c: In function
> ‘vreport’:
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:201:5: error:
> ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
> [-Werror=deprecated-declarations] 201 | GTimeVal tv; | ^~~~~~~~ In
> file included from /usr/include/glib-2.0/glib/galloca.h:32, from
> /usr/include/glib-2.0/glib.h:30, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
> /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here 547 |
> struct GTimeVal | ^~~~~~~~~
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:205:9: error:
> ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead
> [-Werror=deprecated-declarations] 205 | g_get_current_time(&tv); |
> ^~~~~~~~~~~~~~~~~~ In file included from
> /usr/include/glib-2.0/glib/giochannel.h:33, from
> /usr/include/glib-2.0/glib.h:54, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
> /usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here 679 |
> void g_get_current_time (GTimeVal result); | ^~~~~~~~~~~~~~~~~~
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:206:9: error:
> ‘g_time_val_to_iso8601’ is deprecated: Use 'g_date_time_format'
> instead [-Werror=deprecated-declarations] 206 | timestr =
> g_time_val_to_iso8601(&tv); | ^~~~~~~ In file included from
> /usr/include/glib-2.0/glib.h:88, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/glib-compat.h:19, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/include/qemu/osdep.h:107, from
> /etc/xen/igvtg-xen/tools/qemu-xen-dir/util/qemu-error.c:13:
> /usr/include/glib-2.0/glib/gtimer.h:73:10: note: declared here 73 |
> gchar g_time_val_to_iso8601 (GTimeVal *time) G_GNUC_MALLOC; |
> ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
可以使用此修补程序修复此问题:

到目前为止,我已经能够手动修复错误,但这次这个补丁更复杂,我无法修复。我可以使用命令:

patch originalfile patchfile
但我意识到要修补的文件的编号与修补文件的编号不匹配。因此需要手动修复。下面您可以查看要修补的文件:

有人能告诉我怎么做吗?谢谢