Open jlarvers opened 4 years ago
I managed to have a build on OSX (CI only), and the modifications ended up in this PR https://github.com/kermitt2/pdfalto/pull/98
Thank you for your reply.
Mac OSX, it was just for testing.
Following your answer, I preferred to install pdfalto on Linux Ubuntu 18.0.4 LTS and, coooooooool!
A note about the prerequisites for Ubuntu 18.0.4 LTS. I had to install clang because installing gcc was not enough to do the "make". For the rest, fingers in the nose :-) I will have lots of other questions now.
See you soon and thank you for your feedback.
I got the same error, I solved it by running:
brew install libpaper
brew install fontconfig
Hello,
I want to install pdfalto on a Mac OSX 10.15.6
During installation, the
make
command generates the following error and stops the installation;user@home pdfalto %
make
Scanning dependencies of target xpdf
[ 1%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/AcroForm.cc.o
[ 2%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Annot.cc.o
[ 3%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Array.cc.o
[ 3%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/BuiltinFont.cc.o
[ 4%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/BuiltinFontTables.cc.o
[ 5%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Catalog.cc.o
[ 6%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/CharCodeToUnicode.cc.o
[ 6%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/CMap.cc.o
[ 7%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Decrypt.cc.o
[ 8%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Dict.cc.o
[ 9%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/DisplayState.cc.o
[ 10%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Error.cc.o
[ 10%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/FontEncodingTables.cc.o
[ 11%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Form.cc.o
[ 12%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Function.cc.o
[ 13%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Gfx.cc.o
[ 13%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GfxFont.cc.o
[ 14%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GfxState.cc.o
[ 15%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o
/Users/user/pdfalto/xpdf-4.00/xpdf/GlobalParams.cc:22:10: fatal error: 'paper.h' file not found
#include <paper.h>
'' ^~~~~~~~~
1 error generated.
make[2]: *** [xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o] Error 1
make[1]: *** [xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/all] Error 2
make: *** [all] Error 2
The versions of the tools required;
The complete log (below) traces the history of the installation attempt, with the necessary preliminary steps and those related to the Mac itself.
In the Cmake log, we see;
-- Looking for fseek64 - not found
...-- Looking for _fseeki64 - not found
...-- lcms2 not found
Do you have any idea what I missed.
Thank you.
user@home ~ %
git clone https://github.com/kermitt2/pdfalto.git && cd pdfalto
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
user@home ~ %
xcode-select --install
xcode-select: note: install requested for command line developer tools
user@home ~ %
xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
user@home ~ %
git clone https://github.com/kermitt2/pdfalto.git && cd pdfalto
Cloning into 'pdfalto'...
remote: Enumerating objects: 129, done.
remote: Counting objects: 100% (129/129), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 2462 (delta 90), reused 82 (delta 50), pack-reused 2333
Receiving objects: 100% (2462/2462), 44.32 MiB | 5.86 MiB/s, done.
Resolving deltas: 100% (1091/1091), done.
Updating files: 100% (354/354), done.
user@home pdfalto %
git submodule update --init --recursive
Submodule 'xpdf-4.00' (https://github.com/kermitt2/xpdf-4.00) registered for path 'xpdf-4.00'
Cloning into '/Users/user/pdfalto/xpdf-4.00'...
Submodule path 'xpdf-4.00': checked out '79ab405ceac0ab667fb74066a1c79d40581ca094'
user@home pdfalto %
./install_deps.sh
Error: cmake is not installed.
user@home pdfalto %cmake ./
zsh: command not found: cmake
user@home pdfalto %
brew install cmake
[cut...]
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.18.2.catalina.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/76c373c703198dd3b079c43f42ff0b043de2676d2e34a43695a917be51a42d54?response-content-dispositi
######################################################################## 100.0%
==> Pouring cmake-3.18.2.catalina.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺 /usr/local/Cellar/cmake/3.18.2: 6,263 files, 60.1MB
user@home pdfalto %
brew install clang
Updating Homebrew...
Error: No available formula with the name "clang"
[cut...]
Error: No formulae found in taps.
user@home pdfalto %
brew install gcc
[cut...]
==> Installing dependencies for gcc: gmp, isl, mpfr and libmpc
==> Installing gcc dependency: gmp
==> Pouring gmp-6.2.0.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/gmp/6.2.0: 20 files, 3.2MB
==> Installing gcc dependency: isl
==> Pouring isl-0.22.1.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/isl/0.22.1: 72 files, 4.7MB
==> Installing gcc dependency: mpfr
==> Pouring mpfr-4.1.0.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/mpfr/4.1.0: 29 files, 5.1MB
==> Installing gcc dependency: libmpc
==> Pouring libmpc-1.2.0.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/libmpc/1.2.0: 12 files, 382.9KB
==> Installing gcc
==> Pouring gcc-10.2.0.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/gcc/10.2.0: 1,463 files, 338.7MB
user@home pdfalto %
brew install wget
[cut...]
Error: wget 1.19.4_1 is already installed
To upgrade to 1.20.3_2, run
brew upgrade wget.
user@home pdfalto %
cmake ./
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Using macos settings.
++ 64 bit architecture
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for mkstemps
-- Looking for mkstemps - found
-- Looking for popen
-- Looking for popen - found
-- Performing Test HAVE_STD_SORT
-- Performing Test HAVE_STD_SORT - Success
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for fseek64
-- Looking for fseek64 - not found
-- Looking for _fseeki64
-- Looking for _fseeki64 - not found
-- Found FreeType (old-style includes): /Users/user/pdfalto/libs/freetype/mac/64/libfreetype.a
-- Found TIFF: /opt/local/lib/libtiff.dylib (found version "4.0.7")
-- lcms2 not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/pdfalto
user@home pdfalto %
make
Scanning dependencies of target xpdf
[ 1%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/AcroForm.cc.o
[ 2%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Annot.cc.o
[ 3%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Array.cc.o
[ 3%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/BuiltinFont.cc.o
[ 4%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/BuiltinFontTables.cc.o
[ 5%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Catalog.cc.o
[ 6%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/CharCodeToUnicode.cc.o
[ 6%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/CMap.cc.o
[ 7%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Decrypt.cc.o
[ 8%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Dict.cc.o
[ 9%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/DisplayState.cc.o
[ 10%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Error.cc.o
[ 10%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/FontEncodingTables.cc.o
[ 11%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Form.cc.o
[ 12%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Function.cc.o
[ 13%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/Gfx.cc.o
[ 13%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GfxFont.cc.o
[ 14%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GfxState.cc.o
[ 15%] Building CXX object xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o
/Users/user/pdfalto/xpdf-4.00/xpdf/GlobalParams.cc:22:10: fatal error: 'paper.h' file not found
#include <paper.h>
'' ^~~~~~~~~
1 error generated.
make[2]: *** [xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o] Error 1
make[1]: *** [xpdf-4.00/xpdf/CMakeFiles/xpdf.dir/all] Error 2
make: *** [all] Error 2