X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14D3F3986022
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1589571302;
	bh=mwx4quMZqjmqQ5kP6926Z9+66QKTwU/soSfHofjrtXM=;
	h=Subject:References:To:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=KpKpOEJEV9G7nfjcvStm87AGpAl9m1DA1LApfomZjUL83AcoMj5sCRjLWoZkFlP5H
	 IYHnr3ND38pQqkPFzg2Ak0DhKoZMnFTg9UTxGSZ6wJHfw6oNRPvltL+DxU2ryimL3/
	 Eyeygx4Qrd6zpSTf79U/KuRr94pOQgOgIcIoOHeg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B525D383E81B
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:references:to:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=cCnOSh47ZYOJlxOjAjIc2T6UFDWggZxbDtJ0rqex0R8=;
 b=cBJOwvFE8D6g1sE98JQyquNlyXdtr+cElwWHAuO/e8TYZeHd/sHZB7S8YYwJoe+Wgr
 uxvlyv6aAPVcVsbtNf3mQGRlUMsuZiEPLA6Va0d7G1uuN7/N3lSecScG9UNP6HEIYZtn
 Mwn1JzJ6VTzGTZox25v2htRiUUuMfBfwgenJxuegNr/5dK0F7I2MjuZMBgucMiqDb3/B
 +Jpz/W3HzITiWQzapvrkv/StM5i+xGEh3rAPvbb+nm5UYV8YKBvQ6irChX+CBxK7q6dH
 6Bd1/yQ0GGR7G72uXwhy6bOKuRBmk1FURW2BLaIi90NyWs8oXIkFQE/AwBU29mH+QTCK
 tTdA==
X-Gm-Message-State: AOAM531R8r5/FmTllXiuHkiqBcE2KF9y8lK669d8vQogqXW58OWzCLPN
 GgTyC1aMfWpiwUsJmGACmX7V96UG
X-Google-Smtp-Source: ABdhPJwnysqijd442JPBE5LakwEZLD6tQVeez1oQNvTkmjrp+G51khOimc6Ph04Nu/4XK1lp5FVeZg==
X-Received: by 2002:a7b:c62a:: with SMTP id p10mr5194261wmk.143.1589571285492; 
 Fri, 15 May 2020 12:34:45 -0700 (PDT)
Subject: Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall
References: <0d9b4a1b-05ba-8ab1-3783-c3d1f04f97b7@gmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
X-Forwarded-Message-Id: <0d9b4a1b-05ba-8ab1-3783-c3d1f04f97b7@gmail.com>
Message-ID: <ab48db16-b44b-1c89-284c-3043e9441bf4@gmail.com>
Date: Fri, 15 May 2020 21:34:44 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
 Thunderbird/68.8.0
MIME-Version: 1.0
In-Reply-To: <0d9b4a1b-05ba-8ab1-3783-c3d1f04f97b7@gmail.com>
Content-Language: it
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04FJZT8L006665


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 they are (must) installed in the system PATH (or the current
>> directory).
> 
> $PATH contains /usr/bin
> 
>> Either that or python needs the symbols file, like the linker, which in
>> this case would be /usr/lib/liblept.dll.a, which is in the -devel
>> package, but I doubt it.
> 
> Installing the -devel package, and undoing my "fix" to leptonica.py
> fixed the problem.  I guess I'm now going to have to learn how to
> build a Cygwin package for it.

the usage of import library for linking a library is very standard,
not really Cygwin specific.

headers and import library are almost every time in the libXXX-devel.
In the doubt you can look at the source package info:

https://cygwin.com/packages/summary/leptonica-src.html

> Unfortunately I didn't realize how involved building it on Cygwin was
> going to be and that it would be worth documenting, so I didn't keep
> track of everything I had to do (sigh!)

building for Cygwin is a Unix-like exercise.
May be you started with a Windows-like view ?

> 
> How would I gauge interest in having a Cygwin version of OCRmyPDF?
> 

from the list at
https://ocrmypdf.readthedocs.io/en/latest/installation.html#installing-with-python-pip

     ghostscript \
     libexempi3 \
     libffi6 \
     pngquant \
     python3.6 \
     qpdf \
     tesseract-ocr \
     unpaper


the only package NOT available on Cygwin is "unpaper"

Regards
Marco


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

