kermitt2 / pdfalto

PDF to XML ALTO file converter
GNU General Public License v2.0
216 stars 70 forks source link

ARM binaries for the Apple M1 #153

Closed lfoppiano closed 8 months ago

lfoppiano commented 2 years ago
MIracleyin commented 1 year ago

Hi, I checkout into your branch https://github.com/kermitt2/pdfalto/tree/feature/support-mac-arm, but I still can't make it. Give me some hits plz.

lfoppiano commented 1 year ago

@MIracleyin better if you first share some info and logs so that I can guide you

MIracleyin commented 1 year ago

sure. my device info: macOS 13.3.1 22E261 arm64, MacBookAir10,1 I already git clone pdfalto and checkout to your branch when I using script: "./install_deps.sh" I will got below info:

Can't exec "aclocal": No such file or directory at /opt/homebrew/Cellar/autoconf/2.71/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 2

as to make, I got below info after "cmake ." and "make"

$HOME/pdfalto/xpdf-4.03/xpdf/GlobalParams.cc:27:12: fatal error: 'fontconfig/fontconfig.h' file not found
#  include <fontconfig/fontconfig.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o] Error 1
make[1]: *** [xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/all] Error 2
make: *** [all] Error 2