Page 1 of 1

Compiling Xystray for MX Linux?

Posted: Sun Feb 04, 2024 5:24 am
by amlug
I want to replace Stalonetray with Xystray, a simple systray (notification area) for XWindow system.
https://steelman.github.io/xystray/

GitHub
https://github.com/steelman/xystray

It says installation is simple: download, untar, make and copy xystray where you like. But make command gives error.

Code: Select all

/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:3: xystray] Error 1
How to change LDFLAGS in MakeFile for MX Linux?

Code: Select all

LDFLAGS=-lX11 -lXt  -L/usr/X11/lib
xystray: Xystray.o xystray.o
	$(CC) $(LDFLAGS) $^ -o $@

clean:
	rm Xystray.o xystray.o

Re: Compiling Xystray for MX Linux?

Posted: Sun Feb 04, 2024 6:03 am
by gimcrack
Simple maybe in April 22, 2016 when it had it's last update. According to compile it. Only works or at least tested in FVWM. It may also run under GNOME or KDE but
the default tray programme has to be disabled then.

I look up the errors to get a base what the problem is;

/usr/bin/ld: warning: creating DT_TEXTREL in a PIE

https://stackoverflow.com/questions/766 ... el-warning

Question; which Window Manager or Environment you're using; FVWM or GNOME or KDE?

Re: Compiling Xystray for MX Linux?

Posted: Sun Feb 04, 2024 7:03 am
by amlug
gimcrack wrote: Sun Feb 04, 2024 6:03 am Question; which Window Manager or Environment you're using; FVWM or GNOME or KDE?
I am using FVWM. Stalonetray is the recommended tray but earlier trayer and xystray were common. Got interested in xystray because it can be copied anywhere, hopefully to /home/<user>/.fvwm. To become part of the user config.

On Fvwm Forum (2006), the same question was asked and the solution was to edit LDFLAGS
open “Makefile” with an editor
change the line

LDFLAGS= -lXt -lX11 -L/usr/X11/lib
to
LDFLAGS= -lXt -lX11 -L/usr/X11R6/lib
In MX, the directory is not /usr/X11R6/lib

Re: Compiling Xystray for MX Linux?

Posted: Sun Feb 04, 2024 9:28 am
by gimcrack
I did find out some issues; first need the things the xystray.c script is looking for all those #include <X11/ files.

Have to have these to even have them;

sudo apt-get install libx11-dev xserver-xorg-dev xorg-dev

Then I was able to find them at;
/usr/include/X11

find /usr/include/X11 -name Xlib.h

From there. I hope I pointed you in the right direction. If need more help. Just ask and maybe someone else will jump in to help. I always have little time to give out a full helping hand. But, will if needed. Just have to wait longer for responses for extra help from me. I'm always busy. But will help when I can.

Re: Compiling Xystray for MX Linux?

Posted: Mon Feb 05, 2024 8:41 am
by amlug
gimcrack wrote: Sun Feb 04, 2024 9:28 am From there. I hope I pointed you in the right direction.
Thanks for the direction. Several things to be taken into consideration.

Not to waste time, does xystray work or not???? Did some digging. I found rpm package by Fedora. I converted it to a deb package

Code: Select all

sudo alien --to-deb x_xystray-1.0-6.1.x86_64.rpm
Deb installation worked, as well as xystray is running. The icon apps are there but without the icon except for wifi (nm-applet). Did more search, and this is the problem. Replaced by trayer and stalonetray.

If something comes up, I will come back.