franticware / sgdk_wine Goto Github PK
View Code? Open in Web Editor NEWWine wrapper generator script that enables SGDK usage in e.g. Linux
License: MIT License
Wine wrapper generator script that enables SGDK usage in e.g. Linux
License: MIT License
I'm having trouble to comple a sample here at ~/pCloudDrive/MegaDrive/SGDK/sample/joy-test
make GDK=$HOME/pCloudDrive/MegaDrive/SGDK -f $HOME/pCloudDrive/MegaDrive/SGDK/makefile_wine.gen
mkdir -p src/boot
mkdir -p out
/home/drummond/pCloudDrive/MegaDrive/SGDK/bin/gcc -DSGDK_GCC -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -fms-extensions -Iinc -Isrc -Ires -I/home/drummond/pCloudDrive/MegaDrive/SGDK/inc -I/home/drummond/pCloudDrive/MegaDrive/SGDK/res -B/home/drummond/pCloudDrive/MegaDrive/SGDK/bin -c src/boot/rom_head.c -o out/rom_head.o
sh: /home/drummond/pCloudDrive/MegaDrive/SGDK/bin/gcc: /bin/bash: bad interpreter: Permission denied
make: *** [/home/drummond/pCloudDrive/MegaDrive/SGDK/makefile_wine.gen:171: out/rom_head.o] Error 126
What should I do in this case?
#1 I have the same issue as this person.
Additional info is needed.
What is your SGDK version?
What linux distro are you using? I have tested it only on Manjaro.
What is the output of:
cd /home/gustavo/apps/sgdk/bin sh generate_wine.sh
?
- Have you tried building an existing sample, e.g.:
cd /home/gustavo/apps/sgdk/bin/sample/sprite make GDK=/home/gustavo/apps/sgdk -f /home/gustavo/apps/sgdk/makefile_wine.gen
?
Originally posted by @Franticware in #1 (comment)
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?
Hi,
I got this error when trying to compile :
gcc.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found
compilation terminated.
Is it related to Wine ? Is there any ways to solve this ?
Thanks.
Hi,
First thanks for your dev, I could compile at first thanks to it. Today I tried again after following a tutorial, and despite not having any error or just try to compile a basic template, it'll return this :
make GDK=~/Téléchargements/SGDK-1.80 -f ~/Téléchargements/SGDK-1.80/makefile_wine.gen
mkdir -p src/boot
mkdir -p out
/home/nicolas/Téléchargements/SGDK-1.80/bin/gcc -B/home/nicolas/Téléchargements/SGDK-1.80/bin -n -T /home/nicolas/Téléchargements/SGDK-1.80/md.ld -nostdlib out/sega.o @out/cmd_ /home/nicolas/Téléchargements/SGDK-1.80/lib/libmd.a /home/nicolas/Téléchargements/SGDK-1.80/lib/libgcc.a -o out/rom.out -Wl,--gc-sections
C:\users\nicolas\Temp\ccSorTYf.ltrans2.ltrans.o: In function _reset_entry': <artificial>:(.text+0xb0e): undefined reference to
main'
C:\users\nicolas\Temp\ccSorTYf.ltrans2.ltrans.o: In function _start_entry': <artificial>:(.text+0xbf8): undefined reference to
main'
:(.text+0xcce): undefined reference to `main'
make: *** [/home/nicolas/Téléchargements/SGDK-1.80/makefile_wine.gen:156 : out/rom.out] Erreur 1
I didn't do anything special since yesterday and the 'main' function is referenced correctly. Here's my gist if you have time to take a look :
https://gist.github.com/nicoco59/ed239c3921ae9e9cc6ccd290936bb026
Thanks in advance for your help.
make GDK=/home/gustavo/apps/sgdk -f /home/gustavo/apps/sgdk/makefile_wine.gen
mkdir -p src/boot
mkdir -p out
/home/gustavo/apps/sgdk/bin/gcc -B/home/gustavo/apps/sgdk/bin -n -T /home/gustavo/apps/sgdk/md.ld -nostdlib out/sega.o @out/cmd_ /home/gustavo/apps/sgdk/lib/libmd.a /home/gustavo/apps/sgdk/lib/libgcc.a -o out/rom.out -Wl,--gc-sections
C:\users\gustavo\Temp\ccQoK8II.ltrans1.ltrans.o: In function `_reset_entry':
<artificial>:(.text+0x1b2): undefined reference to `main'
C:\users\gustavo\Temp\ccQoK8II.ltrans1.ltrans.o: In function `_start_entry':
<artificial>:(.text+0x177e): undefined reference to `main'
<artificial>:(.text+0x18cc): undefined reference to `main'
make: *** [/home/gustavo/apps/sgdk/makefile_wine.gen:146: out/rom.out] Erro 1
am I doing everything correctly?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.