Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building for Apple Silicon failed due to missing directories (with manual fix) #159

Open
rdmpage opened this issue Sep 8, 2023 · 1 comment

Comments

@rdmpage
Copy link

rdmpage commented Sep 8, 2023

I built the https://github.com/kermitt2/pdfalto/tree/feature/support-mac-arm branch on my MacBook Pro M1. I encountered the usual Mac problems listed in the README, which were fixed by doing:

export C_INCLUDE_PATH=/usr/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include

following #135 (comment)

I ran ./install_deps.sh but then I got the following error:

cp: directory libs/image/zlib/mac/arm64 does not exist

I then manually added arm64 to each libs/*/mac directory and then ./install_deps.sh worked and I could finally build the pdfalto binary (yay!).

I suspect there's an easy fix to ensure that the arm64 directories are created before attempting to store the library files in those directories.

@justinlittman
Copy link

Specifically on my MacBook Pro M2:

brew install cmake
brew install automake
brew install wget
git clone https://github.com/kermitt2/pdfalto.git
cd pdfalto
git submodule update --init --recursive
mkdir libs/freetype/mac/arm64
mkdir libs/icu/mac/arm64
mkdir libs/libxml/mac/arm64
mkdir libs/image/png/mac/arm64
mkdir libs/image/zlib/mac/arm64
./install_deps.sh
export C_INCLUDE_PATH=/opt/homebrew/include
export CPLUS_INCLUDE_PATH=/opt/homebrew/include
cmake .
make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants