2016-10-21 2 views
0

PoDoFo requirement Pagezlibfreetype2은 mandotory 라이브러리이고 나머지는 선택 사항입니다.CMake에서 PoDoFo 구성

나는 이미 zlibfreetype2을 구축했으며 CMake GUI에 대한 경로를 제공했다. 내가 CMake에서 구성 PoDoFo에 때

, 나는 다음과 같은 오류의 모두를 얻을 :

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: PNG_LIBRARY (ADVANCED)

당신은 설치해야합니다 :

WANT_LIB64 unset; assuming normal library directory names 
Will install libraries to C:/Program Files (x86)/PoDoFo/lib 
WARNING: ZLIB debug library will be used even for release builds 
Found zlib headers in C:/softwares/4_PoDoFoPdfGeneration/zlib128, library at C: /softwares/4_PoDoFoPdfGeneration/zlib128/BUILD/Debug/zlibstaticd.lib 
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 
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
LibPng not found. PNG support will be disabled 
Ensure you cppunit installed version is at least 1.12.0 
Cppunit not found. No unit tests will be built. 
OpenSSL: Could not find the debug and release version of openssl 
OpenSSL: Disabling OpenSSL 
WARNING: FREETYPE debug library will be used even for release builds 
Found freetype library at C:/Program Files (x86)/GnuWin32/FreeType/GnuWin32/lib/freetype.lib, headers C:/Program Files (x86)/GnuWin32/FreeType/GnuWin32/include 
Could NOT find Fontconfig (missing: FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR) 
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 - not found 
Found Threads: TRUE 
Building static PoDoFo library 
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. 
Please set them or make sure they are set and tested correctly in the CMake files: 
PNG_LIBRARY (ADVANCED) 
linked by target "podofo_static" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/src 
linked by target "ContentParser" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/ContentParser 
linked by target "ContentParser" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/ContentParser 
linked by target "CreationTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/CreationTest 
linked by target "CreationTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/CreationTest 
linked by target "FilterTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/FilterTest 
linked by target "FilterTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/FilterTest 
linked by target "FormTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/FormTest 
linked by target "FormTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/FormTest 
linked by target "ObjectParserTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/ObjectParserTest 
linked by target "ObjectParserTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/ObjectParserTest 
linked by target "ParserTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/ParserTest 
linked by target "SignatureTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/SignatureTest 
linked by target "SignatureTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/SignatureTest 
linked by target "TokenizerTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/TokenizerTest 
linked by target "TokenizerTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/TokenizerTest 
linked by target "VariantTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/VariantTest 
linked by target "VariantTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/VariantTest 
linked by target "WatermarkTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/WatermarkTest 
linked by target "WatermarkTest" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/test/WatermarkTest 
linked by target "podofobox" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofobox 
linked by target "podofocolor" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofocolor 
linked by target "podofocountpages" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofocountpages 
linked by target "podofocrop" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofocrop 
linked by target "podofoencrypt" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoencrypt 
linked by target "podofogc" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofogc 
linked by target "podofoimgextract" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoimgextract 
linked by target "podofoimg2pdf" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoimg2pdf 
linked by target "podofomerge" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofomerge 
linked by target "podofopages" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofopages 
linked by target "podofopdfinfo" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofopdfinfo 
linked by target "podofotxt2pdf" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofotxt2pdf 
linked by target "podofotxtextract" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofotxtextract 
linked by target "podofouncompress" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofouncompress 
linked by target "podofoimpose" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoimpose 
linked by target "podofoincrementalupdates" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoincrementalupdates 
linked by target "podofoxmp" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/tools/podofoxmp 
linked by target "helloworld" in directory C:/Siddrth/softwares/4_PoDoFoPdfGeneration/podofo094/examples/helloworld 
linked by target "helloworld-base14" in directory C: /softwares/4_PoDoFoPdfGeneration/podofo094/examples/helloworld-base14 
Configuring incomplete, errors occurred! 
See also "C: /softwares/4_PoDoFoPdfGeneration/podofo094/BUILD/CMakeFiles/CMakeOutput.log". 
See also "C: /softwares/4_PoDoFoPdfGeneration/podofo094/BUILD/CMakeFiles/CMakeError.log". 
+0

이 질문에 대한 대답은 만족스럽지 않지만이 질문은 이미 묻습니다 [http://adackoverflow.com/questions/20221700/build-podofo-on-windows-mingw]. – Antonio

답변

0

당신은 실제로 하나의 오류가/libpng 라이브러리를 아직 빌드하지 않았다면 빌드하고, cmake_gui의 고급 변수 중에서 경로를 설정해야합니다.

+0

그러나 PoDoFo의 요구 사항 페이지에 따라'libpng' 라이브러리는 선택 사항입니다 ... 그렇지 않습니까? – skm

+0

@skm PoDoFo에 대해 잘 모르겠다. 나는 cmake 출력을 해석하는 데 도움을주고 자 노력하고 있는데, 이는 'PNG_LIBRARY' 변수를 설정해야한다고 말하는 것 같습니다. cmake-gui에서 변수 검색 "PNG"를 넣으려고하면 종속성을 비활성화하는 옵션이있을 수 있습니다. BTW, 어느 cmake 버전 있으십니까? (나는 [this] (http://stackoverflow.com/questions/20221700/build-podofo-on-windows-mingw) 때문에 – Antonio

+0

@skm 때문에 요청합니다. 아마도 PNG_LIBRARY 변수를 빈 값으로 설정하는 것으로 충분할 것입니다. 'cmake-gui '에서 액세스 할 수 있습니다. – Antonio