开发环境-Mac下运行ARM2D

一、在Mac上安装SDL库

参考https://github.com/ARM-software/Arm-2D/tree/main/examples/%5Btemplate%5D%5Bpc%5D%5Bvscode%5D

需要借助SDL库,让ARM2D得以在PC上模拟现实

安装Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

配置Homebrew的环境变量

==> Next steps:

- Run these commands in your terminal to add Homebrew to your PATH:

    echo >> /Users/roger/.zprofile

    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/roger/.zprofile

    eval "$(/opt/homebrew/bin/brew shellenv)"

- Run brew help to get started

- Further documentation:

    https://docs.brew.sh

利用homebrew安装SDL

brew install sdl2

运行brew list 如安装成功则显示

==> Formulae

sdl2

==> Casks

下载git clone git@github.com:ARM-software/Arm-2D.git  Arm-2D代码

二、使用VSCode打开工程编译运行

Finally, please open the project in VSCode. You can do this by choosing "Open Workspace from File" in the File menu in VSCode and then selecting the workspace file [template][pc][vscode].code-workspace .In "Run and Debug" panel, you can run the project via "build and run on macos (lldb)" or you can press "F5" to launch a debug session.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值