Open MicheleMontesi opened 2 years ago
after the 79% the log is this:
In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:29:16: error: expected unqualified-id before numeric constant 29 | constexpr auto DNS_QUERY_REQUEST_VERSION1 = 0x1; | ^~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:30:16: error: expected unqualified-id before numeric constant 30 | constexpr auto DNS_QUERY_RESULTS_VERSION1 = 0x1; | ^~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:37:16: error: redefinition of 'struct _DNS_SERVICE_INSTANCE' 37 | typedef struct _DNS_SERVICE_INSTANCE { | ^~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1247:18: note: previous definition of 'struct _DNS_SERVICE_INSTANCE' 1247 | typedef struct _DNS_SERVICE_INSTANCE { | ^~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:55:3: error: conflicting declaration 'typedef int DNS_SERVICE_INSTANCE' 55 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1259:5: note: previous declaration as 'typedef struct _DNS_SERVICE_INSTANCE DNS_SERVICE_INSTANCE' 1259 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:55:26: error: conflicting declaration 'typedef int PDNS_SERVICE_INSTANCE' 55 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1259:28: note: previous declaration as 'typedef struct _DNS_SERVICE_INSTANCE PDNS_SERVICE_INSTANCE' 1259 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:64:16: error: redefinition of 'struct _DNS_SERVICE_CANCEL' 64 | typedef struct _DNS_SERVICE_CANCEL { | ^~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1265:18: note: previous definition of 'struct _DNS_SERVICE_CANCEL' 1265 | typedef struct _DNS_SERVICE_CANCEL { | ^~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:66:3: error: conflicting declaration 'typedef int DNS_SERVICE_CANCEL' 66 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1267:5: note: previous declaration as 'typedef struct _DNS_SERVICE_CANCEL DNS_SERVICE_CANCEL' 1267 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:66:24: error: conflicting declaration 'typedef int PDNS_SERVICE_CANCEL' 66 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1267:26: note: previous declaration as 'typedef struct _DNS_SERVICE_CANCEL PDNS_SERVICE_CANCEL' 1267 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:68:16: error: redefinition of 'struct _DNS_SERVICE_REGISTER_REQUEST' 68 | typedef struct _DNS_SERVICE_REGISTER_REQUEST { | ^~~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1303:18: note: previous definition of 'struct _DNS_SERVICE_REGISTER_REQUEST' 1303 | typedef struct _DNS_SERVICE_REGISTER_REQUEST{ | ^~~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:76:3: error: conflicting declaration 'typedef int DNS_SERVICE_REGISTER_REQUEST' 76 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1311:5: note: previous declaration as 'typedef struct _DNS_SERVICE_REGISTER_REQUEST DNS_SERVICE_REGISTER_REQUEST' 1311 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:76:34: error: conflicting declaration 'typedef int PDNS_SERVICE_REGISTER_REQUEST' 76 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1311:36: note: previous declaration as 'typedef struct _DNS_SERVICE_REGISTER_REQUEST PDNS_SERVICE_REGISTER_REQUEST' 1311 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~~ mingw32-make[2]: [CMakeFiles/sunshine.dir/build.make:337: CMakeFiles/sunshine.dir/sunshine/platform/windows/publish.cpp.obj] Error 1 mingw32-make[1]: [CMakeFiles/Makefile2:178: CMakeFiles/sunshine.dir/all] Error 2 mingw32-make: *** [Makefile:91: all] Error 2
I don't know how to correct it
I have the same error
我也是T_T
Try https://github.com/SunshineStream/Sunshine
same error on win10
edit: solved with https://github.com/loki-47-6F-64/sunshine/issues/310#issuecomment-1019560237
after the 79% the log is this:
In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:29:16: error: expected unqualified-id before numeric constant 29 | constexpr auto DNS_QUERY_REQUEST_VERSION1 = 0x1; | ^
~~~~~C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:30:16: error: expected unqualified-id before numeric constant 30 | constexpr auto DNS_QUERY_RESULTS_VERSION1 = 0x1; | ^~~~~~C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:37:16: error: redefinition of 'struct _DNS_SERVICE_INSTANCE' 37 | typedef struct _DNS_SERVICE_INSTANCE { | ^~~~~In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1247:18: note: previous definition of 'struct _DNS_SERVICE_INSTANCE' 1247 | typedef struct _DNS_SERVICE_INSTANCE { | ^~~~~C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:55:3: error: conflicting declaration 'typedef int DNS_SERVICE_INSTANCE' 55 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1259:5: note: previous declaration as 'typedef struct _DNS_SERVICE_INSTANCE DNS_SERVICE_INSTANCE' 1259 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:55:26: error: conflicting declaration 'typedef int PDNS_SERVICE_INSTANCE' 55 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1259:28: note: previous declaration as 'typedef struct _DNS_SERVICE_INSTANCE PDNS_SERVICE_INSTANCE' 1259 | } DNS_SERVICE_INSTANCE, PDNS_SERVICE_INSTANCE; | ^~~~~C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:64:16: error: redefinition of 'struct _DNS_SERVICE_CANCEL' 64 | typedef struct _DNS_SERVICE_CANCEL { | ^~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1265:18: note: previous definition of 'struct _DNS_SERVICE_CANCEL' 1265 | typedef struct _DNS_SERVICE_CANCEL { | ^~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:66:3: error: conflicting declaration 'typedef int DNS_SERVICE_CANCEL' 66 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1267:5: note: previous declaration as 'typedef struct _DNS_SERVICE_CANCEL DNS_SERVICE_CANCEL' 1267 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:66:24: error: conflicting declaration 'typedef int PDNS_SERVICE_CANCEL' 66 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1267:26: note: previous declaration as 'typedef struct _DNS_SERVICE_CANCEL PDNS_SERVICE_CANCEL' 1267 | } DNS_SERVICE_CANCEL, PDNS_SERVICE_CANCEL; | ^~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:68:16: error: redefinition of 'struct _DNS_SERVICE_REGISTER_REQUEST' 68 | typedef struct _DNS_SERVICE_REGISTER_REQUEST { | ^~~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1303:18: note: previous definition of 'struct _DNS_SERVICE_REGISTER_REQUEST' 1303 | typedef struct _DNS_SERVICE_REGISTER_REQUEST{ | ^~~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:76:3: error: conflicting declaration 'typedef int DNS_SERVICE_REGISTER_REQUEST' 76 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1311:5: note: previous declaration as 'typedef struct _DNS_SERVICE_REGISTER_REQUEST DNS_SERVICE_REGISTER_REQUEST' 1311 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~ C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:76:34: error: conflicting declaration 'typedef int PDNS_SERVICE_REGISTER_REQUEST' 76 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~~ In file included from C:/msys64/home/miche/sunshine/sunshine/platform/windows/publish.cpp:5: C:/msys64/mingw64/x86_64-w64-mingw32/include/windns.h:1311:36: note: previous declaration as 'typedef struct _DNS_SERVICE_REGISTER_REQUEST PDNS_SERVICE_REGISTER_REQUEST' 1311 | } DNS_SERVICE_REGISTER_REQUEST, PDNS_SERVICE_REGISTER_REQUEST; | ^~~~~~~~~ mingw32-make[2]: [CMakeFiles/sunshine.dir/build.make:337: CMakeFiles/sunshine.dir/sunshine/platform/windows/publish.cpp.obj] Error 1 mingw32-make[1]: [CMakeFiles/Makefile2:178: CMakeFiles/sunshine.dir/all] Error 2 mingw32-make: *** [Makefile:91: all] Error 2I don't know how to correct it