qiufuyu123 / CasioEmuNeo

卡西欧classwizard系列模拟器,支持调试,rop一件注入
GNU General Public License v3.0
38 stars 8 forks source link

编译出现问题 #21

Open Physics365 opened 4 months ago

Physics365 commented 4 months ago

之前编译一直好好的,重装了一下系统不行了。。。 是我的问题吗

PowerShell 7.5.0-preview.2
PS E:\OneDrive - Shaoxing No.1 High School\GitHub\CasioEmuNeo> cd emulator
PS E:\OneDrive - Shaoxing No.1 High School\GitHub\CasioEmuNeo\emulator> xmake f -p mingw
checking for architecture ... x86_64
checking for mingw directory ... C:\Users\physi\mingw64
checking for Microsoft Visual Studio (x64) version ... no
warning: You are working in the project directory(E:\OneDrive - Shaoxing No.1 High School\GitHub\CasioEmuNeo) and you can also
force to build in current directory via run `xmake -P .`
PS E:\OneDrive - Shaoxing No.1 High School\GitHub\CasioEmuNeo\emulator> xmake
[ 31%]: cache compiling.release emulator\casioemu.cpp
[ 31%]: cache compiling.release emulator\Emulator.cpp
[ 31%]: cache compiling.release emulator\Logger.cpp
[ 31%]: cache compiling.release emulator\Chipset\Chipset.cpp
[ 31%]: cache compiling.release emulator\Chipset\CPUControl.cpp
[ 31%]: cache compiling.release emulator\Chipset\CPUArithmetic.cpp
[ 31%]: cache compiling.release emulator\Chipset\CPU.cpp
[ 31%]: cache compiling.release emulator\utils.cpp
[ 31%]: cache compiling.release emulator\Chipset\CPUPushPop.cpp
[ 31%]: cache compiling.release emulator\Chipset\CPULoadStore.cpp
[ 34%]: cache compiling.release emulator\Chipset\InterruptSource.cpp
[ 37%]: cache compiling.release emulator\Chipset\MMU.cpp
[ 40%]: cache compiling.release emulator\Chipset\MMURegion.cpp
[ 42%]: cache compiling.release emulator\Config\Config.cpp
[ 45%]: cache compiling.release emulator\Data\ModelInfo.cpp
[ 48%]: cache compiling.release emulator\Gui\CodeViewer.cpp
[ 51%]: cache compiling.release emulator\Gui\imgui_impl_sdl2.cpp
error: emulator\utils.cpp:84:19: error: 'struct stat' has no member named 'st_mtim'; did you mean 'st_mtime'?
   84 |     return stat_r.st_mtim;
      |                   ^~~~~~~
      |                   st_mtime
  > in emulator\utils.cpp
warning: You are working in the project directory(E:\OneDrive - Shaoxing No.1 High School\GitHub\CasioEmuNeo) and you can also
force to build in current directory via run `xmake -P .`
Physics365 commented 4 months ago

@qiufuyu123

qiufuyu123 commented 4 months ago

这个还没来得及修,等我一下

qiufuyu123 commented 4 months ago

ok了,你git pull 拉取一下最新的仓库,再编译一次

Physics365 commented 4 months ago

感谢,编译成功,中文是乱码大概是因为字体的原因

qiufuyu123 commented 4 months ago

字体 下载这个字体,重命名为unifont.otf,放到工程根目录即可

bczhc commented 4 months ago

https://github.com/qiufuyu123/CasioEmuNeo/blob/221caf3156da6886c3bbb29b569fa38d3dc77957/emulator/Gui/WatchWindow.cpp#L7

GNU/Linux上编译不了了!!

qiufuyu123 commented 4 months ago

你把这个删了,clangd又抽风了

qiufuyu123 commented 4 months ago

这里修了

bczhc commented 4 months ago

@qiufuyu123 https://github.com/qiufuyu123/CasioEmuNeo/blob/7969b6232c50b4eacf10cde4dca0370a812d2da9/emulator/Gui/MemBreakPoint.cpp#L27

ltoa是mingw的扩展,不在ISO C或POSIX C,linux gcc编译失败。不提pr了,稍微改下吧😂