politza / pdf-tools

Emacs support library for PDF files.
GNU General Public License v3.0
1.57k stars 162 forks source link

pdf-tools-install throws error with poppler #575

Closed AtomicNess123 closed 4 years ago

AtomicNess123 commented 4 years ago

When I run pdf-tools-install, it is giving me this error:

poppler-hack.cc:62:30: error: no member named 'getCString' in 'GooString'
      result = g_convert (s->getCString () + 2,
                          ~  ^
poppler-hack.cc:88:16: error: cannot initialize a variable of type 'GooString *' with an rvalue of
      type 'const GooString *'
    GooString *state = a->annot->getAppearState ();
               ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler-hack.cc:108:19: error: assigning to 'GooString *' from incompatible type 'const GooString *'
    text = annot->getDate ();
           ~~~~~~~^~~~~~~~~~
3 errors generated.
make[1]: *** [epdfinfo-poppler-hack.o] Error 1
make: *** [all] Error 2
===========================
     Build failed.  ;o(    
===========================
Note: maybe try the '-d' option.

Comint exited abnormally with code 1 at Wed May 20 06:13:21

Any ideas much welcome, GM

politza commented 4 years ago

Update pdf-tools, restart Emacs.

AtomicNess123 commented 4 years ago

Silly me... it worked!