Cannot compile: missing X11 library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wargus |
Fix Released
|
Medium
|
Pali |
Bug Description
Hello
I am trying to compile Wargus (latest version, from 24/11, 2.2.6, both stratagus and wargus) on Fedora 16, but it gave me errors, after the "cmake .."
$ make
Scanning dependencies of target pudconvert
[ 14%] Building C object CMakeFiles/
[ 28%] Building C object CMakeFiles/
Linking C executable pudconvert
[ 28%] Built target pudconvert
Scanning dependencies of target wargus
[ 42%] Building C object CMakeFiles/
Linking C executable wargus
/usr/bin/ld: CMakeFiles/
/usr/bin/ld: note: 'XOpenDisplay' is defined in DSO /usr/lib64/
/usr/lib64/
collect2: ld returned 1 exit status
make[2]: ** [wargus] Erro 1
make[1]: ** [CMakeFiles/
make: ** [all] Erro 2
Is there anything I can do? My libX11:
$ rpm -qa | grep libX11
libX11-
libX11-
libX11-
libX11-
Related branches
summary: |
- Cannot compile it on Fedora 16 + Cannot compile: missing X11 library |
Changed in wargus: | |
status: | In Progress → Fix Committed |
Changed in wargus: | |
milestone: | none → 2.2.7 |
Changed in wargus: | |
status: | Fix Committed → Fix Released |
I put cmake on debug mode, so it showed me the line where the error occurred:
/usr/lib64/ ccache/ gcc CMakeFiles/ wargus. dir/wargus. c.o -o wargus -rdynamic -lfreetype -lglib-2.0 -lgobject-2.0 -lgdk_pixbuf-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0 -lcairo -lpango-1.0 -latk-1.0
Adding -lX11 solved the issue:
/usr/lib64/ ccache/ gcc CMakeFiles/ wargus. dir/wargus. c.o -o wargus -rdynamic -lfreetype -lglib-2.0 -lgobject-2.0 -lgdk_pixbuf-2.0 -lgdk-x11-2.0 -lgtk-x11-2.0 -lcairo -lpango-1.0 -latk-1.0 -lX11