1
OXCE Builds & Ports / Re: OXCE v7.12 MacOS
« on: July 23, 2024, 10:15:39 pm »
Hi Ska,
I compiled OXCE yesterday successfully on a MacBook M3. I had to edit the Homebrew formula for sdl_image and sdl_mixer to reenable it. See stackoverflow for that. You can install sdl_image and sdl_mixer after the edit. Instead of sdl I used the sdl12-compat formula. (I left out all the parameters like --with-static-lib in the brew install example for the dependencies, as they aren't accepted by homebrew)
Before that I also tried to change the cmake dependency from sdl_mixer to sdl2_mixer which doesn't work.
I then used the cmake way to compile the code. The resulting openxcom.app is missing the sdl2.dylib used for the sdl12-compat library. I copied that from an existing OXCE build and it runs without any flaws so far.
The binary is an Intel binary. I tried to get an arm64 native binary with -DCMAKE_OSX_ARCHITECTURES=x86_64;arm64 and editing the CMakeLists to add set(CMAKE_OSX_ARCHITECTURES "arm64"). The latter is accepted by cmake but it misses stuff resulting in " ld: symbol(s) not found for architecture arm64".
Any docs or hints on how to compile natively are greatly appreciated.
I compiled OXCE yesterday successfully on a MacBook M3. I had to edit the Homebrew formula for sdl_image and sdl_mixer to reenable it. See stackoverflow for that. You can install sdl_image and sdl_mixer after the edit. Instead of sdl I used the sdl12-compat formula. (I left out all the parameters like --with-static-lib in the brew install example for the dependencies, as they aren't accepted by homebrew)
Before that I also tried to change the cmake dependency from sdl_mixer to sdl2_mixer which doesn't work.
I then used the cmake way to compile the code. The resulting openxcom.app is missing the sdl2.dylib used for the sdl12-compat library. I copied that from an existing OXCE build and it runs without any flaws so far.
The binary is an Intel binary. I tried to get an arm64 native binary with -DCMAKE_OSX_ARCHITECTURES=x86_64;arm64 and editing the CMakeLists to add set(CMAKE_OSX_ARCHITECTURES "arm64"). The latter is accepted by cmake but it misses stuff resulting in " ld: symbol(s) not found for architecture arm64".
Any docs or hints on how to compile natively are greatly appreciated.