Giter Site home page Giter Site logo

building on M1 mac about render96ex HOT 9 OPEN

render96 avatar render96 commented on August 13, 2024 1
building on M1 mac

from render96ex.

Comments (9)

halpz avatar halpz commented on August 13, 2024 1

i've made a PR with changes related to this

from render96ex.

sofakng avatar sofakng commented on August 13, 2024 1

I've submitted a pull request with the changes needed to compile this on macOS: #74

from render96ex.

retropieuser avatar retropieuser commented on August 13, 2024

This works on my 2020 MacBook Air M1 (8gb) with Ventura 13.0.1. Thanks!

from render96ex.

flatmapthatshit avatar flatmapthatshit commented on August 13, 2024

Hi folks, I'm working on a version that automatically detects arm64 vs Intel architecture and uses the right flag.

Were you folks able to build a recent version of the tester branch on the M1?
I'm getting a lot of issues with miniaudio including Apple Frameworks and getting lost.

E.g.,

gcc-12 -c -O2 -I /opt/homebrew/include -I include -I build/us_pc -I build/us_pc/include -I src -I . -DDYNOS -DRAPI_GL=1 -DWAPI_SDL2=1 -DAAPI_SDL2=1 -DCAPI_SDL2=1 -I`sdl2-config --prefix`/include -DHAVE_SDL2=1 `sdl2-config --cflags` -DVERSION_US -D_LANGUAGE_C -DGIT_HASH="\"b86a6827\"" -DNON_MATCHING -DAVOID_UB -DOSX_BUILD -DF3DEX_GBI_2E -fno-strict-aliasing -fwrapv -DEXT_OPTIONS_MENU -DFS_BASEDIR="\"res\"" -o build/us_pc/levels/wmotr/geo.o levels/wmotr/geo.c
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h:18,
                 from ./include/miniaudio.h:30305,
                 from data/r96/r96_miniaudio.h:7,
                 from data/dynos_audio.cpp:5:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected unqualified-id before '^' token
  162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
      |  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:162:2: error: expected ')' before '^' token
  162 | (^AudioObjectPropertyListenerBlock)(    UInt32                              inNumberAddresses,
      | ~^
      |  )
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:400:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
  400 |                                         AudioObjectPropertyListenerBlock    inListener)             __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:421:41: error: 'AudioObjectPropertyListenerBlock' has not been declared
  421 |                                         AudioObjectPropertyListenerBlock    inListener)             __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_7_0);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected unqualified-id before '^' token
  804 | (^AudioDeviceIOBlock)(  const AudioTimeStamp*   inNow,
      |  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:804:2: error: expected ')' before '^' token
  804 | (^AudioDeviceIOBlock)(  const AudioTimeStamp*   inNow,
      | ~^
      |  )

I can easily build this with clang, but then again it would be easier if I could build everything with the same compiler.

from render96ex.

flatmapthatshit avatar flatmapthatshit commented on August 13, 2024

@sofakng, I'm a few months late and not sure if something else broken the branch, but while I can compile the tester branch on macOS (both Intel and M1 Apple Silicon), the application fails to start ("Can't start the container"). alpha and tester_rt64alpha are building and running fine. Can you check if the game is still building / working for you?
I'm on macOS Ventura 13.4.1, following the build instructions at https://github.com/flatmapthatshit/Render96ex_macOS#build-instructions btw.

from render96ex.

retropieuser avatar retropieuser commented on August 13, 2024

I get an error in the tester branch as well:-

neil@Neils-Air Render96ex_macOS % gmake -j4
find: /opt/local/bin/gcc*: No such file or directory
find: /opt/local/bin/gcc*: No such file or directory
find: /opt/local/bin/gcc*: No such file or directory
gmake[1]: Entering directory '/Users/neil/Desktop/Render96ex_macOS/tools'
gcc-mp- -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s aiff_extract_codebook.c -o aiff_extract_codebook -lm
gmake[1]: gcc-mp-: No such file or directory
gmake[1]: *** [Makefile:47: aiff_extract_codebook] Error 127
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: Entering directory '/Users/neil/Desktop/Render96ex_macOS/tools/audiofile'
g++-mp- -std=c++11 -DNDEBUG -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -I. -c audiofile.cpp
gmake[2]: g++-mp-: No such file or directory
gmake[2]: *** [Makefile:7: audiofile.o] Error 127
gmake[2]: Leaving directory '/Users/neil/Desktop/Render96ex_macOS/tools/audiofile'
gmake[1]: *** [Makefile:34: audiofile/libaudiofile.a] Error 2
gmake[1]: Leaving directory '/Users/neil/Desktop/Render96ex_macOS/tools'
Makefile:214: *** Failed to build tools. Stop.

from render96ex.

flatmapthatshit avatar flatmapthatshit commented on August 13, 2024

I get an error in the tester branch as well:-.

Do you have the latest gcc version installed with homebrew + all dependencies (see Step 4 from my guide above)? I got the tester branch to compile, but the application errors out during initialisation. The other two branches that I've mentioned are working fine for me.

from render96ex.

flatmapthatshit avatar flatmapthatshit commented on August 13, 2024

I get an error in the tester branch as well:-.

Also, drop the -j4 for now as they haven't merged my fix to parallel builds to all branches (#84).

from render96ex.

artiqeltt avatar artiqeltt commented on August 13, 2024

how are you supposed to do the tester rt64? i tried with render api rt64 but it is only supported on windows. i used only gmake -j4 and it worked but no raytracing.

from render96ex.

Related Issues (20)

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.