silikonmagazine.blogg.se

Keyup sdl2 rust
Keyup sdl2 rust










keyup sdl2 rust

It has paths that need to be fixed and will not build immediately. This is because we copy/pasted a template.

keyup sdl2 rust

You should get an error like this: SDL.h file not found Now launch xcode (the project is in /xcode/ios-sdl2.xcodeproj) and hit the play.

keyup sdl2 rust

Git commit -m "Add xcode project" Link against SDL2 Sed -i "" 's/_PROJECTNAME_/ios-sdl2/g' ios-sdl2.xcodeproj/project.pbxproj Mv _PROJECTNAME_.xcodeproj ios-sdl2.xcodeproj Here's a script to do that and commit the changes cd xcode

  • Find and replace _PROJECTNAME_ in ios-sdl2.xcodeproj/project.pbxproj.
  • (That's PROJECTNAME surrounded by three underscores) There's a placeholder _PROJECTNAME_ used as both a filename and within some files. We need to fix up a few names from the template. There's an example project we can pull from SDL2 to help us get started cp -r "SDL2/Xcode-iOS/Template/SDL iOS Application" xcode Xcode will be used to deploy your app to the device. Include files are in SDL2/include Setup the xcode project (xcode put mine somewhere in ~/Library/Developer/Xcode/DerivedData/HASHED_FOLDER/Build/Products/ - but that's fine. Once this finishes, you will have a libSDL2.a file. Set up the build scheme like this and hit play:ĮDIT: The screenshot is a bit old, the correct setting is Framework-iOS > Any iOS Device (arm64 armv7) Open SDL2's iOS xcode project open -a xcode SDL2/Xcode/SDL/SDL.xcodeproj Git commit -m "Add gitignore file" Build SDL2 Now's a good time to add some things to your. Run through these commands to init a git repo and grab SDL2. Here's a guide to setting up an iOS project using Rust and SDL2.ĮDIT: These instructions tend to rot over time due to changes in xcode and SDL2's project structure. A guide to setting up an iOS project using Rust and SDL2












    Keyup sdl2 rust