Hi,

   I am getting some error while trying to build library on my Linux
system, I have installed all the dependencies required, but can get through
the error below

[ 43%] Building CXX object
src/CMakeFiles/podofo_static.dir/doc/PdfFontMetricsBase14.cpp.o
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:80:24:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
    return widths_table[static_cast<unsigned int>(nGlyphId)].width;
           ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:90:33:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
    double dWidth = widths_table[static_cast<unsigned int>(GetGlyphId(c)
)].width;
                    ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:100:26:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
    dWidth = widths_table[static_cast<unsigned int>(GetGlyphIdUnicode(c)
)].width;
             ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:181:32:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
    for(int i = 0; widths_table[i].unicode != 0xFFFF ; ++i)
                   ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:183:25:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
        if (widths_table[i].unicode == lUnicode)
            ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:207:32:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
    for(int i = 0; widths_table[i].unicode != 0xFFFF  ; ++i)
                   ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:209:25:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
        if (widths_table[i].char_cd == charId)
            ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:245:51:
error:
      subscript of pointer to incomplete type 'const
PoDoFo::PODOFO_CharData'
                list.push_back( PdfVariant(  double(widths_table[i].width)
 ) );
                                                    ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8:
note:
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
8 errors generated.
make[2]: ***
[src/CMakeFiles/podofo_static.dir/doc/PdfFontMetricsBase14.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/podofo_static.dir/all] Error 2
make: *** [all] Error 2


Any help would be very appreciated.

Thanks.
Hi,

   I am getting some error while trying to build library on my Mac system, I have installed all the dependencies required, but can get through the error below

[ 43%] Building CXX object src/CMakeFiles/podofo_static.dir/doc/PdfFontMetricsBase14.cpp.o
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:80:24: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
    return widths_table[static_cast<unsigned int>(nGlyphId)].width; 
           ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:90:33: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
    double dWidth = widths_table[static_cast<unsigned int>(GetGlyphId(c) )].width;
                    ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:100:26: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
    dWidth = widths_table[static_cast<unsigned int>(GetGlyphIdUnicode(c) )].width;
             ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:181:32: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
    for(int i = 0; widths_table[i].unicode != 0xFFFF ; ++i)
                   ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:183:25: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
        if (widths_table[i].unicode == lUnicode) 
            ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:207:32: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
    for(int i = 0; widths_table[i].unicode != 0xFFFF  ; ++i)
                   ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:209:25: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
        if (widths_table[i].char_cd == charId) 
            ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.cpp:245:51: error: 
      subscript of pointer to incomplete type 'const PoDoFo::PODOFO_CharData'
                list.push_back( PdfVariant(  double(widths_table[i].width)  ) );
                                                    ~~~~~~~~~~~~^
/Users/admin/Documents/PDFEditor/Resources/podofo-lib/podofo/src/doc/PdfFontMetricsBase14.h:39:8: note: 
      forward declaration of 'PoDoFo::PODOFO_CharData'
struct PODOFO_CharData;
       ^
8 errors generated.
make[2]: *** [src/CMakeFiles/podofo_static.dir/doc/PdfFontMetricsBase14.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/podofo_static.dir/all] Error 2
make: *** [all] Error 2


Any help would be very appreciated.

Thanks.

_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to