sonic3d / gendev-macos Goto Github PK
View Code? Open in Web Editor NEWGenesis/MegaDrive Development Environment for Mac OS X
License: BSD 3-Clause "New" or "Revised" License
Genesis/MegaDrive Development Environment for Mac OS X
License: BSD 3-Clause "New" or "Revised" License
Hello,
i've installed the toolchain and reached to compiled, all seems ok, but i don't know how to start using SGDK.
What i've reached to do :
ls -l
total 0
drwxr-xr-x 16 baccalla staff 544 11 avr 22:53 bin
drwxr-xr-x 9 baccalla staff 306 10 avr 16:17 ldscripts
drwxr-xr-x 9 baccalla staff 306 10 avr 15:39 m68k-elf
drwxr-xr-x 5 baccalla staff 170 11 avr 22:04 skeleton
I don't know how to use SGDK, how to setup a new project now.
I've tried to cp the skeleton directories to a new one "my project" and build without changing anything but it failed.
opt/toolchains/gen//m68k-elf/lib/libmd.a(sys.o): dans la fonction « _start_entry »:
sys.c:(.text+0x8ac): référence indéfinie vers « main »
it lacks certainly some prerequisites.
i'm under El Capitan 10.11.6 (i may be a mad man trying to develop from a mac)
Thanks for your support to help me start.
Best regards
I'm trying to build gendev-macos, but I have an issue
When I tried to build with the current Xcode Command Line Tools for OSX 10.4 (11.3), I get this error while building
g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-6.3.0/gcc -I../../gcc-6.3.0/gcc/. -I../../gcc-6.3.0/gcc/../include -I../../gcc-6.3.0/gcc/../libcpp/include -I/Users/muzi/gendev-macos/toolchain/work/build-gcc/./gmp -I/Users/muzi/gendev-macos/toolchain/work/gcc-6.3.0/gmp -I/Users/muzi/gendev-macos/toolchain/work/build-gcc/./mpfr -I/Users/muzi/gendev-macos/toolchain/work/gcc-6.3.0/mpfr -I/Users/muzi/gendev-macos/toolchain/work/gcc-6.3.0/mpc/src -I../../gcc-6.3.0/gcc/../libdecnumber -I../../gcc-6.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-6.3.0/gcc/../libbacktrace -I/Users/muzi/gendev-macos/toolchain/work/build-gcc/./isl/include -I/Users/muzi/gendev-macos/toolchain/work/gcc-6.3.0/isl/include -o ubsan.o -MT ubsan.o -MMD -MP -MF ./.deps/ubsan.TPo ../../gcc-6.3.0/gcc/ubsan.c
../../gcc-6.3.0/gcc/ubsan.c: In function 'tree_node* ubsan_type_descriptor(tree, ubsan_print_style)':
../../gcc-6.3.0/gcc/ubsan.c:385:33: warning: unterminated quote character ''' in format [-Wformat-diag]
385 | pp_printf (&pretty_name, "'%s%s%s%s%s%s%s",
| ^
../../gcc-6.3.0/gcc/ubsan.c:404:36: warning: spurious trailing space in format -Wformat-diag]
404 | pp_printf (&pretty_name, "'%s ", tname);
| ^
../../gcc-6.3.0/gcc/ubsan.c:404:33: warning: unterminated quote character ''' in format [-Wformat-diag]
404 | pp_printf (&pretty_name, "'%s ", tname);
| ^
../../gcc-6.3.0/gcc/ubsan.c: In function 'bool ubsan_use_new_style_p(location_t':
../../gcc-6.3.0/gcc/ubsan.c:1474:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
1474 | || xloc.file == '\0' || xloc.file[0] == '\xff'
| ~~~~~~~~~~^~~~~~~
make[3]: *** [ubsan.o] Error 1
make[2]: *** [all-gcc] Error 2
make[1]: *** [all] Error 2
make: *** [build-gcc-2] Error 2
while making the toolchains
But on clang 6.1.0 with xcode 6.4.0, the error is the following :
cd toolchain && make download-prerequisite-files && make toolchain_build
Prerequisite files are all ready now.
mkdir -p /Users/muzi/gendev-macos/toolchain/../build
mkdir -p /Users/muzi/gendev-macos/toolchain/../toolchain/work
# Will extract /Users/muzi/gendev-macos/toolchain/../toolchain/files/newlib-1.19.0(*.tar.gz or *.tar.bz2)
cd /Users/muzi/gendev-macos/toolchain/../toolchain/work && \
tar xf /Users/muzi/gendev-macos/toolchain/../toolchain/files/newlib-1.19.0.*
# Will extract /Users/muzi/gendev-macos/toolchain/../toolchain/files/binutils-2.24(*.tar.gz or *.tar.bz2)
cd /Users/muzi/gendev-macos/toolchain/../toolchain/work && \
tar xf /Users/muzi/gendev-macos/toolchain/../toolchain/files/binutils-2.24.*
# Will extract /Users/muzi/gendev-macos/toolchain/../toolchain/files/gcc-6.3.0(*.tar.gz or *.tar.bz2)
cd /Users/muzi/gendev-macos/toolchain/../toolchain/work && \
tar xf /Users/muzi/gendev-macos/toolchain/../toolchain/files/gcc-6.3.0.*
echo /Users/muzi/gendev-macos/toolchain/../toolchain/work setup
/Users/muzi/gendev-macos/toolchain/../toolchain/work setup
Setup done
mkdir -p /Users/muzi/gendev-macos/toolchain/../toolchain/work/build-binutils
cd /Users/muzi/gendev-macos/toolchain/../toolchain/work/build-binutils && ../binutils-2.24/configure --target=m68k-elf --prefix=/Users/muzi/gendev-macos/toolchain/../build --enable-install-libbfd --disable-werror
checking build system type... x86_64-apple-darwin18.7.0
checking host system type... x86_64-apple-darwin18.7.0
checking target system type... m68k-unknown-elf
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/Users/muzi/gendev-macos/toolchain/work/build-binutils':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [/Users/muzi/gendev-macos/toolchain/../toolchain/work/build-binutils] Error 77
make: *** [toolchain_build] Error 2
EDIT : I didn't notice, but the issue was that I had macports gcc, even if I thought I didn't, so it seems to work better without it, I'm duuumb
Hello,
After running make
, I got 500 error status code:
curl -o newlib-1.19.0.tar.gz ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Access denied: 500
If the user does not have ssl already installed, the wget installation step will fail. I'd suggest an alternate path of installing wget via brew to manage install dependancies.
First install brew;
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install
Use brew to install wget with ssl;
brew install wget --with-libressl
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.