Hi there,
I am looking to employ PoDoFo to parse pdf files on my server which uses Centos 
6, however, I am having some trouble running the helloworld example and was 
wondering if anyone could point me in the right direction?
I was able to compile the example program (helloworld.cpp) to create an 
executable without issue    $ g++ -g -Wall helloworld.cpp -lpodofo -lfreetype 
-lfontconfig -ljpeg -lz -o helloworld    $ ls    helloworld helloworld.cpp
It compiled without any warnings, but when I try to run the executable I get a 
segmentation error    $ sh -x helloworld out.pdf    helloworld: helloworld: 
cannot execute binary file
I understand that generally, this error occurs from running platform 
incompatible shared libraries but I don't think this is the case    $ uname -a  
  Linux topshelf.com 2.6.32-431.20.5.el6.x86_64 #1 SMP Fri Jul 25 08:34:44 UTC 
2014 x86_64 x86_64 x86_64 GNU/Linux    $ ldd helloworld        linux-vdso.so.1 
=>  (0x00007fff419ff000)        libpodofo.so.0.9.1 => 
/usr/lib64/libpodofo.so.0.9.1 (0x00007ff6d6bdc000)        libfreetype.so.6 => 
/usr/lib64/libfreetype.so.6 (0x00007ff6d693f000)        libfontconfig.so.1 => 
/usr/lib64/libfontconfig.so.1 (0x00007ff6d6708000)        libjpeg.so.62 => 
/usr/lib64/libjpeg.so.62 (0x00007ff6d64b8000)        libz.so.1 => 
/lib64/libz.so.1 (0x00007ff6d62a2000)        libstdc++.so.6 => 
/usr/lib64/libstdc++.so.6 (0x00007ff6d5f9b000)        libm.so.6 => 
/lib64/libm.so.6 (0x00007ff6d5d17000)        libgcc_s.so.1 => 
/lib64/libgcc_s.so.1 (0x00007ff6d5b01000)        libc.so.6 => /lib64/libc.so.6 
(0x00007ff6d576c000)        libpthread.so.0 => /lib64/libpthread.so.0 
(0x00007ff6d554f000)        libpng12.so.0 => /usr/lib64/libpng12.so.0 
(0x00007ff6d5329000)        libtiff.so.3 => /usr/lib64/libtiff.so.3 
(0x00007ff6d50c4000)        libexpat.so.1 => /lib64/libexpat.so.1 
(0x00007ff6d4e9c000)        /lib64/ld-linux-x86-64.so.2 (0x00007ff6d6f45000)
After this I am not sure where to look. I am quite new to linux and so am not 
wholly familiar about where to turn for something like this. Does anybody have 
any advice?
Thanks in advance for any help
Best regards,
David                                     
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to