sethumadhavan / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

Unable to create so file #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am not able to create so file after download the apv project, mupdf 
pre-compile code, and mupdf thirdparty library files.
2. $ ndk-build
Compile thumb  : pdfview2 <= pdfview2.c
In file included from 
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:7:
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.h:10:18: error: fitz.h: No such file or directory
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.h:11:19: error: mupdf.h: No such file or directory
In file included from 
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:7:
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.h:18: error: expected specifier-qualifier-list before 'pdf_xref'
In file included from 
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:7:
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.h:47: error: expected declaration specifiers or '...' before 
'fz_bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'*' token
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'Java_cx_hell_android_pdfview_PDF_getPageCount':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:90: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'Java_cx_hell_android_pdfview_PDF_freeMemory':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:218: error: 'pdf_t' has no member named 'fileno'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:218: error: 'pdf_t' has no member named 'fileno'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'Java_cx_hell_android_pdfview_PDF_find':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:233: error: 'pdf_page' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:233: error: (Each undeclared identifier is reported only once
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:233: error: for each function it appears in.)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:233: error: 'page' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:234: error: 'fz_text_span' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:234: error: 'text_span' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:234: error: 'ln' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:235: error: 'fz_device' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:235: error: 'dev' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:238: error: 'fz_error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:238: error: expected ';' before 'error'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:253: error: 'error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:253: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:253: error: 'fz_identity' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:285: error: 'fz_bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:285: error: expected ';' before 'charbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:295: error: 'charbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:296: error: too many arguments to function 'convert_box_pdf_to_apv'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'create_pdf_t':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:551: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:552: error: 'pdf_t' has no member named 'outline'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:553: error: 'pdf_t' has no member named 'fileno'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:554: error: 'pdf_t' has no member named 'pages'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:555: error: 'pdf_t' has no member named 'glyph_cache'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'parse_pdf_file':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:615: error: 'fz_error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:615: error: expected ';' before 'error'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:617: error: 'fz_stream' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:617: error: 'file' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:624: error: 'O_BINARY' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:624: error: 'O_RDONLY' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:629: error: 'pdf_t' has no member named 'fileno'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:630: error: 'pdf_t' has no member named 'fileno'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:634: error: 'error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:634: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:635: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:648: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:650: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:663: error: 'pdf_t' has no member named 'outline'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:663: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:665: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:674: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: At top level:
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:690: error: expected ')' before '*' token
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:713: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'get_page_image_bitmap':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:780: error: 'fz_matrix' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:780: error: expected ';' before 'ctm'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:782: error: 'fz_rect' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:782: error: expected ';' before 'bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:783: error: 'fz_error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:783: error: expected ';' before 'error'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:784: error: 'pdf_page' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:784: error: 'page' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:785: error: 'fz_pixmap' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:785: error: 'image' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:787: error: 'fz_device' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:787: error: 'dev' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:793: error: 'pdf_t' has no member named 'glyph_cache'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:794: error: 'pdf_t' has no member named 'glyph_cache'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:795: error: 'pdf_t' has no member named 'glyph_cache'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:808: error: 'ctm' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:808: error: 'fz_identity' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:813: error: 'bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:832: error: 'fz_device_rgb' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:837: error: 'pdf_t' has no member named 'glyph_cache'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:838: error: 'error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:838: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'get_page_size':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:904: error: 'fz_error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:904: error: expected ';' before 'error'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:905: error: 'fz_obj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:905: error: 'pageobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:906: error: 'sizeobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:907: error: 'fz_rect' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:907: error: expected ';' before 'bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:908: error: 'rotateobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:911: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:919: error: 'bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: At top level:
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:994: error: expected declaration specifiers or '...' before 
'fz_bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c: In function 'convert_box_pdf_to_apv':
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:995: error: 'fz_error' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:995: error: expected ';' before 'error'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:996: error: 'fz_obj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:996: error: 'pageobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:997: error: 'rotateobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:998: error: 'sizeobj' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:999: error: 'fz_rect' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:999: error: expected ';' before 'page_bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1000: error: expected ';' before 'param_bbox'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1005: error: 'bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1008: error: 'param_bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1013: error: 'pdf_t' has no member named 'xref'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1017: error: 'page_bbox' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1028: error: 'fz_matrix' undeclared (first use in this function)
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1028: error: expected ';' before 'm'
C:/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/jni/pdfview
2/pdfview2.c:1029: error: 'm' undeclared (first use in this function)
make: *** 
[/cygdrive/c/Users/localization1/workspace/jackiecream-pdfview-android/pdfview/o
bj/local/armeabi/objs/pdfview2/pdfview2.o] Error 1

What is the expected output? What do you see instead?
A working so file

What version of the product are you using? On what operating system?
cygwin, eclipse, apv cloned the current version 

Please provide any additional information below.

Can someone please advise how should I fix this problem? Thanks.

Original issue reported on code.google.com by jackiecr...@gmail.com on 6 Jun 2011 at 6:47

GoogleCodeExporter commented 8 years ago
I am also not able to generate the .so files. Getting the attached errors.

Original comment by ravipog...@gmail.com on 29 Jun 2011 at 12:00

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
New build system committed to repository.  That should fix all that.

Original comment by arpruss on 24 Jul 2011 at 6:18

GoogleCodeExporter commented 8 years ago
I am also not able to generate the .so files. and getting same error as above 
described. Can someone please advise how should I fix this problem? Thanks.

Original comment by jain....@gmail.com on 3 Aug 2011 at 9:31