Trouble Compiling Code
Posted: Fri Dec 18, 2020 4:44 am
Hello,
I am trying to compile the source code for GIMX, following these instructions: https://gimx.fr/wiki/index.php?title=De ... on_Windows
Everything goes fine until the very last step, when I actually need to compile the code. Following the guide, I run the following commands in mingw64.exe:
cd GIMX-build/windows
./build.sh
Here is the full output from the console:
https://pastebin.com/CZirnEFp
I'm pretty new to all of this, but I'm pretty sure the bit below is the relevant part. It seems like the compiler is failing due to thinking there is some error in the sources code. I've tried to dig through it and figure out what the problem may be, but unfortunately I don't quite know enough about what I'm looking at. Any chance anyone can help identify the problem, or at least point me in the right direction to start hunting it down on my own?
Thanks!
src/windows/events.c:179:1: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'gtime' {aka 'long long unsigned int'} [-Werror=format=]
179 | GPERF_LOG(ev_sync_process);
| ^ ~~~~~~~~~~~~~~~~~
../gimxcommon/include/gperf.h:13:23: note: in definition of macro 'GPERF_STR'
13 | #define GPERF_STR(s) #s
| ^
../gimxcommon/include/gperf.h:87:20: note: in expansion of macro 'GPERF_XSTR'
87 | printf(GPERF_XSTR(NAME)": count = "GTIME_FS", average = "GTIME_FS", worst = "GTIME_FS"\n", gperf_##NAME.count, gperf_##NAME.sum / gperf_##NAME.count, gperf_##NAME.worst); \
| ^~~~~~~~~~
src/windows/events.c:179:5: note: in expansion of macro 'GPERF_LOG'
179 | GPERF_LOG(ev_sync_process);
| ^~~~~~~~~
cc1.exe: all warnings being treated as errors
make[2]: *** [<builtin>: src/windows/events.o] Error 1
make[2]: Leaving directory '/home/Andre/GIMX-build/windows/GIMX/shared/gimxinput'
make[1]: *** [Makefile:35: build-gimxinput] Error 2
make[1]: Leaving directory '/home/Andre/GIMX-build/windows/GIMX/shared'
make: *** [Makefile:15: build-shared] Error 2
make: Leaving directory '/home/Andre/GIMX-build/windows/GIMX'
I am trying to compile the source code for GIMX, following these instructions: https://gimx.fr/wiki/index.php?title=De ... on_Windows
Everything goes fine until the very last step, when I actually need to compile the code. Following the guide, I run the following commands in mingw64.exe:
cd GIMX-build/windows
./build.sh
Here is the full output from the console:
https://pastebin.com/CZirnEFp
I'm pretty new to all of this, but I'm pretty sure the bit below is the relevant part. It seems like the compiler is failing due to thinking there is some error in the sources code. I've tried to dig through it and figure out what the problem may be, but unfortunately I don't quite know enough about what I'm looking at. Any chance anyone can help identify the problem, or at least point me in the right direction to start hunting it down on my own?
Thanks!
src/windows/events.c:179:1: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'gtime' {aka 'long long unsigned int'} [-Werror=format=]
179 | GPERF_LOG(ev_sync_process);
| ^ ~~~~~~~~~~~~~~~~~
../gimxcommon/include/gperf.h:13:23: note: in definition of macro 'GPERF_STR'
13 | #define GPERF_STR(s) #s
| ^
../gimxcommon/include/gperf.h:87:20: note: in expansion of macro 'GPERF_XSTR'
87 | printf(GPERF_XSTR(NAME)": count = "GTIME_FS", average = "GTIME_FS", worst = "GTIME_FS"\n", gperf_##NAME.count, gperf_##NAME.sum / gperf_##NAME.count, gperf_##NAME.worst); \
| ^~~~~~~~~~
src/windows/events.c:179:5: note: in expansion of macro 'GPERF_LOG'
179 | GPERF_LOG(ev_sync_process);
| ^~~~~~~~~
cc1.exe: all warnings being treated as errors
make[2]: *** [<builtin>: src/windows/events.o] Error 1
make[2]: Leaving directory '/home/Andre/GIMX-build/windows/GIMX/shared/gimxinput'
make[1]: *** [Makefile:35: build-gimxinput] Error 2
make[1]: Leaving directory '/home/Andre/GIMX-build/windows/GIMX/shared'
make: *** [Makefile:15: build-shared] Error 2
make: Leaving directory '/home/Andre/GIMX-build/windows/GIMX'