DanielMoura79 / HAMOOPI

Free Fighting Game Engine
GNU General Public License v2.0
24 stars 2 forks source link

Suporte a Mac com processador ARM #4

Open humbertodias opened 1 year ago

humbertodias commented 1 year ago

Ó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?

Obrigado.

xmaxmex commented 1 year ago

Boa tarde,

Seria interessante ir para Allegro, pois portar par SDL2, teria que reescrever.

Já em Allegro 5 teremos que rescrever algumas estruturas.

Que bom que temos mais gente no projeto.

Em seg, 25 de set de 2023 13:28, Humberto Dias @.***> escreveu:

Ótima engine! Parabéns pela iniciativa.

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

@DanielMoura79 https://github.com/DanielMoura79 pretende evoluir para qual direção?

  1. Adaptar Allegro 4 com Allegro Legacy https://hoten.cc/blog/porting-zelda-classic-to-the-web/#allegro-legacy ?
  2. Portar Allegro 4 para Allegro 5 https://github.com/liballeg/allegro5/wiki/Porting-Allegro-4-to-5 ?
  3. Rescrever com SDL2 https://www.libsdl.org/?
  4. Rescrever com Raylib https://www.raylib.com/?

Obrigado.

— Reply to this email directly, view it on GitHub https://github.com/DanielMoura79/HAMOOPI/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVFJFLUFTLLEUIMUJ5CFD3X4GWK7ANCNFSM6AAAAAA5GLQAUY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

humbertodias commented 1 year ago

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