public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* deploy Nedit and Xnedit
@ 2021-05-31 12:24 Valerio Messina
  0 siblings, 0 replies; only message in thread
From: Valerio Messina @ 2021-05-31 12:24 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-31 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 12:24 deploy Nedit and Xnedit Valerio Messina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).