Thanks. I solved by compiling in this way:

g++ -std=c++11 -I /usr/local/include/podofo/doc \
                                                   -I
/usr/local/include/podofo/base -I /usr/local/include/podofo/  \
                                                   -L /usr/local/lib
docHandling.cpp -o docHandling \
                                                   -lpodofo -lfreetype
-lfontconfig -ljpeg -lz -pthread -lcrypto
Thank you

Il giorno mer 3 mar 2021 alle ore 08:04 zyx <z...@gmx.us> ha scritto:

> On Mon, 2021-03-01 at 20:21 +0100, Raphael Stonehorse wrote:
> > [100%] Linking CXX executable podofobrowser
> > /usr/local/lib/libpodofo.a(PdfEncrypt.cpp.o): In function
> > `PoDoFo::PdfEncryptMD5Base::ComputeOwnerKey(unsigned char*, unsigned
> > char*, int, int, bool, unsigned char*)':
> > PdfEncrypt.cpp:(.text+0x17f4): undefined reference to `MD5_Init'
>
>         Hi,
> it looks like it has missing openssl libraries when linking. The
> libpodofo.pc doesn't seem to advertise the openssl libraries to be
> linked (and any other PoDoFo uses), thus you need to pass them on your
> own.
>
> It can be a bug in the PoDoFo browser build script or you compiled
> PoDoFo in some other way. Do you use static or dynamic PoDoFo library?
>
> Also, I suppose you do not mix system-installed PoDoFo (which might be
> quite old) with the latest PoDoFo browser version. I did not try it,
> but I guess they are not compatible.
>         Bye,
>         zyx
>
>
>
> _______________________________________________
> 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

Reply via email to