Xonotic Forums
[SOLVED] NetRadiant won't compile(ubuntu 12.04) - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] NetRadiant won't compile(ubuntu 12.04) (/showthread.php?tid=3230)



NetRadiant won't compile(ubuntu 12.04) - machine! - 07-04-2012

Hi, I got problems installing NetRadiant on Ubuntu 12.04. I try to compiling the version from Xonotic's git repo.

Here is the error:

Code:
user@localhost:~/xonotic_git/xonotic/netradiant$ make
dependencies checking disabled, good luck...
cc tools/quake2/common/bspfile.c  -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -g -O -fPIC  -Itools/quake2/common -Ilibs -Iinclude   -DPOSIX -DXWINDOWS  -DRADIANT_VERSION="\"1.5.0n-git-a28eb11\"" -DRADIANT_MAJOR_VERSION="\"5\"" -DRADIANT_MINOR_VERSION="\"0\"" -DRADIANT_ABOUTMSG="\"Custom build\"" -DQ3MAP_VERSION="\"2.5.17n-git-a28eb11\"" -DRADIANT_EXECUTABLE="\"x86\""  -c -o tools/quake2/common/bspfile.o
In file included from tools/quake2/common/bspfile.c:26:0:
tools/quake2/common/inout.h:26:25: fatal error: libxml/tree.h: No such file or directory
compilation terminated.
make: *** [tools/quake2/common/bspfile.o] Error 1

Would be glad to get some help.


RE: NetRadiant won't compile(ubuntu 12.04) - Mr. Bougo - 07-04-2012

Install libxml, you're missing that dependency. Usually you should read the last few lines, see what .h file is missing, and look for the package that provides it. In ubuntu, that would be libxml-dev.


RE: NetRadiant won't compile(ubuntu 12.04) - machine! - 07-04-2012

Thanks, sorry for not reading it carefully enough!


RE: NetRadiant won't compile(ubuntu 12.04) - Maddin - 07-05-2012

Heh, yeah the dependencies are missing... I forgot that each time I installed NetRadiant.Rolleyes


RE: NetRadiant won't compile(ubuntu 12.04) - machine! - 07-06-2012

Hmm, I can't find any libxml-dev in ubuntu's repos...


RE: NetRadiant won't compile(ubuntu 12.04) - Maddin - 07-06-2012

Although these arenĀ“t all necessary for NetRdaiant but for Xonotic Git install those:
Code:
sudo apt-get install build-essential xserver-xorg-dev x11proto-xf86dri-dev x11proto-xf86dga-dev x11proto-xf86vidmode-dev libxxf86dga-dev libxcb-xf86dri0-dev libxpm-dev libxxf86vm-dev libsdl1.2-dev libsdl-image1.2-dev libclalsadrv-dev libasound2-dev libxext-dev libsdl1.2debian-pulseaudio git-core unzip wget

just copy and paste Tongue

http://dev.xonotic.org/projects/3/wiki/Repository_Access


RE: NetRadiant won't compile(ubuntu 12.04) - machine! - 07-06-2012

Thanks for the help, it still don't work though :/... I've already installed all those and when I try to compile NetRadiant I get the same results as I posted in my first post...


RE: NetRadiant won't compile(ubuntu 12.04) - Mr. Bougo - 07-06-2012

Did you try to search on your own? http://packages.ubuntu.com/search?searchon=contents&keywords=libxml%2Ftree.h&mode=exactfilename&suite=precise&arch=any

EDIT: Don't install lsb-build-desktop3, that's obviously not it.
EDIT2: Also, try to undo Maddin's suggestion. Unlike you don't mind blindly installed useless packages in your system. But I guess you don't, so don't bother after all.


RE: NetRadiant won't compile(ubuntu 12.04) - machine! - 07-06-2012

(07-06-2012, 08:39 AM)Mr. Bougo Wrote: Did you try to search on your own? http://packages.ubuntu.com/search?searchon=contents&keywords=libxml%2Ftree.h&mode=exactfilename&suite=precise&arch=any

EDIT: Don't install lsb-build-desktop3, that's obviously not it.
EDIT2: Also, try to undo Maddin's suggestion. Unlike you don't mind blindly installed useless packages in your system. But I guess you don't, so don't bother after all.

Well, I am usually only installing what necessary at a minimum, but my Ubuntu install have gotten so bloated anyway so I don't really care.

Thank's, it worked. I am not that good when it comes to compiling stuff and finding dependencies etc. +1 on your rep MrBougo Smile