I have compiled XEmacs with support for CDE Drag and Drop.
To do that, I had to manually edit the GNUmakefile under src/ generated
by the
configure script.
In
ld_libs_all=-lXm -lXaw -ltiff -lpng -ljpeg -lz -lXpm -lDtSvc -ltt -lXmu
-lXt -lXext -lX11 -lSM -lICE -lgdbm_compat -lgdbm -lncurses -ltinfo -lm
I had to insert DtXinerama
ld_libs_all=-lXm -lXaw -ltiff -lpng -ljpeg -lz -lXpm -lDtSvc -ltt
-lDtXinerama -lXmu -lXt -lXext -lX11 -lSM -lICE -lgdbm_compat -lgdbm
-lncurses -ltinfo -lm
After that, XEmacs built successfully. I have checked that in my case,
it was possible
to drag and drop text files into XEmacs. The file would then open in a
tab. This worked
for both ISO8859-1 and UTF8 encoded files.
Le 16/12/2025 à 19:54, Edmond Orignac via cdesktopenv-devel a écrit :
Hi Jürgen,
I tried your command, but on my computer the configure script stops
with an error
checking for tt_c.h... yes
checking for tt_message_create in -ltt... no
checking for tt_message_create in -ltt... (cached) no
checking for tt_message_create in -ltt... (cached) no
./configure: Usage error:
Unable to find required tooltalk libraries.
So the bug in the detection of tt_c.h is addressed, but the next bug
in detection of libtt
is triggered: the configure script does not include the X libraries
after -ltt
After changing
LIBS="-ltt $extra_libs $LIBS"
to
LIBS=" -L/usr/dt/lib -ltt -lXmu -lXt -lXext -lX11 -lSM -lICE -ltirpc
$extra_libs $LIBS"
the configure script proceeds. The command I used was
LDFLAGS="-L/usr/dt/lib" CPPFLAGS="-I/usr/dt/include/Tt
-I/usr/dt/include -I/usr/include/tirpc" ./configure --with-dragndrop
--with-cde --with-tooltalk
I have found that it was necessary to add --with-dragndrop to enable
CDE drag and drop.
Now that I have a Makefile, I will check if the build succeeds.
Thanks for your suggestion,
Best
Edmond
Le 16/12/2025 à 12:55, Jürgen Mayerhofer a écrit :
Hi Edmond,
I was successful in building xemacs with:
CPPFLAGS="-I/usr/dt/include/Tt -I/usr/dt/include
-I/usr/include/tirpc" ./configure --with-cde
But I was not successful to get any drag and drop features in it.
The command above builds emacs without motif on my system, instead
Xaw is used.
If you want motif: use --with-widgets=motif
But this gives me tons of GC errors and wron colors in menus... :-(
Best regards,
Jürgen.
Am 13.12.25 um 21:53 schrieb Edmond Orignac via cdesktopenv-devel:
This is only tangentially related with CDE development, but I have
tried to
build XEmacs from
https://foss.heptapod.net/xemacs/xemacs/-/tree/branch/default
with CDE drag and drop. I am using CDE 2.5.3 on Ubuntu 22.04.
The configure script fails to find /usr/dt/include/Tt/tt_c.h
I would like to know if other CDE users have tried to build XEmacs
with CDE Drag and Drop with different Linux distributions or the
BSDs or OpenIndiana and if they have been successful.
Below some details of what I have tried.
I have first used ./configure --with-cde without success.
I have then tried various options
./configure
--with-site-includes=/usr/dt/include/Dt/:/usr/dt/include/Tt/
--with-site-libraries=/usr/dt/lib/ --with-cde
./configure --with-site-includes=/usr/dt/include/ --with-dragndrop
--with-cde --with-tooltalk
./configure --with-site-prefixes=/usr:/usr/dt
--with-site-includes=/usr/dt/include/Tt/ --with-dragndrop
--with-cde --with-tooltalk
./configure --with-widgets=motif --with-cde
--with-site-prefixes=/usr/dt
--x-includes=/usr/include/X11/:/usr/dt/include/
The configure script always stopped with
checking for tt_c.h... no
checking for Tt/tt_c.h... no
checking for desktop/tt_c.h... no
./configure: Usage error:
Unable to find required tooltalk header files.
Use `./configure --help' to show usage.
The lines in the script that attempt to find tooltalk header files are:
if test "$with_tooltalk" != "no" ; then
for dir in "" "Tt/" "desktop/" ; do
as_ac_Header=`printf "%s\n" "ac_cv_header_${dir}tt_c.h" |
$as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "${dir}tt_c.h"
"$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
tt_c_h_file="${dir}tt_c.h"; break
fi
done
if test -z "$tt_c_h_file"; then
if test "$with_tooltalk" = "yes"; then
(echo "$progname: Usage error:"
echo " " "Unable to find required tooltalk header files."
echo " Use \`$progname --help' to show usage.") >&2 && exit 1
fi
I have tried to replace in the configure script
for dir in "" "Tt/" "desktop/" ; do
with for dir in "/usr/dt/include/" "/usr/dt/include/Tt/"
"/usr/share/dt/include/Tt" ; do
but the error was unchanged with
checking for /usr/dt/include/tt_c.h... no
checking for /usr/dt/include/Tt/tt_c.h... no
checking for /usr/share/dt/include/Tt/tt_c.h... no
I assume the configure script that ships with XEmacs has a bug in
ac_fn_c_check_header_compile, but it might also be a problem
specific to Ubuntu.
_______________________________________________
cdesktopenv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
_______________________________________________
cdesktopenv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
_______________________________________________
cdesktopenv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel