Hello!
When building PoDoFo get an error here (compiler mingw-w64).
How to fix it?

D:\>cd D:\MGW32\podofo32\podofo-build

D:\MGW32\podofo32\podofo-build>cmake -G "MinGW Makefiles"
-DCMAKE_INCLUDE_PATH=D
:\MGW32\GnuWin32\include -DCMAKE_LIBRARY_PATH=D:\MGW32\GnuWin32\lib
-DPODOFO_BUI
LD_SHARED:BOOL=FALSE ..
-- The C compiler identification is GNU 5.1.0
-- The CXX compiler identification is GNU 5.1.0
-- Check for working C compiler: D:/MGW64/mingw64/bin/gcc.exe
-- Check for working C compiler: D:/MGW64/mingw64/bin/gcc.exe -- 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: D:/MGW64/mingw64/bin/g++.exe
-- Check for working CXX compiler: D:/MGW64/mingw64/bin/g++.exe -- 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 C:/Program Files (x86)/PoDoFo/lib
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - not found
-- Looking for winsock2.h
-- Looking for winsock2.h - found
-- Looking for mem.h
-- Looking for mem.h - 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 - 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: D:/MGW32/GnuWin32/lib/zlib.lib
Found zlib headers in D:/MGW32/GnuWin32/include, library at
D:/MGW32/GnuWin32/li
b/zlib.lib
-- Found LIBCRYPTO: D:/MGW32/GnuWin32/lib/libcrypto.a
Found OpenSSL's libCrypto headers in D:/MGW32/GnuWin32/include, library at
D:/MG
W32/GnuWin32/lib/libcrypto.a
-- Could NOT find LIBIDN (missing:  LIBIDN_LIBRARY LIBIDN_INCLUDE_DIR)
Libidn not found. AES-256 Encryption support will be disabled
-- Found LIBJPEG: D:/MGW32/GnuWin32/lib/libjpeg.dll.a
Found libjpeg headers in D:/MGW32/GnuWin32/include, library at
D:/MGW32/GnuWin32
/lib/libjpeg.dll.a
-- Found TIFF: D:/MGW32/GnuWin32/lib/libtiff.dll.a
Found libtiff headers in D:/MGW32/GnuWin32/include, library at
D:/MGW32/GnuWin32
/lib/libtiff.dll.a
-- Found ZLIB: D:/MGW32/GnuWin32/lib/zlib.lib (found version "1.2.3")
-- Found PNG: D:/MGW32/GnuWin32/lib/libpng.dll.a (found version "1.2.37")
Found LibPng headers in
D:/MGW32/GnuWin32/include;D:/MGW32/GnuWin32/include, lib
rary at D:/MGW32/GnuWin32/lib/libpng.dll.a;D:/MGW32/GnuWin32/lib/zlib.lib
-- Ensure you cppunit installed version is at least 1.12.0
Cppunit not found. No unit tests will be built.
-- Found OpenSSL: D:/MGW32/GnuWin32/lib/libssl.a
Found freetype library at D:/MGW32/GnuWin32/lib/libfreetype.dll.a, headers
D:/MG
W32/GnuWin32/include/freetype2;D:/MGW32/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 - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
Building shared PoDoFo library
-- Configuring done
-- Generating done
-- Build files have been written to: D:/MGW32/podofo32/podofo-build

D:\MGW32\podofo32\podofo-build>mingw32-make
Scanning dependencies of target podofo_shared
[  0%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfArray.cpp.ob
j
[  1%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfCanvas.cpp.o
bj
[  1%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfColor.cpp.ob
j
[  2%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfContentsToke
nizer.cpp.obj
[  3%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfData.cpp.obj

[  3%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfDataType.cpp
.obj
[  4%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfDate.cpp.obj

[  4%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfDictionary.c
pp.obj
[  5%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfEncoding.cpp
.obj
[  6%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfEncodingFact
ory.cpp.obj
[  6%] Building CXX object
src/CMakeFiles/podofo_shared.dir/base/PdfEncrypt.cpp.
obj
In file included from
D:/MGW64/mingw64/x86_64-w64-mingw32/include/windows.h:95:0
,
                 from
D:/MGW64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23,

                 from
D:\MGW32\podofo32\src\base\PdfCompilerCompatPrivate.h:35,
                 from D:\MGW32\podofo32\src\base\PdfDefinesPrivate.h:9,
                 from D:\MGW32\podofo32\src\base\PdfEncrypt.cpp:30:
D:/MGW32/GnuWin32/include/openssl/ossl_typ.h:176:33: error: expected ')'
before
numeric constant
 typedef struct ocsp_response_st OCSP_RESPONSE;
                                                  ^
src\CMakeFiles\podofo_shared.dir\build.make:312: recipe for target
'src/CMakeFil
es/podofo_shared.dir/base/PdfEncrypt.cpp.obj' failed
mingw32-make[2]: ***
[src/CMakeFiles/podofo_shared.dir/base/PdfEncrypt.cpp.obj]
Error 1
CMakeFiles\Makefile2:116: recipe for target
'src/CMakeFiles/podofo_shared.dir/al
l' failed
mingw32-make[1]: *** [src/CMakeFiles/podofo_shared.dir/all] Error 2
makefile:126: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

D:\MGW32\podofo32\podofo-build>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to