delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/05/31/08:24:50

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A0E5384F039
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1622463885;
bh=P5UPSYBkz8FI67XxeCQiyLPU+WcxgDqW9F2XTaMC4mc=;
h=Subject:To:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=IVCb/3Rxf9tLpRhr/LReQhoyotNleJR21wp/8GdCiqKWdNnk9HYHvFOK5RV5gKYKI
oITQVwpz4wvuSmZVG7D1uu4Zt7+zpii8xpf8+6V+slJ2qqfZkeGnRb+pBkh4AzETs+
cO5eOvdFKj/U6dHuDAOuxEnLnCPI0zxDv4Era5R8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8230B3850430
x-libjamoibt: 1601
X-CNFS-Analysis: v=2.4 cv=KrWIZUaN c=1 sm=1 tr=0 ts=60b4d588 cx=a_exe
a=1WLnVPzqWix1BVpPO9LL0Q==:117 a=1WLnVPzqWix1BVpPO9LL0Q==:17
a=IkcTkHD0fZMA:10 a=9-sD3SDyAAAA:20 a=6DyHKSpMfnJMvEzxL4oA:9
a=QEXdDO2ut3YA:10 a=aIcnEQNCa7ZOrDpjgBRU:22 a=pHzHmUro8NiASowvMSCR:22
a=xoEH_sTeL_Rfw54TyV31:22
Subject: deploy Nedit and Xnedit
To: cygwin AT cygwin DOT com
Message-ID: <ddee2f07-e4df-de1a-c67d-7589a15c2508@iol.it>
Date: Mon, 31 May 2021 14:24:39 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.7.1
MIME-Version: 1.0
X-CMAE-Envelope: MS4xfEBFd5ckAgCMWqjCqFMaHZpJyWQaKwvtvneSMAuuHIdOT5Cn7QPNk/asEr9AMGRBJPmGy9nZa5vewgfE9TjvZFVu7dgEcwkdpxtkfv0kKctWEUHrvhWW
JyfL3lsHX5/fS6KyF0pWAw1k1/qnGJ3ZedQ7O+L/WVZ7W3V06PRaW65HygGA7a50qyoqlvJ8TVDSFg==
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_PASS, SPF_PASS 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Valerio Messina via Cygwin <cygwin AT cygwin DOT com>
Reply-To: efa AT iol DOT it
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

hi,
I want to create a Win64 package of Nedit and Xnedit [1], with the 
minimum set of file dependencies, to be distributed on systems that does 
not have Cygwin installed (mainly for users that do not know well *ix)

Both applications depend on same libraries, but the second one has 
Unicode support. Both applications depend on Motif as Toolkit.

Nedit work in Cygwin as expected as is a Cygwin package.
I can successfully build Xnedit (with a little patch) in Cygwin and work 
very well inside Cygwin.

Using ldd I can successfully create a CMD sandbox package of Nedit that 
do not complaint for missing DLL dependencies.
The same for Xnedit, I can generate the same package.

To both I added:
.\fonts.conf
.\xkeysymdb
.\sh.exe (and its deps)

and created a script that define a minimum of env variables:
PATH=.
HOME=.
FONTCONFIG_PATH=.
XDG_DATA_HOME=.
XDG_CONFIG_HOME=.
XKEYSYMDB=.\xkeysymdb
DISPLAY=localhost:0.0
NEDIT_HOME=.


Running Nedit in the CMD sandbox I got this error:
X Error:  BadAlloc
   Request Major code 53 ()
   Error Serial #2732
   Current Serial #2752

while running Xnedit I got this error:
Cannot open default font

with Xnedit is XftFontOpenName() that fail, see text.c in line 824


I also copied fonts files in:
.\usr\share\fonts\dejavu
(where is pointing fonts.conf)
but the errors are the same.


Then I created a .Xresources file with:
nedit*faceName: Monospace
OR
nedit*faceName: DejaVuSansMono
and load it with:
$ xrdb -merge .Xresources
than check is loaded with:
$ xrdb -q
Same errors.


I saw that fc-match in Cygwin results in:
$ fc-match mono
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

while in the CMD sandbox show no output.

There must still be some fontconfig configuration files that I forgot.
I would be very grateful to someone who knows how fontconfig works to 
support me in creating these packages.


I looked in FAQ and Documentation but I do not found nothing specific.
Where can I find documentation on deploy a Cygwin build application and 
package that with all its the dependencies?



[1] https://github.com/unixwork/xnedit

thank you,
-- 
Valerio

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019