Closed ReaderGuy42 closed 3 years ago
What is the output of
make GDK=/path/to/sgdk -f /path/to/sgdk/makefile_wine.gen
?
that tells me
/opt/SGDK-1.62/bin# make GDK=/opt/SGDK-1.62 -f /opt/SGDK-1.62/makefile_wine.gen mkdir -p src/boot mkdir -p out /opt/SGDK-1.62/bin/gcc -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -Iinc -Isrc -Ires -I/opt/SGDK-1.62/inc -I/opt/SGDK-1.62/res -B/opt/SGDK-1.62/bin -c src/boot/rom_head.c -o out/rom_head.o wine: '/opt/SGDK-1.62/bin' is not owned by you, refusing to create a configuration directory there make: *** [/opt/SGDK-1.62/makefile_wine.gen:166: out/rom_head.o] Error 1 root@ME_USER:/opt/SGDK-1.62/bin#
That happened btw in the "elevated" Terminal.
I figured out how to change ownership of the directory and am now waiting for WINE to finish updating. (a little WINE window is telling me The Wine configuration in /path/to/SGDK/bin/.wineconf is being updated, please wait...
When that window disappeared, the terminal put out:
make GDK=/opt/SGDK-1.62 -f /opt/SGDK-1.62/makefile_wine.gen
mkdir -p src/boot
mkdir -p out
cp /opt/SGDK-1.62/src/boot/sega.s src/boot/sega.s
cp /opt/SGDK-1.62/src/boot/rom_head.c src/boot/rom_head.c
/opt/SGDK-1.62/bin/gcc -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -Iinc -Isrc -Ires -I/opt/SGDK-1.62/inc -I/opt/SGDK-1.62/res -B/opt/SGDK-1.62/bin -c src/boot/rom_head.c -o out/rom_head.o
wine: created the configuration directory '/opt/SGDK-1.62/bin/.wineconf'
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
wine: configuration in L"/opt/SGDK-1.62/bin/.wineconf" has been updated.
/opt/SGDK-1.62/bin/ld -T /opt/SGDK-1.62/md.ld -nostdlib --oformat binary -o out/rom_head.bin out/rom_head.o
/opt/SGDK-1.62/bin/gcc -x assembler-with-cpp -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -Iinc -Isrc -Ires -I/opt/SGDK-1.62/inc -I/opt/SGDK-1.62/res -B/opt/SGDK-1.62/bin -c src/boot/sega.s -o out/sega.o
echo "" > out/cmd_
/opt/SGDK-1.62/bin/gcc -B/opt/SGDK-1.62/bin -n -T /opt/SGDK-1.62/md.ld -nostdlib out/sega.o @out/cmd_ /opt/SGDK-1.62/lib/libmd.a /opt/SGDK-1.62/lib/libgcc.a -o out/rom.out -Wl,--gc-sections
C:\users\USER_ME\Temp\ccgEaW0Y.ltrans2.ltrans.o: In function `_reset_entry':
<artificial>:(.text+0xc36): undefined reference to `main'
C:\users\USER_ME\Temp\ccgEaW0Y.ltrans2.ltrans.o: In function `_start_entry':
<artificial>:(.text+0xd98): undefined reference to `main'
<artificial>:(.text+0xee6): undefined reference to `main'
make: *** [/opt/SGDK-1.62/makefile_wine.gen:153: out/rom.out] Error 1
I'm trying to follow along this tutorial by the way, though obviously I haven't gotten very far, since I can't even get anything to compile/make.
I just tried ./bin/make -f makelib.gen
as per that tutorial, and got the (repeating) error message wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
This is probably related to the above error, so I'm just going to wait for your reply. Thanks for your help already!!
Ok, thanks to somone on reddit, I've solved it. I think the issue was that I hadn't "cd"-ed to the game directory. I got the "hello world" to work now :) Thanks
1 I have the same issue as this person.
_Originally posted by @Franticware in https://github.com/Franticware/SGDK_wine/issues/1#issuecomment-770425302_
Hi, I'm having the exact same issue. I'm on Linux Mint 20.2, with SGDK-1.62.
sh generate_wine.sh
spits out:ar as bintos cc1 cp cpp gcc gdb ld lto1 lto-wrapper mac68k make mkdir nm2wch nm objcopy objdump pcmtoraw rm sh sizebnd size sjasm xgmtool
And I can't find bin/sample/sprite. Any ideas?