Won't compile
Closed this issue · 4 comments
Can you please list dependencies? I can't seem to get it to compile. I get the following error:
gcc -Wall -std=c99 font-config-info.c -o font-config-info \
`pkg-config --cflags gconf-2.0 gtk+-2.0` \
`pkg-config --libs gconf-2.0 gtk+-2.0`
/usr/bin/ld: /tmp/cci0PMxu.o: undefined reference to symbol 'XrmGetResource'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [font-config-info] Error 1
I've updated the README file to list what I believe are the dependencies on Ubuntu Precise:
gcc
libc6-dev
libfontconfig1-dev
libgtk2.0-dev
libx11-dev
Please let me know if you still have trouble.
I had all those installed already. I'm using Ubuntu 14.04.
EDIT: Nevermind, I saw you updated the source file as well. Pulling the new version let it compile.
Hmm, I'm not sure whether the source change that I made will make a difference.
http://askubuntu.com/questions/375624/gui-libgui-ax-o-undefined-reference-to-symbol-xsetforeground-when-compiling mentions installing an xorg-dev package as well.
Otherwise, I'm curious about whether any of the following help:
- Adding "-lX11" to the gcc command in the Makefile.
- Moving "x11" to the beginning of the LIBS list in the Makefile.
Oh, whoops. Misread your comment and didn't realize that it's working now. Thanks!