xeyownt / xseticon

xseticon from Paul Evans -- http://www.leonerd.org.uk/
GNU General Public License v2.0
32 stars 11 forks source link

Build error on Debian Sid #6

Closed sudormrfbin closed 4 years ago

sudormrfbin commented 4 years ago

On debian sid, compilation exits with the error:

gcc -lglib-2.0 -L /usr/X11R6/lib -lX11 -lXmu -lgd xseticon.o -o xseticon
/usr/bin/ld: xseticon.o: in function `Window_With_Name':
xseticon.c:(.text+0x210): undefined reference to `XFetchName'
/usr/bin/ld: xseticon.c:(.text+0x25a): undefined reference to `XQueryTree'
/usr/bin/ld: xseticon.c:(.text+0x2c6): undefined reference to `XFree'
/usr/bin/ld: xseticon.o: in function `Select_Window_Mouse':
xseticon.c:(.text+0x5a3): undefined reference to `XCreateFontCursor'
/usr/bin/ld: xseticon.c:(.text+0x5dc): undefined reference to `XGrabPointer'
/usr/bin/ld: xseticon.c:(.text+0x619): undefined reference to `XAllowEvents'
/usr/bin/ld: xseticon.c:(.text+0x63b): undefined reference to `XWindowEvent'
/usr/bin/ld: xseticon.c:(.text+0x6a8): undefined reference to `XUngrabPointer'
/usr/bin/ld: xseticon.o: in function `load_icon':
xseticon.c:(.text+0x72d): undefined reference to `gdImageCreateFromPng'
/usr/bin/ld: xseticon.c:(.text+0x799): undefined reference to `g_malloc0_n'
/usr/bin/ld: xseticon.c:(.text+0x837): undefined reference to `gdImageGetPixel'
/usr/bin/ld: xseticon.c:(.text+0x961): undefined reference to `gdImageDestroy'
/usr/bin/ld: xseticon.o: in function `main':
xseticon.c:(.text+0xa22): undefined reference to `XOpenDisplay'
/usr/bin/ld: xseticon.c:(.text+0xa4a): undefined reference to `XSynchronize'
/usr/bin/ld: xseticon.c:(.text+0xae2): undefined reference to `XGetGeometry'
/usr/bin/ld: xseticon.c:(.text+0xb07): undefined reference to `XmuClientWindow'
/usr/bin/ld: xseticon.c:(.text+0xb45): undefined reference to `XInternAtom'
/usr/bin/ld: xseticon.c:(.text+0xbb4): undefined reference to `XChangeProperty'
/usr/bin/ld: xseticon.c:(.text+0xbd9): undefined reference to `XFlush'
/usr/bin/ld: xseticon.c:(.text+0xbfa): undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
make: *** [Makefile:21: xseticon] Error 1
sudormrfbin commented 4 years ago

I was trying to compile from the original source and not from this repo. I forgot that and opened an issue here. Just compiled against this repo and works fine. Sorry for the noise 🤐😅