From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 86463385AC19 for ; Fri, 15 May 2020 19:15:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 86463385AC19 Received: by mail-wr1-x431.google.com with SMTP id l18so4764326wrn.6 for ; Fri, 15 May 2020 12:15:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LEDqY+wULPrT8x19MeUdYpORkh5WdQa1jxc99f6ZWsU=; b=lBrfG2WBGJ+3WBbiE2N+fV6aBlJgNISFAXSnLkPx2frvx52IiDv2fkatCfXv8qBNGg BCrYWwoUQ38wKbW1IZDxvKMCvrmGMYfc6M5An0bcZFzDG4WPvOaKhPCFauEhb2ohirYB Afis1wNDrYmtRb2SoAyN8k7KXnKTpwfNvY22ubLW2mGcySfLAGkMhjZGLe96jlcJN+1H bw+sPozcq/mAEP2ycg/8gpSyeyc8KNqBTxXTWP+89Ff0TslQ1lUBAsDw726Cac2fJV3f dNFdZ8/tb3XvmCTcIUqPS796eE6WHzsUy/LcWhChsqex7QmRm5npHRNdq1ZYdkqzoX3C WF5A== X-Gm-Message-State: AOAM531wcNnlAxF5tFTLosD6YnOXK/fGuva2PcTCshLsRV4UwJ0jBuCj p1nGZctRqfWFTyvj1boLG5uMXWfx X-Google-Smtp-Source: ABdhPJyKM8JhHhXUTyHNZJEpHHYrmh5168LXEEkhOgudw5DT5dLDfRef9iQw24At3mJNVTVCYpyNFg== X-Received: by 2002:adf:f84c:: with SMTP id d12mr5749171wrq.248.1589570119329; Fri, 15 May 2020 12:15:19 -0700 (PDT) Received: from ?IPv6:2003:cc:9f15:487:b182:e6c5:109c:3efc? (p200300cc9f150487b182e6c5109c3efc.dip0.t-ipconnect.de. [2003:cc:9f15:487:b182:e6c5:109c:3efc]) by smtp.gmail.com with ESMTPSA id r11sm5102866wro.15.2020.05.15.12.15.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2020 12:15:18 -0700 (PDT) Subject: Re: Trying to build OCRmyPDF under Cygwin, hit a brick wall To: "cygwin-apps@cygwin.com" References: <2afedbcf-f3d7-4e96-e196-fb3091630245@jhmg.net> <514bbf03-b259-bd98-c06c-38a794e5b0af@jhmg.net> From: Marco Atzeri Message-ID: <0d9b4a1b-05ba-8ab1-3783-c3d1f04f97b7@gmail.com> Date: Fri, 15 May 2020 21:15:17 +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: <514bbf03-b259-bd98-c06c-38a794e5b0af@jhmg.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit 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-apps@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin package maintainer discussion list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2020 19:15:31 -0000 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