Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suporte a Mac com processador ARM #4

Open
humbertodias opened this issue Sep 25, 2023 · 2 comments
Open

Suporte a Mac com processador ARM #4

humbertodias opened this issue Sep 25, 2023 · 2 comments

Comments

@humbertodias
Copy link

humbertodias commented Sep 25, 2023

Ótima engine! Parabéns pela iniciativa.

Gostaria de contribuir com o projeto e notei que atualmente utiliza allegro 4 que infelizmente nao é compilável com Mac M1/2 com processadores ARM e surgiu uma dúvida sobre próximos passos antes da contribuiçao:

@DanielMoura79 pretende evoluir para qual direção?

  1. Adaptar Allegro 4 com Allegro Legacy mantendo uma camada fake com Allegro 5?
  2. Portar Allegro 4 para 5 ?
  3. Rescrever com SDL2?
  4. Rescrever com Raylib?
  • Se optar pela reescrita, aqui uma comparaçao entre SDL vs Raylib

Obrigado.

@humbertodias humbertodias changed the title Web support MacOS ARM and Web support Sep 25, 2023
@humbertodias humbertodias changed the title MacOS ARM and Web support Suporte a Mac com processador ARM Sep 25, 2023
@xmaxmex
Copy link
Collaborator

xmaxmex commented Sep 25, 2023 via email

@humbertodias
Copy link
Author

humbertodias commented Sep 28, 2023

Sim, optei pela alternativa 1.
Consegui adaptar o HAMOOPI para Mac com processador ARM64.
Foi preciso portar de allegro 4 para 5 e compilar estaticamente, seguindo os passos:

  1. Compilar e instalar Allegro-Legacy
  2. Compilar e instalar Allegro 5
  3. Compilar HAMOOPI estaticamente
    g++ HAMOOPI.cpp -o HAMOOPI $(allegro-config --cflags --libs --static) -Wl,-rpath,'@executable_path'

Executável
HAMOOPI_Allegro5_Mac_ARM64.zip
Demo
https://github.com/DanielMoura79/HAMOOPI/assets/136126355/4faa7f5b-87c5-41e4-8111-3376294fa4f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants