Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.47 KB | None | 0 0
  1. diff --git willuslib/gslpolyfit.c willuslib/gslpolyfit.c
  2. index 5d2b6fbb85..f127bf054f 100644
  3. --- willuslib/gslpolyfit.c
  4. +++ willuslib/gslpolyfit.c
  5. @@ -24,7 +24,10 @@
  6.  #include <stdlib.h>
  7.  #include "willus.h"
  8.  #ifdef HAVE_GSL_LIB
  9. -#include <gsl.h>
  10. +#include <gsl/gsl_poly.h>
  11. +#include <gsl/gsl_vector.h>
  12. +#include <gsl/gsl_multifit.h>
  13. +#include <gsl/gsl_matrix.h>
  14.  #endif
  15.  
  16.  void gslpolyfit(double *x,double *y0,int n,int d,double *c0)
  17. diff --git willuslib/bmp.c willuslib/bmp.c
  18. index 583644d565..b2c36d5673 100644
  19. --- willuslib/bmp.c
  20. +++ willuslib/bmp.c
  21. @@ -37,7 +37,7 @@
  22.  #include <jpeglib.h>
  23.  #endif
  24.  #ifdef HAVE_JASPER_LIB
  25. -#include <jasper.h>
  26. +#include <jasper/jasper.h>
  27.  #endif
  28.  
  29.  #define BOUND(x,xmin,xmax)  if ((x)<(xmin)) (x)=(xmin); else { if ((x)>(xmax)) (x)=(xmax); }
  30. diff --git willuslib/ocrtess.c willuslib/ocrtess.c
  31. index e1366e1aab..58aaf97fb9 100644
  32. --- willuslib/ocrtess.c
  33. +++ willuslib/ocrtess.c
  34. @@ -24,8 +24,9 @@
  35.  #include <stdlib.h>
  36.  #include <string.h>
  37.  #include <ctype.h>
  38. -#include <leptonica.h>
  39. -#include <tesseract.h>
  40. +#include <locale.h>
  41. +#include <leptonica/allheaders.h>
  42. +#include <tesseract/capi.h>
  43.  #include "willus.h"
  44.  
  45.  
  46. diff --git willuslib/wleptonica.c willuslib/wleptonica.c
  47. index a4e3cfd61d..a85be0949d 100644
  48. --- willuslib/wleptonica.c
  49. +++ willuslib/wleptonica.c
  50. @@ -23,7 +23,7 @@
  51.  #include "willus.h"
  52.  
  53.  #ifdef HAVE_LEPTONICA_LIB
  54. -#include <leptonica.h>
  55. +#include <leptonica/allheaders.h>
  56.  
  57.  static void wlept_pix_from_bmp(PIX **pixptr,WILLUSBITMAP *bmp);
  58.  static void wlept_bmp_from_pix(WILLUSBITMAP *bmp,PIX *pix);
  59. @@ -135,7 +135,7 @@ pixWrite("pixb.png",pixb,IFF_PNG);
  60.      dew1=dewarpCreate(pixb,1);
  61.      pixDestroy(&pixb);
  62.      dewarpaInsertDewarp(dewa,dew1);
  63. -    dewarpBuildPageModel_ex(dew1,debug,fit_order);
  64. +    dewarpBuildPageModel(dew1,debug);
  65.      if (bmp1!=NULL)
  66.          {
  67.          PIX *pix2,*pix2d;
  68.  
  69. diff --git willuslib/wmupdf.c willuslib/wmupdf.c
  70. index 81627efd4c..fcab84c1db 100644
  71. --- willuslib/wmupdf.c
  72. +++ willuslib/wmupdf.c
  73. @@ -189,8 +189,8 @@ int wmupdf_remake_pdf(char *infile,char *outfile,WPDFPAGEINFO *pageinfo,int use_
  74.      pdf_write_opts.do_compress=1;
  75.      pdf_write_opts.do_linear=0;
  76.      pdf_write_opts.do_garbage=1; /* 2 and 3 don't work for this. */
  77. -    pdf_write_opts.continue_on_error=0;
  78. -    pdf_write_opts.errors=NULL;
  79. +    //pdf_write_opts.continue_on_error=0;
  80. +    //pdf_write_opts.errors=NULL;
  81.      write_failed=0;
  82.      wpdfpageinfo_sort(pageinfo);
  83.      xref=NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement