Cannot build DOSBOX
Ryan Schmidt
ryandesign at macports.org
Mon Sep 19 22:41:11 UTC 2022
On Sep 18, 2022, at 23:39, Dave Horsfall wrote:
> ---> Computing dependencies for dosbox
> Error: Cannot install dosbox for the arch 'i386' because
> Error: its dependency libsdl does not build for the required arch by default
> Error: and the configured universal_archs '' are not sufficient.
>
> macports.conf:
>
> # Space-delimited list of CPU architectures to target when building
> # universal. Defaults to "i386 ppc" on Mac OS X 10.5 and earlier,
> # "x86_64 i386" on Mac OS X 10.6 through macOS 10.13, "x86_64" on
> # macOS 10.14 and 10.15 (these SDKs are not universal), and
> # "arm64 x86_64" on macOS 11 and later. Set an empty value to disable
> # universal building.
> #universal_archs x86_64 i386
> universal_archs
>
> Should I hardwire it to those? I ain't likely to use PPC etc.
dosbox is only available for 32-bit (i386).
On your OS version, software builds 64-bit (x86_64) by default.
Therefore, anything that is 32-bit only and has dependencies must install those dependencies universal (32-bit and 64-bit) on your system.
You have disabled universal building by setting universal_archs to empty, therefore you cannot install dosbox.
If you want to allow universal builds, remove the line "universal_archs" from macports.conf to let the default value (x86_64 i386 on your system) take effect.
The compilers in Xcode on your OS version cannot compile for ppc so including ppc in universal_archs won't work.
More information about the macports-users
mailing list