Hey Yall, so anyways i was trying to port zdoom to the Nintendo switch but here is the problem, when i type make into the command line it gives me a error, the error says:
Makefile:151: warning: overriding recipe for target 'build/NZDOOM.nso'
Makefile:148: warning: ignoring old recipe for target 'build/NZDOOM.nso'
[ -d build ] || mkdir -p build
[ -d build/deps ] || mkdir -p build/deps
[ -d build/objs ] || mkdir -p build/objs
[ -d build/exefs ] || mkdir -p build/exefs
[ -d build/logo ] || mkdir -p build/logo
[ -d build/control ] || mkdir -p build/control
[ -d build/nca ] || mkdir -p build/nca
[ -d build/nca/program ] || mkdir -p build/nca/program
[ -d build/nca/control ] || mkdir -p build/nca/control
[ -d build/nca/meta ] || mkdir -p build/nca/meta
aarch64-none-elf-gcc -specs=/opt/devkitpro/libnx/switch.specs -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -Wl,-wrap,exit -L/opt/devkitpro/portlibs/switch/lib -L/opt/devkitpro/libnx/lib -lnx -o build/NZDOOM.elf
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: required symbol `main' not defined
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/libnx/lib\libnx.a(switch_crt0.o): in function `_start':
/home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:68: undefined reference to `__wrap_exit'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/libnx/lib\libnx.a(switch_crt0.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__wrap_exit' which may bind externally can not be used when making a shared object; recompile with -fPIC
/home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:68.crt0+0xfc): dangerous relocation: unsupported relocation
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: /home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:69: undefined reference to `__wrap_exit'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: /home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:70: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:166: build/NZDOOM.elf] Error 1
IDK what to do about this error, so can you help me please!
Also how do I reference the zdoom source code in my makefile so i can successfully compile it without any errors?
Makefile:151: warning: overriding recipe for target 'build/NZDOOM.nso'
Makefile:148: warning: ignoring old recipe for target 'build/NZDOOM.nso'
[ -d build ] || mkdir -p build
[ -d build/deps ] || mkdir -p build/deps
[ -d build/objs ] || mkdir -p build/objs
[ -d build/exefs ] || mkdir -p build/exefs
[ -d build/logo ] || mkdir -p build/logo
[ -d build/control ] || mkdir -p build/control
[ -d build/nca ] || mkdir -p build/nca
[ -d build/nca/program ] || mkdir -p build/nca/program
[ -d build/nca/control ] || mkdir -p build/nca/control
[ -d build/nca/meta ] || mkdir -p build/nca/meta
aarch64-none-elf-gcc -specs=/opt/devkitpro/libnx/switch.specs -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -Wl,-wrap,exit -L/opt/devkitpro/portlibs/switch/lib -L/opt/devkitpro/libnx/lib -lnx -o build/NZDOOM.elf
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: required symbol `main' not defined
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/libnx/lib\libnx.a(switch_crt0.o): in function `_start':
/home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:68: undefined reference to `__wrap_exit'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: C:/devkitPro/libnx/lib\libnx.a(switch_crt0.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__wrap_exit' which may bind externally can not be used when making a shared object; recompile with -fPIC
/home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:68.crt0+0xfc): dangerous relocation: unsupported relocation
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: /home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:69: undefined reference to `__wrap_exit'
c:/devkitpro/devkita64/bin/../lib/gcc/aarch64-none-elf/11.2.0/../../../../aarch64-none-elf/bin/ld.exe: /home/fincs/pacman-packages/libnx/src/libnx-4.2.0/nx/source/runtime/switch_crt0.s:70: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:166: build/NZDOOM.elf] Error 1
IDK what to do about this error, so can you help me please!
Also how do I reference the zdoom source code in my makefile so i can successfully compile it without any errors?