Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-15 Thread Marco Atzeri via Cygwin
On 15.05.2020 20:17, Jim Garrison via Cygwin wrote: On 5/14/2020 5:23 PM, René Berber via Cygwin wrote: [snip] if os.name == 'nt': libname = 'liblept-5' os.environ['PATH'] = shim_paths_with_program_files() Notice this change in search path, dll files in Windows are executables and

Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-15 Thread Jim Garrison via Cygwin
On 5/14/2020 6:45 PM, Marco Atzeri via Cygwin wrote: > Am 15.05.2020 um 00:50 schrieb Jim Garrison via Cygwin: >> The magic incantation necessary to get strdup turns out to be - >> D_GNU_SOURCE, as noted on StackOverflow. [xnip] > > where are you looking for ? > Have you installed libleptonica_5 a

Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-15 Thread Jim Garrison via Cygwin
On 5/14/2020 5:23 PM, René Berber via Cygwin wrote: [snip] >> if os.name == 'nt': >> libname = 'liblept-5' >> os.environ['PATH'] = shim_paths_with_program_files() > > Notice this change in search path, dll files in Windows are executables > and they are (must) installed in the system PAT

Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-14 Thread Marco Atzeri via Cygwin
Am 15.05.2020 um 00:50 schrieb Jim Garrison via Cygwin: The magic incantation necessary to get strdup turns out to be - D_GNU_SOURCE, as noted on StackOverflow. However, now I'm encountering a problem with Python's DLL handling code. When attempting to run OCRmyPDF I get $ ocrmypdf --help Tr

Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-14 Thread René Berber via Cygwin
On 5/14/2020 5:50 PM, Jim Garrison via Cygwin wrote: The magic incantation necessary to get strdup turns out to be - D_GNU_SOURCE, as noted on StackOverflow. However, now I'm encountering a problem with Python's DLL handling code. When attempting to run OCRmyPDF I get [snip] line 18, in

Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-14 Thread Jim Garrison via Cygwin
The magic incantation necessary to get strdup turns out to be - D_GNU_SOURCE, as noted on StackOverflow. However, now I'm encountering a problem with Python's DLL handling code. When attempting to run OCRmyPDF I get $ ocrmypdf --help Traceback (most recent call last): File "/usr/bin/ocrmypdf

Trying to build OCRmyPDF under Cygwin, hit a brick wall

2020-05-14 Thread Jim Garrison via Cygwin
I'm trying to build OCRmyPDF under Cygwin and have run into a brick wall. While I've been a developer my entire career, I've worked mostly in Java and have little knowledge of Python internals and C++. The problem might be obvious to an expert in these areas but I'm stumped. OCRmyPDF on Linux inst