I know googling for answers to related questions, I actually didn't find an answer to some annoying problem with Cygwin, and while it looks like there are many search results, it's really not useful (I've tried them one by one).
And cygwin is extremely inefficient, which is almost an unchangeable fact, it is not suitable for running applications like gtemu with graphics and sound. (Maybe I don't use Cygwin) I googled a lot about Cygwin-X graphics performance improvements, but to no avail. I've tried almost every search result.
So at the moment I'm coming out of one rabbit hole and jumping into another.
I'm currently compiling with clion, and it's almost successful, but I still find new problems.
Code: Select all
====================[ 构建 | gtemuAT67 | Debug ]==================================
"D:\Program Files\CLion-2021.3.4.win\bin\cmake\win\bin\cmake.exe" --build F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\cmake-build-debug --target gtemuAT67 -- -j 16
[ 3%] Building CXX object CMakeFiles/gtemuAT67.dir/cpu.cpp.obj
[ 7%] Building CXX object CMakeFiles/gtemuAT67.dir/graphics.cpp.obj
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\graphics.cpp: In function 'float Graphics::powStepRising(float, float, float, float)':
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\graphics.cpp:774:16: error: 'powf' was not declared in this scope
return powf(f, p);
^~~~
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\graphics.cpp: In function 'float Graphics::powStepFalling(float, float, float, float)':
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\graphics.cpp:780:16: error: 'powf' was not declared in this scope
return powf(f, p);
^~~~
mingw32-make.exe[3]: *** [CMakeFiles\gtemuAT67.dir\build.make:226: CMakeFiles/gtemuAT67.dir/graphics.cpp.obj] Error 1
mingw32-make.exe[3]: *** Waiting for unfinished jobs....
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\cpu.cpp: In function 'bool Cpu::process(bool)':
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\cpu.cpp:1244:67: error: expected ')' before 'PRId64'
fprintf(stderr, "Cpu::process(): CPU stall for %" PRId64 " clocks : rebooting.\n", _clock - _clockStall);
^~~~~~
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\cpu.cpp:1244:120: warning: spurious trailing '%' in format [-Wformat=]
fprintf(stderr, "Cpu::process(): CPU stall for %" PRId64 " clocks : rebooting.\n", _clock - _clockStall);
^
F:\cygwin64\home\Administrator\gigatron-rom-master\gigatron-rom-master\at67-org\cpu.cpp:1244:120: warning: too many arguments for format [-Wformat-extra-args]
mingw32-make.exe[3]: *** [CMakeFiles\gtemuAT67.dir\build.make:136: CMakeFiles/gtemuAT67.dir/cpu.cpp.obj] Error 1
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:189: CMakeFiles/gtemuAT67.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:196: CMakeFiles/gtemuAT67.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:118: gtemuAT67] Error 2