attah / ppm2pwg

Misc printing utilities
GNU General Public License v3.0
18 stars 9 forks source link

undefined reference to `poppler_document_new_from_fd' #17

Closed bdantas closed 1 year ago

bdantas commented 1 year ago

I'm trying to compile pdf2printable on Tiny Core Linux, using poppler 23.09.0.

After I install all dependencies, the make step fails:

$ git clone https://github.com/attah/ppm2pwg.git
$ cd ppm2pwg
$ git clone https://github.com/attah/bytestream.git
$ make pdf2printable
---snip---
/usr/local/bin/ld: /tmp/ccNWELeR.ltrans1.ltrans.o: in function `pdf_to_printable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::function<bool (unsigned char const*, unsigned int)>, PrintParameters const&, std::function<void (unsigned long, unsigned long)>, bool)':
<artificial>:(.text+0x60db): undefined reference to `poppler_document_new_from_fd'
collect2: error: ld returned 1 exit status
make: *** [Makefile:25: pdf2printable] Error 1

Any ideas how to move past this error?

bdantas commented 1 year ago

poppler21 and poppler23 were both installed. I uninstalled poppler21 and rebooted, and now it compiles just fine. Sorry for the noise.