Hi Please install fontconfig development packages.
Best regards Dominik Am 18.11.2016 14:36 schrieb "Denis Sangaletti" <denis.sa...@hotmail.it>: > Good morning, I'm Trying to install Podofo but I have a problem: > > > when I run the commands > cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/podofo" > ../podofo-0.9.4 > > and > > make > I obtain the erro > /home/d/Software/podofo-0.9.4/src/doc/PdfFontCache.cpp:72:35: fatal > error: fontconfig/fontconfig.h: No such file or directory > compilation terminated. > > > following the log of the two commands > 1) > -- The C compiler identification is GNU 5.4.0 > -- The CXX compiler identification is GNU 5.4.0 > -- Check for working C compiler: /usr/bin/cc > -- Check for working C compiler: /usr/bin/cc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Detecting C compile features > -- Detecting C compile features - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Detecting CXX compile features > -- Detecting CXX compile features - done > WANT_LIB64 unset; assuming normal library directory names > Will install libraries to /home/d/podofo/lib > -- Looking for strings.h > -- Looking for strings.h - found > -- Looking for arpa/inet.h > -- Looking for arpa/inet.h - found > -- Looking for winsock2.h > -- Looking for winsock2.h - not found > -- Looking for mem.h > -- Looking for mem.h - not found > -- Looking for ctype.h > -- Looking for ctype.h - found > -- Looking for sys/types.h > -- Looking for sys/types.h - found > -- Looking for stdint.h > -- Looking for stdint.h - found > -- Looking for BaseTsd.h > -- Looking for BaseTsd.h - not found > -- Looking for sys/types.h > -- Looking for sys/types.h - found > -- Looking for stdint.h > -- Looking for stdint.h - found > -- Looking for stddef.h > -- Looking for stddef.h - found > -- Check size of long int > -- Check size of long int - done > -- Check size of int64_t > -- Check size of int64_t - done > -- Check if the system is big endian > -- Searching 16 bit integer > -- Check size of unsigned short > -- Check size of unsigned short - done > -- Using unsigned short > -- Check if the system is big endian - little endian > Using gcc specific compiler options > -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so > Found zlib headers in /usr/include, library at /usr/lib/x86_64-linux-gnu/ > libz.so > -- Could NOT find LIBCRYPTO (missing: LIBCRYPTO_LIBRARY > LIBCRYPTO_INCLUDE_DIR) > OpenSSL's libCrypto not found. Encryption support will be disabled > -- Could NOT find LIBIDN (missing: LIBIDN_LIBRARY LIBIDN_INCLUDE_DIR) > Libidn not found. AES-256 Encryption support will be disabled > -- Could NOT find LIBJPEG (missing: LIBJPEG_LIBRARY LIBJPEG_INCLUDE_DIR) > libjpeg not found: Library LIBJPEG_LIBRARY_RELEASE-NOTFOUND, headers > LIBJPEG_INCLUDE_DIR-NOTFOUND > Libjpeg not found. JPEG support will be disabled > -- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) > Libtiff not found. TIFF support will be disabled > -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") > -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version > "1.2.54") > Found LibPng headers in /usr/include;/usr/include, library at > /usr/lib/x86_64-linux-gnu/libpng.so;/usr/lib/x86_64-linux-gnu/libz.so > -- Found cppunit: -L/usr/lib/x86_64-linux-gnu -lcppunit -ldl > Found cppunit. Unit tests will be built. > Found freetype library at /usr/local/lib/libfreetype.so, headers > /usr/local/include/freetype2 > -- Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES > FONTCONFIG_INCLUDE_DIR) > Could not find fontconfig. > -- Could NOT find Lua50 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) > -- Could NOT find Lua (missing: LUA_LIBRARIES LUA_INCLUDE_DIR) > Lua not found - PoDoFoImpose and PoDoFoColor will be built without Lua > support > Building multithreaded version of PoDoFo. > -- Looking for pthread.h > -- Looking for pthread.h - found > -- Looking for pthread_create > -- Looking for pthread_create - not found > -- Looking for pthread_create in pthreads > -- Looking for pthread_create in pthreads - not found > -- Looking for pthread_create in pthread > -- Looking for pthread_create in pthread - found > -- Found Threads: TRUE > Building static PoDoFo library > -- Configuring done > -- Generating done > -- Build files have been written to: /home/d/Software/podofo-0.9.4 > > > > 2) > Scanning dependencies of target podofo_static > [ 1%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfArray.cpp.o > [ 1%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfCanvas.cpp.o > [ 2%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfColor.cpp.o > [ 2%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfContentsTokenizer.cpp.o > [ 3%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfData.cpp.o > [ 3%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfDataType.cpp.o > [ 4%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfDate.cpp.o > [ 4%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfDictionary.cpp.o > [ 5%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfEncoding.cpp.o > [ 5%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfEncodingFactory.cpp.o > [ 6%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfEncrypt.cpp.o > [ 7%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfError.cpp.o > [ 7%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfFileStream.cpp.o > [ 8%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfFilter.cpp.o > [ 8%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfFiltersPrivate.cpp.o > [ 9%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfImmediateWriter.cpp.o > [ 9%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfInputDevice.cpp.o > [ 10%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfInputStream.cpp.o > [ 10%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfLocale.cpp.o > [ 11%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfMemStream.cpp.o > [ 11%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfMemoryManagement.cpp.o > [ 12%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfName.cpp.o > [ 12%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfObject.cpp.o > [ 13%] Building CXX object src/CMakeFiles/podofo_static.dir/base/ > PdfObjectStreamParserObject.cpp.o > [ 13%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfOutputDevice.cpp.o > [ 14%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfOutputStream.cpp.o > [ 14%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfParser.cpp.o > [ 15%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfParserObject.cpp.o > [ 15%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfRect.cpp.o > [ 16%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfRefCountedBuffer.cpp.o > [ 17%] Building CXX object src/CMakeFiles/podofo_static.dir/base/ > PdfRefCountedInputDevice.cpp.o > [ 17%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfReference.cpp.o > [ 18%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfSigIncWriter.cpp.o > [ 18%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfStream.cpp.o > [ 19%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfString.cpp.o > [ 19%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfTokenizer.cpp.o > [ 20%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfVariant.cpp.o > [ 20%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfVecObjects.cpp.o > [ 21%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfWriter.cpp.o > [ 21%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfXRef.cpp.o > [ 22%] Building CXX object src/CMakeFiles/podofo_static. > dir/base/PdfXRefStream.cpp.o > [ 22%] Building CXX object src/CMakeFiles/podofo_static.dir/base/ > PdfXRefStreamParserObject.cpp.o > [ 23%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfAcroForm.cpp.o > [ 23%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfAction.cpp.o > [ 24%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfAnnotation.cpp.o > [ 24%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfCMapEncoding.cpp.o > [ 25%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfContents.cpp.o > [ 25%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfDestination.cpp.o > [ 26%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfDifferenceEncoding.cpp.o > [ 27%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfDocument.cpp.o > [ 27%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfElement.cpp.o > [ 28%] Building CXX object src/CMakeFiles/podofo_static.dir/doc/ > PdfEncodingObjectFactory.cpp.o > [ 28%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfExtGState.cpp.o > [ 29%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfField.cpp.o > [ 29%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfFileSpec.cpp.o > [ 30%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfFont.cpp.o > [ 30%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfFontCID.cpp.o > [ 31%] Building CXX object src/CMakeFiles/podofo_static. > dir/doc/PdfFontCache.cpp.o > /home/d/Software/podofo-0.9.4/src/doc/PdfFontCache.cpp:72:35: fatal > error: fontconfig/fontconfig.h: No such file or directory > compilation terminated. > src/CMakeFiles/podofo_static.dir/build.make:1430: recipe for target > 'src/CMakeFiles/podofo_static.dir/doc/PdfFontCache.cpp.o' failed > make[2]: *** [src/CMakeFiles/podofo_static.dir/doc/PdfFontCache.cpp.o] > Error 1 > CMakeFiles/Makefile2:117: recipe for target > 'src/CMakeFiles/podofo_static.dir/all' > failed > make[1]: *** [src/CMakeFiles/podofo_static.dir/all] Error 2 > Makefile:127: recipe for target 'all' failed > make: *** [all] Error 2 > > > Can someone help me to solve this problem? I tried with > > sudo apt-get update > sudo apt-get install fontconfig-config > > > but the error is not solved. > > Thank you > > > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Podofo-users mailing list > Podofo-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/podofo-users > >
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users