| Re: [hatari-devel] hatari.app from cirrus-ci (was: Re: One scanline short in ST fullscreen) |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
> Am 26.10.2023 um 20:36 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>
> Am Tue, 24 Oct 2023 19:53:43 +0000
> schrieb Anders Eriksson <evldhs@xxxxxxxxxxxxxx>:
> ...
>> Hello again Thomas,
>>
>> I noticed today that the builds from cirrus-ci are missing libpng so compressed videos/screenshots are not possible.
>> Not a big deal for screenshots but videos gets very very large.
>>
>> Is it possible to add libpng to these Hatari builds?
>
> Hi,
>
> main problem is that there does not seem to be a proper pre-built libpng
> available for macOS. It's likely possible to compile that in the cirrus-CI,
> too ... but for me that's very cumbersome to come up with the right
> commands since I don't have a macOS machine for testing, i.e. I have to
> update the cirrus-ci.yml file by guessing, then submit a built, then wait
> for the job to get scheduled, then finally find out that I had a typo
> somewhere, then start again from the beginning ... It would really be
> better if one of the macOS users could come up with a proper patch for the
> .cirrus-ci.yml file instead.
>
> Thomas
>
>
I appended a pre-built framework version of the latest libpng (1.6.40). It works with macOS 10.13 and later. I have built it with these steps:
a Download source code from http://libpng.org/pub/png/libpng.html
b Go to the source directory and build an Xcode project:
cmake -G Xcode . -DPNG_FRAMEWORK=ON -DPNG_HARDWARE_OPTIMIZATIONS=OFF
c Open the Xcode project and select "libpng" in left side bar
d Select "Targets > png_framework" in middle sector
e Set "Architectures" to "Standard Architectures (Apple Silicon, Intel)"
f Set "Build Active Architecture Only" to "No"
g Set "macOS Deployment Target" to "macOS 10.13" or oldest available
h Set "Framework Version" to "A"
i Set "Compatibility Version" to "1.0.0"
j Set "Current Library Version" to the actual version of libpng
k Select "png_framework > Any Mac" in title bar and go to "Edit Scheme ..."
l Set "Build Configuration" to "Release"
m Select "Product > Build" from the menu bar
n Using Terminal go to bundle directory, change loader path and sign code:
install_name_tool -change /opt/local/lib/libz.1.dylib /usr/lib/libz.1.dylib png
codesign --force -s - png
o Copy the framework to /Library/Frameworks and make sure no other versions
of libpng are installed (if applicable remove macports version of libpng)
Attachment:
png.framework.zip
Description: Zip archive
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |