fceux-am's Issues
SIGSTKSZ is now a run-time variable
I got compiled failed
xxx/ics2021/abstract-machine/am/src/native/platform.h:23:11: error: variably modified ‘sigstack’ at file scope
23 | uint8_t sigstack[SIGSTKSZ];
| ^~~~~~~~
then I found this https://sourceware.org/pipermail/libc-alpha/2021-March/123553.html
I don't know do you will modify this for new glibc version, so I try to figure this out by myself.
I searched some older glibc header file and modify uint8_t sigstack[SIGSTKSZ];
to uint8_t sigstack[16384];
then I successfully compiled, but I always got some error, what ever number I used.
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 25 (X_SendEvent)
Resource id in failed request: 0x8800008
Serial number of failed request: 8
Current serial number in output stream: 9
I tired several numbers in this https://public-inbox.org/bug-gnulib/2419986.QI3XWb3JqY@omega/T/, but I think I'm doing it wrong, what should I do.
为什么无法响应键盘按键
Segmentation fault (core dumped) in native.mk
Hello, I got the segmentation fault when running "make ARCH=native run mainargs=test" (mine ROM file is called test.nes).
After instruction, everything was going well, it can load the ROM file correctly, then a screen suddenly poped up and quickly closed. It shows me the error like the output I attached below.
############################################################################
- LD -> build/fceux-native
/home/loserleo/git/ics2022/fceux-am/build/fceux-native
ROM is test
Starting FCEUX 2.2.3-interim git...
Found ROM 'test'
Loading ...
PRG ROM: 2 x 16KiB
CHR ROM: 1 x 8KiB
ROM MD5: 0x8e3630186e35d477231bf8fd50e54cdd
Mapper #: 0
Mapper name: NROM
Mirroring: Vertical
Battery-backed: No
Trained: No
Power on
Initializing video...
make: *** [/home/loserleo/git/ysyx-workbench/abstract-machine/scripts/native.mk:22: run] Segmentation fault (core dumped)
############################################################################
I checked line 22 in the file native.mk.
run: image $(IMAGE)
Can't find any error. My Linux version is Ubuntu 20.04, my gcc version is 9.4.0. I'm a total freshman in C++, could u give me some tips or instructions to solve this problem? THANKS VERY MUCH.
[solved] LD -> build/fceux-native error
OS:fedora36
editor:emacs
If you don't use vim, and not develop in ubuntu, like me. When you make with 'make ARCH=native run mainargs=k', you maybe meet this question.
[qian@localhost fceux-am]$ make ARCH=native run mainargs=k
# Building fceux-run [native]
# Building am-archive [native]
# Building klib-archive [native]
# Creating image [native]
+ LD -> build/fceux-native
/usr/bin/ld: /home/qian/prj/ics2022/fceux-am/build/native/src/emufile.o:(.data.rel+0x8): undefined reference to `rom_mario_nes'
/usr/bin/ld: /home/qian/prj/ics2022/fceux-am/build/native/src/emufile.o:(.data.rel+0x10): undefined reference to `rom_mario_nes_len'
collect2: error: ld returned 1 exit status
make: *** [/home/qian/prj/ics2022/abstract-machine/scripts/native.mk:19: image] Error 1
This happens because ./fceux-am/nes/gen/mario.c
is empty. Look through the file ./fceux-am/nes/build-rom.py
, you will find mario.c
is converted by mario.nes with xdd
program. If you develop in fedora, you just need sudo dnf in vim-common
. xdd
is included in this package.
No member named 'gregs' and 'REG_RAX' in native.h
I got complied failed ,In file included from /home/tzwangmx/ics2023/abstract-machine/am/include/am.h:7,
from /home/tzwangmx/ics2023/am-kernels/tests/am-tests/include/amtest.h:4,
from /home/tzwangmx/ics2023/am-kernels/tests/am-tests/src/tests/vm.c:1:
/home/tzwangmx/ics2023/am-kernels/tests/am-tests/src/tests/vm.c: In function ‘vm_handler’:
/home/tzwangmx/ics2023/abstract-machine/am/include/arch/native.h:22:29: error: ‘mcontext_t’ has no member named ‘gregs’; did you mean ‘regs’?
22 | #define GPRx uc.uc_mcontext.gregs[REG_RAX]
| ^~~~~
/home/tzwangmx/ics2023/am-kernels/tests/am-tests/src/tests/vm.c:37:26: note: in expansion of macro ‘GPRx’
37 | printf("%d ", ctx->GPRx);
| ^~~~
/home/tzwangmx/ics2023/abstract-machine/am/include/arch/native.h:22:35: error: ‘REG_RAX’ undeclared (first use in this function)
22 | #define GPRx uc.uc_mcontext.gregs[REG_RAX]
| ^~~~~~~
/home/tzwangmx/ics2023/am-kernels/tests/am-tests/src/tests/vm.c:37:26: note: in expansion of macro ‘GPRx’
37 | printf("%d ", ctx->GPRx);
| ^~~~
/home/tzwangmx/ics2023/abstract-machine/am/include/arch/native.h:22:35: note: each undeclared identifier is reported only once for each function it appears in
22 | #define GPRx uc.uc_mcontext.gregs[REG_RAX]
| ^~~~~~~
/home/tzwangmx/ics2023/am-kernels/tests/am-tests/src/tests/vm.c:37:26: note: in expansion of macro ‘GPRx’
37 | printf("%d ", ctx->GPRx);
| ^~~~
make: *** [/home/tzwangmx/ics2023/abstract-machine/Makefile:110: /home/tzwangmx/ics2023/am-kernels/tests/am-tests/build/native/src/tests/vm.o] Error 1
what should I do ?
有关存档的内容
由于目前还没有看模拟机的源码,只是尝试了玩游戏。我有些好奇如果要在这个基础上实现游戏存档,要去了解一些什么。可以给一些思路吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.