Re: [hatari-devel] Hatari macOS builds - handover need? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari macOS builds - handover need?
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 23 Apr 2023 07:01:42 +0000
- Cc: Troed Sångberg <troed@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1682233304; bh=983kYYkDt1OYwX51xYZlIsi5okv/5IwNWMn5LYbj670=; h=Date:From:To:Cc:Subject:From; b=luE/f8JIdJwfoZNwTwNGg5MIweujQzyAE9hviQHcRVJfzBgQqPhud5bDTwJEhA1cY B5okyR0DcCnw0DEXjUAiM3KgAAcNt6nWS5jLx4GMySIHiTw3UJb2g5zDMqG6RYn2fI BJdrJRny48o1H0RbgH9UgpiWQGaku+vigZMl4WpmqWVcP4z4y5/+qfz2DZ8Dc0xyft 0yjF52znBfRE3rXUx8q8mJXJWAWajAmSic8iJS4vvCSieTSS4Nx+cUkGcu1n03z++j RBB5h6xCsOJm3ZjTFsK5+bGo/rri2G9cxvDaLoWie1wUkKc/gqClN0/YB99m1idq+p iilYUBb4f1qWA==
Am Thu, 20 Apr 2023 12:59:11 +0100
schrieb Chris Jenkins <cdpjenkins@xxxxxxxxx>:
> I still have a Mac and would be willing to help out if I can. But I think
> Thomas's suggestion of publishing artefacts from the CI build is probably
> the best option.
I now did some experiment with the Cirrus-CI to use the Monterey-Xcode
environment like this:
macos12_task:
osx_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
install_script:
- brew update
- brew install sdl2 libpng make
script:
- export PATH=/usr/local/bin:$PATH
- cmake -G Xcode -DCMAKE_BUILD_TYPE:STRING="Release"
-DCMAKE_CROSSCOMPILING:BOOL=1 .
|| { cat config.log; exit 1; }
- cmake --build . --verbose --config Release -j$(sysctl -n hw.ncpu)
However, the build is then failing with "Build input file cannot be found:
'.../cirrus-ci-build/src/cpu/cpudefs.c'. Did you forget to declare this file
as an output of a script phase or custom build rule which produces it? (in
target 'gencpu' from project 'Hatari'"
How are Apple users compiling with Xcode from the command line?
> I think we could update the macOS CI job in the Cirrus-CI to publish the
> > built binary as CI artifacts there. However, these runners are arm64 only,
> > so I guess that means "good bye" for the x86 support? Or is XCode on ARM
> > still ablte to built binaries for x86, too?
>
> My understanding is that Xcode on Apple Silicon _can_ create x86 binaries
> (or universal binaries) no problem. See for example
> https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
Ok, but then the question is how to configure this via CMake
from the command line?
> Anyway, Troed, could you please sent me the script that you used to compile
> > and create the dmg images? That would be very helpful for extending the CI
> > job...
Having some script that is known to be working already would be very
helpful for getting this running in the Cirrus-CI ... Troed, could you
please send me the list of instructions that you are using in your builds?
Thomas