Hi Wim,

I have never tried to build PoDoFo with MinGW, but just tried to build current 
trunk with Visual Studio 2005. VC did not give any compilation errors.

PoDoFo requires a unicode enabled STL (for filestreams) on Windows. I do not 
know wether this is supported by MinGW.

regards,
        Dom

Am Dienstag, 30. Dezember 2008 schrieb Wim Vandenhende:
> I'm trying to build PoDoFo with MinGW in MSYS.
> I run cmake as follows:
>
> cmake -G "MSYS Makefiles" ../podofo-svn
> -DCMAKE_INCLUDE_PATH=/c/gnuwin32/include
> -DCMAKE_LIBRARY_PATH=/c/gnuwin32/lib
>  -DPODOFO_BUILD_STATIC:BOOL=TRUE -DCMAKE_INSTALL_PREFIX=/c/podofo
>
>
> -DPODOFO_BUILD_SHARED:BOOL=FALSE as mentioned in the README does not
> work. It still wants to build the shared lib.
>
> This works, so I run mingw32-make.
> All fine until 39%:
>
> [ 39%] Building CXX object
> src/CMakeFiles/podofo_static.dir/PdfInputDevice.cpp.obj
> c:/podofo/podofo-svn/src/PdfInputDevice.cpp: In constructor
> `PoDoFo::PdfInputDevice::PdfInputDevice(const wchar_t*)':
> c:/podofo/podofo-svn/src/PdfInputDevice.cpp:72: error: no matching
> function for call to `std::basic_ifstream<char, std::char_traits<char>
>
>  >::basic_ifstream(const wchar_t*&, const std::_Ios_Openmode&)'
>
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iosfwd:
>90: note: candidates are: std::basic_ifstream<char, std::char_traits<char>
>
>  >::basic_ifstream(const std::basic_ifstream<char,
>
> std::char_traits<char> >&)
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/fstream
>:524: note:                 std::basic_ifstream<_CharT,
> _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT =
> char, _Traits = std::char_traits<char>]
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/fstream
>:509: note:                 std::basic_ifstream<_CharT,
> _Traits>::basic_ifstream() [with _CharT = char, _Traits =
> std::char_traits<char>]
> mingw32-make[2]: ***
> [src/CMakeFiles/podofo_static.dir/PdfInputDevice.cpp.obj] Error 1
> mingw32-make[1]: *** [src/CMakeFiles/podofo_static.dir/all] Error 2
> mingw32-make: *** [all] Error
>
>
> Same happens when running cmake with "MinGW Makefiles", then
> mingw32-make in a normal command prompt.
>
> What's the cause of this? Looks it has something to do with
> unicode/wchar_t. Would it be missing in MinGW?
>
> Thanks.



-- 
**********************************************************************
Dominik Seichter - [email protected]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to