Code Monkey home page Code Monkey logo

sm64ex-ios's Introduction

sm64ex-ios

Fork of sm64pc/sm64ex ported to iOS devices.

Feel free to report bugs and contribute, but remember, there must be no upload of any copyrighted asset. Run ./extract_assets.py --clean && make clean or make distclean to remove ROM-originated content.

Building

For building instructions, please refer to the wiki.

sm64ex-ios's People

Contributors

ahouts avatar aloxado320 avatar aswgit avatar ckosmic avatar danielah05 avatar dantheman827 avatar fgsfdsfgs avatar heavenvolkoff avatar hengifettlich avatar hunterzero99 avatar ineedhelpbad avatar ivandsm avatar jan200101 avatar jmcerrejon avatar jungletek avatar kiritodv avatar kurethedead avatar mode8fx avatar mountainflaw avatar radiden avatar rawr51919 avatar reonu avatar s4ys369 avatar uncletrunks avatar vanfanel avatar vrmiguel avatar wabberz avatar y0shin avatar yksoft1 avatar zrckr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sm64ex-ios's Issues

Game unresponsive to Controller on Apple 4KTV

I tried connecting my Xbox one as well as the DualSense controller.

I was able to connect to the Apple 4kTV but the game doesn't respond to start, button clicks, etc.

Basically the game is completely unresponsive to controller. Maybe another Apple 4K TV bug?

build_ios.sh only wants baserom.us.z64

Describe the bug
I've read the wiki on how to build sm64 for iOS on Mac and when I launch the build_ios.sh it only wants baserom.us.z64 and not my baserom.eu.z64. (See screenshot)

To Reproduce
Steps to reproduce the behavior:

  1. Do all step of the wiki until launching ./build_ios.sh
  2. run ./build_ios.sh
  3. It gives me:
    Failed to open baserom.us.z64! [Errno 2] No such file or directory: 'baserom.us.z64' Makefile:256: *** Failed to extract assets. Stop.

Expected behavior
./build_ios.sh should run with a EU Rom.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS 10.15.7
  • Browser: Safari 15.6.1

Smartphone (please complete the following information):

  • Device: iPhoneXS
  • OS: iOS 14.3

Executable Not Found when trying to run on an ATV.

Below is the error I get:

Details

Executable Not Found
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /Users/manny/Library/Developer/Xcode/DerivedData/sm64ios-ccnmxlbiuymhkegpryinydqhsuqh/Build/Products/Debug-appletvos/sm64tvos.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project settings to ensure that a valid executable will be built.

System Information

macOS Version 12.0.1 (Build 21A559)
Xcode 13.1 (19466) (Build 13A1030d)
Timestamp: 2021-11-18T09:24:57-08:00

Add puppycam for better camera

In the sm64ex repo, you can add the command "BETTERCAMERA=1" when building to add a better camera than the outdated N64 camera system. I'd suggest to try adding it to the building_ios.sh file's last line so that the final line reads:
"gmake ios -j4 TARGET_IOS=1 TARGET_OS_IOS=1 BETTERCAMERA=1"

Haptics don’t work on some devices

A weird phenomenon, but haptics work on an iPhone X running iOS 14.0, but not on an iPhone 13 on iOS 15.0.1 nor an iPhone X on 14.3. I’m guessing something in CoreHaptics changed between iOS versions, but I haven’t been able to find a solution yet. If anyone has any suggestions or a solution, please comment or PR.

Resolution issue on Apple TV 4K

Describe the bug
The game only occupies 1/4 of the screen on a 4K tV.

To Reproduce
Steps to reproduce the behavior:

  1. Build using Xcode (using sm64tvos)
  2. Run on Apple TV.
  3. Stop product.
  4. Launch the newly installed app on the Apple TV.

Expected behavior
Game displays full screen.

Screenshots
Screen Shot 2021-11-16 at 5 34 06 PM
Screen Shot 2021-11-16 at 6 00 38 PM

Additional context
The Apple TV is the 4K (2021) model. Worth noting, on initial run, the game displays full screen. Only on subsequent launches from the app icon does the screen change to 1/4 size. This is my first time building and running an Apple TV app from Xcode, so forgive me if I did something wrong.

AppIcon

Describe the bug
Application have not icon.

To Reproduce
Steps to reproduce the behavior:

  1. Build ipa
  2. Install ipa
  3. See "setup table"
    SM64ios
    tested on iOS 15.0.1, iPhone 12 Pro

Apple TV Controller SteelSeries Nimbus - No Start Button

Describe the bug
The Nimbus controller doesn't have a Start button, so the game launch but you can't start playing.

To Reproduce
Steps to reproduce the behavior:

  1. Launch app
  2. You are stuck

Expected behavior
I was hopping the start button can be remaped somehow, or the Apple TV remote can have one of it's buttons as the Start button.

Screenshots
Press Start

Desktop (please complete the following information):

  • OS: tvOS
  • Controller: SteelSeries Nimbus

Does this support Apple Silicon?

When I build sm64 tvOS, it says “executable file is not a directory” and I’m not able to build the ipa.

To reporoduce, just follow the steps precisely

I expect to be able to build the IPA and add the app to my Apple TV 4K

  • OS: Ventura 13.2

  • Chip: Apple M2/Apple M1

  • Device: Apple TV 4K

Requested feature: volume control

It would be nice to be able to turn the sound down or even off so one could listen to podcasts or other music while playing. Preferably an in app option rather than just toggling the silent mode switch on the iPhone like Delta does. Thanks!

Executable Path is a Directory

Describe the bug
A clear and concise description of what the bug is.

When I attempt to run the app for ios, it says Executable Path is a Directory: /Users/<my_name>/Library/Developer/Xcode/DerivedData/sm64ios-adtogoxpdmdahwdnxmmdissyqagw/Build/Products/Debug-iphoneos/sm64ios.app is not a valid path to an executable file.

(also, im new to this, so can you explain it in layman's terms?)

To Reproduce
Steps to reproduce the behavior:

follow all instructions and when i try to run, see the error

run on my iphone 8 plus

Screenshots

Screenshot 2023-02-03 at 5 05 02 pm

Desktop (please complete the following information):

  • OS: MacOS 13.1 Ventura
  • Browser Chrome

Smartphone (please complete the following information):

  • Device: Iphone 8 plus
  • OS: iOS16.0.2
  • Browser [Oprea]

Render96ex support?

I've got SM64 with Render96ex on my windows and linux machines (steam deck), but would be nice to have it on iOS! Throwing this out there for future development ideas... thanks!

Include Xcode project file in repo to make contribution easier

Great work on this and thank you for including easy-to-understand instructions! Amazing to see this run natively on my iPhone!

It'd be great if the Xcode project file was part of the repo so that one can build, run, debug and easily contribute any iOS specific code. I know it takes adding the sources to the project and the flags from the makefile to the Build Settings - I wonder if there's an easier way to do that. I know cmake has an Xcode generator that other projects like PPSSPP use, but having an Xcode project file already in the repo would be a nice to have.

Thanks again!!

Not building on M1 Macs

Describe the bug
The build fails when building on M1 Macs

To Reproduce
Steps to reproduce the behavior:

  1. build_ios.sh

Expected behavior
Should build correctly but instead fails to level_rules.mk is missing

Desktop (please complete the following information):

  • OS: 12.6 M1 Pro

Additional context
Some people have suggested changing the cpp-10 in the Makefile to cpp-12 (current one). Please see discussion here: https://www.reddit.com/r/SuperMario64/comments/os39w9/got_super_mario_64_running_natively_on_an_m1_mac_d/

And proposed build here: https://github.com/SrGarmaples/target_osx

70 build issues

On building for Apple TV. I get 70 red issues and build failed, copied and pasted below.

sm64tvos
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ct_rune_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ct_rune_t.h:32:9 unknown type name '__darwin_ct_rune_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_fd_def.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_fd_def.h:51:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_fd_def.h:51:72 '__int32_t' undeclared here (not in a function); did you mean 'uint32_t'?

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_fd_def.h:64:14 'uintptr_t' undeclared (first use in this function)

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_fd_def.h:64:70 expected ')' before numeric constant

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_intptr_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_intptr_t.h:32:9 unknown type name '__darwin_intptr_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/_mcontext.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/_mcontext.h:34:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_nlink_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_nlink_t.h:31:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_rune_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_rune_t.h:31:9 unknown type name '__darwin_rune_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_sigaltstack.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_sigaltstack.h:45:9 unknown type name '__darwin_size_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_size_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_size_t.h:31:9 unknown type name '__darwin_size_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ssize_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ssize_t.h:31:9 unknown type name '__darwin_ssize_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_time_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_time_t.h:31:9 unknown type name '__darwin_time_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_timespec.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_timespec.h:35:9 unknown type name '__darwin_time_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_timeval.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_timeval.h:36:9 unknown type name '__darwin_time_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/_types.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/_types.h:43:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/_types.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/_types.h:34:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:55:9 unknown type name '__int64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:56:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:57:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:60:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:61:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:62:9 unknown type name '__uint64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:68:9 unknown type name '__darwin_natural_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:70:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:71:9 unknown type name '__int64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:72:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:73:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:74:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:75:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types.h:76:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ucontext.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ucontext.h:49:9 unknown type name '__darwin_size_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_ucontext.h:50:9 unknown type name '_STRUCT_MCONTEXT'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_va_list.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_va_list.h:32:9 unknown type name '__darwin_va_list'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_wchar_t.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/_types/_wchar_t.h:34:9 unknown type name '__darwin_wchar_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/cdefs.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/cdefs.h:913:2 #error Unsupported architecture

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/dirent.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/dirent.h:112:15 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/dirent.h:112:15 unknown type name '__uint64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/dirent.h:112:15 unknown type name '__uint8_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/endian.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/endian.h:37:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/limits.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/limits.h:11:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/resource.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/resource.h:89:9 unknown type name '__uint64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/signal.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/signal.h:34:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:111:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:115:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:116:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:117:9 unknown type name '__uint16_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:118:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:122:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:123:9 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:124:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:125:9 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:182:13 unknown type name '__int64_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:182:13 unknown type name '__uint32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:182:13 unknown type name '__int32_t'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:412:31 unknown type name '__uint32_t'; did you mean 'uint32_t'?

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:414:23 unknown type name '__uint32_t'; did you mean 'uint32_t'?

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/stat.h:417:32 unknown type name '__uint32_t'; did you mean 'uint32_t'?

/Users/tristramdavies/sm64ios/sm64ex-ios/include/stb/stb_image_write.h
/Users/tristramdavies/sm64ios/sm64ex-ios/include/stb/stb_image_write.h:306:62 first argument to 'va_arg' not of type 'va_list'

/Users/tristramdavies/sm64ios/sm64ex-ios/include/stb/stb_image_write.h:309:39 first argument to 'va_arg' not of type 'va_list'

/Users/tristramdavies/sm64ios/sm64ex-ios/include/stb/stb_image_write.h:315:48 first argument to 'va_arg' not of type 'va_list'

/usr/local/Cellar/gcc@12/12.3.0/lib/gcc/12/gcc/x86_64-apple-darwin23/12/include/stdarg.h
/usr/local/Cellar/gcc@12/12.3.0/lib/gcc/12/gcc/x86_64-apple-darwin23/12/include/stdarg.h:99:24 conflicting types for 'va_list'; have '__gnuc_va_list' {aka '__va_list_tag[1]'}

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/types.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/machine/types.h:37:2 #error architecture not supported

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:207:33 duplicate member 'w_Filler'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:208:21 duplicate member 'w_Retcode'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:209:21 duplicate member 'w_Coredump'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:210:21 duplicate member 'w_Termsig'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:225:33 duplicate member 'w_Filler'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:226:21 duplicate member 'w_Stopsig'

/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/sys/wait.h:227:21 duplicate member 'w_Stopval'

Frame-pacing issues

On iOS, SDL_GL_SetSwapInterval is not supported, so the app defaults to timer-based frame-pacing rather than vsync. This ultimately leads to the game sometimes appearing at a lower framerate. This is very noticeable without the 60 fps patch, but is virtually a non-issue with the 60 fps patch applied.

Coop

pls make a ccop one

Error in wiki (Xcode)

Describe the bug
Have an error in the dir name of the command:

Downloading the project and SDL2

Create a working directory to put project files: mkdir sm64ios && cd sm64ios
Clone sm64ex-ios and SDL and set up necessary directories:
git clone https://github.com/ckosmic/sm64ex-ios.git &&
git clone https://github.com/libsdl-org/SDL.git SDL2 &&
mkdir include &&
cp -a SDL/include include/ &&
mv include/include include/SDL2

SDL cloned into SDL2 (git clone https://github.com/libsdl-org/SDL.git SDL2)
and command must be:
cp -a SDL2/include include/ &&
mv include/include include/SDL2

Misspell in wiki guide

Need bring into compliance lib names used in project and writing in guide:
in project used ioslib but in the guide used ioslibs.

Problem build option

Using EXTERNAL_DATA=1 option in the build script give an error in the python module mkzip.py no matter which gcc version is used.
Without EXTERNAL_DATA=1 option used to compile build in the sh script all good working with actual gcc version (11.2.0).
Maybe this is due to the absence of texture pack or sound bank in the res dir by default? I don't know.
Thank You very much for your incredible work! It is fantastic: sm64ios exists!

iOS dir

Beautiful release, but "iOS" dir is absent and project was not to build.

System requirement

What minimal ATV model is required to run with decent FPS? Is ATV3 OK?

Proposal for implementation

The sm64ex nightly project allows to create now a working build for both intel and M1 macOS using actual patches. Is it possible to apply your revision for iOS/tvOS to it?

Conjunction with AltStore

Can’t install ipa with AltStore, only with Xcode.
For example, Flycast ipa installed successfully. What does it be?

"linker command failed with exit code 1" Error

I did "Building for iOS via Xcode" steps in Wiki. But when I try to build on Xcode for iOS or tvOS, I receive this error and build was fail.

/Users/username/sm64ios/sm64ex-ios/sm64ios/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)

How do I solve this?

Xcode build - No code signature found

Describe the bug
When building with Xcode installation fails with a "No code signature" error

To Reproduce
Steps to reproduce the behavior:
Build the app scratch and attempt to install to a device

Expected behavior
App installs

Screenshots

Details

Unable to install "sm64ios"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
No code signature found.

Save game and settings feature

It would be very cool to be able to save the game and settings in a directory accessible to an non-jailbroken device. Because every new install make new save and cfg.

60FPS doesn’t work and save state support

Describe the bug
A clear and concise description of what the bug is.
is it implemented in the current build yet? I saw you got 60FPS on Twitter video but it only run at 30FPS here on my iPhone 8 Plus here is it not powerful enough? I would love to know and also there is no option to manually save state the game could you implement that? and appreciate your work keep going!
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image
See that framerate indicator? Yeah it only run at 30FPS and yes it's accurate
Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone 8Plus]
  • OS: [e.g. iOS 14.3 (taurine)]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Problem build Static Library-iOS

Selected iPhone 11 as target for static library-ios and get the following error when trying to build:

No visible @interface for 'SDL_uikitviewcontroller' declares the selector 'setNeedsUpdateOfPrefersPointerLocked'

on line 332 of SDL_uikitwindow.m

Xcode 11.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.