FAILED: [code=1] libJournal/CMakeFiles/Journal.dir/src/wsyslog.c.obj
D:\M\msys64\ucrt64\bin\gcc.exe -DJournal_EXPORTS -DMINGW_HAS_SECURE_API=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -ID:/_/B/src/RRS-1.9.1/libJournal/./include -isystem D:/_/B/src/build-UCRT64/libJournal/Journal_autogen/include -isystem D:/M/msys64/ucrt64/include/qt6/QtCore -isystem D:/M/msys64/ucrt64/include/qt6 -isystem D:/M/msys64/ucrt64/share/qt6/mkspecs/win32-g++ -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -DNDEBUG -MD -MT libJournal/CMakeFiles/Journal.dir/src/wsyslog.c.obj -MF libJournal\CMakeFiles\Journal.dir\src\wsyslog.c.obj.d -o libJournal/CMakeFiles/Journal.dir/src/wsyslog.c.obj -c D:/_/B/src/RRS-1.9.1/libJournal/src/wsyslog.c
D:/_/B/src/RRS-1.9.1/libJournal/src/wsyslog.c: In function 'openlog':
D:/_/B/src/RRS-1.9.1/libJournal/src/wsyslog.c:197:27: error: passing argument 1 of 'GetComputerNameW' from incompatible pointer type [-Wincompatible-pointer-types]
197 | if( !GetComputerName( local_hostname, &n ) )
| ^~~~~~~~~~~~~~
| |
| char *
In file included from D:/M/msys64/ucrt64/include/windows.h:70,
from D:/M/msys64/ucrt64/include/winsock2.h:23,
from D:/_/B/src/RRS-1.9.1/libJournal/src/wsyslog.c:35:
D:/M/msys64/ucrt64/include/winbase.h:2860:54: note: expected 'LPWSTR' {aka 'short unsigned int *'} but argument is of type 'char *'
2860 | WINBASEAPI WINBOOL WINAPI GetComputerNameW (LPWSTR lpBuffer, LPDWORD nSize);
| ~~~~~~~^~~~~~~~
In file included from D:/M/msys64/ucrt64/include/minwindef.h:163,
from D:/M/msys64/ucrt64/include/windef.h:9,
from D:/M/msys64/ucrt64/include/windows.h:69:
D:/M/msys64/ucrt64/include/winnt.h:324:26: note: 'LPWSTR' declared here
324 | typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR;
| ^~~~~~
C:/msys64/.../RRS-1.9.1/viewer/src/AnimatedDatabasePager.cpp:33:38: error: no member named 'status' in 'AnimatedDatabasePager'
33 | while (animatedDatabasePager.status->active())
| ~~~~~~~~~~~~~~~~~~~~~ ^
C:/msys64/.../viewer/src/AnimatedDatabasePager.cpp:35:105: error: too many arguments to function call, expected 0, have 1
35 | vsg::ref_ptr<vsg::PagedLOD> plod = animatedDatabasePager._requestQueue->take_when_available(animatedDatabasePager.frameCount.load());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clang64/include/vsg/io/DatabasePager.h:66:27: note: 'take_when_available' declared here
66 | ref_ptr<PagedLOD> take_when_available();
| ^
C:/msys64/.../viewer/src/AnimatedDatabasePager.cpp:50:26: error: no member named 'loadAttempts' in 'vsg::PagedLOD'
50 | ++(plod->loadAttempts);
| ~~~~~~^
C:/msys64/.../viewer/src/AnimatedDatabasePager.cpp:197:38: error: no member named 'status' in 'AnimatedDatabasePager'
197 | while (animatedDatabasePager.status->active())
| ~~~~~~~~~~~~~~~~~~~~~ ^
C:/msys64/.../viewer/src/AnimatedDatabasePager.cpp:199:35: error: no member named 'deleteQueue' in 'AnimatedDatabasePager'
199 | animatedDatabasePager.deleteQueue->wait_then_clear();
| ~~~~~~~~~~~~~~~~~~~~~ ^
5 errors generated.
я попытался собрать код из репозитория, и столкнулся с двумя проблемами:
-Wincompatible-pointer-types