Open SimonDanisch opened 6 years ago
@staticfloat, this is probably the most actionable problem I run into! You're bash knowledge would be much appreciated here :)
What does the config.log
file say? Is it unable to find -lz
?
Yup! Is that a binary artifact zlibbuilder isn't shipping?
It is shipping it. For some reason it’s not getting found. Hmmm. Can you post the compiler invocation from config.log
here is the whole file: config.log
I'm not sure why, but their configure
script doesn't auto-include $prefix/lib
and $prefix/include
within the default LDFLAGS
and CPPFLAGS
. I consider that a buildsystem bug, but you can work around it by adding the following to your ./configure
invocation:
LDFLAGS="-L$prefix/lib" CPPFLAGS="-I$prefix/include" ./configure <args...>
With that added in, I am able to compile and install cairo
(at least, for x86_64-linux-gnu
). Congrats. That's actually quite the milestone.
Oh boy, easiest trick in the book :D I build so many configure based packages lately, that I simply couldn't believe something easy like that could cut it^^ Anyways, thanks a lot, and congratulation to the growing maturity of the cross compile platform :) Should we try to build Pixman on the other platforms as well? All other dependencies are already build for all platforms I think!
Your wish is my command: https://github.com/staticfloat/PixmanBuilder/releases/tag/v0.34.0-1
re. fontconfig... i've been working on it. have got most of it's dependencies built so far:
https://github.com/bjarthur/GperfBuilder https://github.com/bjarthur/UtilLinuxBuilder https://github.com/bjarthur/ExpatBuilder
combined with https://github.com/JuliaGraphics/FreeTypeBuilder
problem i'm running in to is that uuid.h is not included as a product in util-linux:
CC test_hash-test-hash.o
In file included from test-hash.c:1:0:
../src/fchash.c:24:23: fatal error: uuid/uuid.h: No such file or directory
#include <uuid/uuid.h>
^
compilation terminated.
google says i need the devel version of util-linux to build fontconfig. i see there is a FileProduct in the wizard source code, but have yet to figure out how to modify my build_tarballs.jl file to include all the header files.
This is great progress, thanks for chipping away at this @bjarthur!
I ran your UtilLinuxBuilder
locally to see if I could figure out what was going on, and I discovered two things. First, that the build fails locally for me (due to it trying to use /bin/chgrp
); I worked around that by adding the following at the top of your bash script:
# Disable chgrp
rm /bin/chgrp
echo > /bin/chgrp
chmod +x /bin/chgrp
The second was that include/uuid/uuid.h
was indeed included in the build. So perhaps you are somehow getting an incomplete build?
I have opened an issue on the BB main repo to disable chgrp
globally as it will never work inside our environment; we build in an environment that only has one user and only has one group.
https://github.com/bjarthur/FontconfigBuilder
linux-gnu only for now, but will chip away at support for the rest of the platforms...
Given the Cario.jl MacOS issue is persisting, we were just discussing what's holding back CairoBuilder in the slack #BinaryBuilder
channel.
Is above still a fair representation of progress and roadblocks?
cc. @giordano @ararslan
Optional:
Currently fails with:
This seems to be due to an error in the config script, that doesn't pick up zlib correctly, even though it's present and correctly picked up by the png library.
The relevant piece in the config file: