Pages: [1]
  Print  
Author Topic: [SOLVED] Compiling NetRadiant on Linux  (Read 18190 times)
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« on: September 12, 2010, 10:04:39 AM »

Long ago, I've decided to get rid of Windows and do my definitive transition to the Linux world.

I'm using Ubuntu Ultimate Edition 2.7. (Based IICR on Ubuntu Lucid Lynx 10.04)

I've downloaded the source code from the alientrap repository, but I have some dramas:

Code:
checking that the build tools exist
Checking for /bin/sh (bash (or another shell))... found.
Checking for echo (coreutils)... found.
Checking for echo -n (coreutils)... found.
Checking for cat (coreutils)... found.
Checking for mkdir -p (coreutils)... found.
Checking for cp (coreutils)... found.
Checking for cp -r (coreutils)... found.
Checking for rm -f (coreutils)... found.
Checking for rm -f -r (coreutils)... found.
Checking for mv (coreutils)... found.
Checking for echo test | tee /dev/stderr (coreutils)... found.
Checking for sed (sed)... found.
Checking for find (findutils)... found.
Checking for diff (diff)... found.
Checking for cc (gcc)... found.
Checking for g++ (g++)... found.
Checking for ranlib (binutils)... found.
Checking for ar (binutils)... found.
Checking for pkg-config (pkg-config)... found.
Checking for unzip (unzip)... found.
Checking for git (git-core)... found.
Checking for svn (subversion)... found.
Checking for wget (wget)... found.
Checking for ldd  (libc6)... found.
All required tools have been found!

checking that the dependencies exist
Checking for glib/gutils.h (libglib2.0-dev)... found.
Checking for libxml/xpath.h (libxml2-dev)... found.
Checking for png.h (libpng12-dev)... found.
Checking for GL/gl.h (mesa-common-dev (or another OpenGL library))... not found, please install it or set PKG_CONFIG_PATH right!
To see the failed commands, set DEPENDENCIES_CHECK=verbose
To proceed anyway, set DEPENDENCIES_CHECK=off
Checking for gtk/gtkdialog.h (libgtk2.0-dev)... found.
Checking for gtk/gtkglwidget.h (libgtkglext1-dev)... not found, please install it or set PKG_CONFIG_PATH right!
To see the failed commands, set DEPENDENCIES_CHECK=verbose
To proceed anyway, set DEPENDENCIES_CHECK=off
Checking for dlfcn.h (libc6-dev)... found.
Checking for zlib.h (zlib1g-dev)... found.
make: *** [dependencies-check] Error 1
I have installed both mesa-common-dev and libgtkglext1-dev, but I still have the same error. What am I doing wrong?

A: Purge any Nvidia driver and install the propietary one from the official Nvidia page.
« Last Edit: September 13, 2010, 03:51:32 PM by |TXC| Neon_Knight » Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Falkland
Member


Cakes 6
Posts: 590


« Reply #1 on: September 12, 2010, 10:26:33 AM »

If your system has a NVIDIA card and you are using the NVIDIA driver , you should install the nvidia-glxext-dev package ( I am not sure this is the correct name anyway )

For the other dependence it's possible that the PKG_CONFIG_PATH environment variable was not updated ... if so , just close the current terminal and then reopen a new one.

If the test still fails , then the test check doesn't recognize the version of the library ... maybe giving the command "autoconf" before the configure should solve the issue.

The source code seems to be based on a git snapshot done in July ... try to clone directly the git tree :

Code:
git clone git://git.icculus.org/divverent/netradiant.git


If this still doesn't solve the problem you could try to compile a more recent updated version of GTkRadiant available here : http://github.com/mfn/GtkRadiant

Code:
git clone git://github.com/mfn/GtkRadiant.git

If you don't have git :

Code:
sudo apt-get install git
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #2 on: September 12, 2010, 01:10:50 PM »

Looks like some missing libraries, you need some -dev packages.

libgtkglext1-dev seems one of them.

You can check netradiant wiki to see which packages are necessary to build it.
IIRC OA wiki lists Debian depedencies (they should be the same than Ubuntu so you may give it a try)
Logged

Todo: Walk the cat.
andrewj
Member


Cakes 24
Posts: 584



« Reply #3 on: September 12, 2010, 10:23:43 PM »

Quote
I have installed both mesa-common-dev and libgtkglext1-dev, but I still have the same error. What am I doing wrong?

Please run these commands and post the output.  They will list the files of the installed packages.
Code:
dpkg -L mesa-common-dev
dpkg -L libgtkglkext1-dev
Logged
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #4 on: September 13, 2010, 05:57:08 AM »

@Andrewj: These are the results:

Code:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/mesa-common-dev
/usr/share/doc/mesa-common-dev/changelog.gz
/usr/share/doc/mesa-common-dev/RELNOTES-3.3.gz
/usr/share/doc/mesa-common-dev/bugs.html
/usr/share/doc/mesa-common-dev/debugging.html
/usr/share/doc/mesa-common-dev/envvars.html
/usr/share/doc/mesa-common-dev/faq.html
/usr/share/doc/mesa-common-dev/osmesa.html
/usr/share/doc/mesa-common-dev/RELNOTES-3.1
/usr/share/doc/mesa-common-dev/RELNOTES-3.2
/usr/share/doc/mesa-common-dev/RELNOTES-3.2.1
/usr/share/doc/mesa-common-dev/RELNOTES-3.4
/usr/share/doc/mesa-common-dev/RELNOTES-3.4.1
/usr/share/doc/mesa-common-dev/RELNOTES-3.4.2
/usr/share/doc/mesa-common-dev/RELNOTES-4.1.gz
/usr/share/doc/mesa-common-dev/RELNOTES-4.0.1
/usr/share/doc/mesa-common-dev/RELNOTES-4.0.2
/usr/share/doc/mesa-common-dev/RELNOTES-4.0.3
/usr/share/doc/mesa-common-dev/RELNOTES-5.0
/usr/share/doc/mesa-common-dev/RELNOTES-5.0.1
/usr/share/doc/mesa-common-dev/RELNOTES-5.0.2
/usr/share/doc/mesa-common-dev/RELNOTES-6.0
/usr/share/doc/mesa-common-dev/RELNOTES-6.0.1
/usr/share/doc/mesa-common-dev/RELNOTES-6.1
/usr/share/doc/mesa-common-dev/RELNOTES-6.2
/usr/share/doc/mesa-common-dev/RELNOTES-6.2.1
/usr/share/doc/mesa-common-dev/RELNOTES-6.3
/usr/share/doc/mesa-common-dev/RELNOTES-6.3.1
/usr/share/doc/mesa-common-dev/RELNOTES-6.3.2
/usr/share/doc/mesa-common-dev/RELNOTES-6.4
/usr/share/doc/mesa-common-dev/relnotes-6.4.1.html
/usr/share/doc/mesa-common-dev/relnotes-6.4.2.html
/usr/share/doc/mesa-common-dev/relnotes-6.4.html
/usr/share/doc/mesa-common-dev/relnotes-6.5.1.html
/usr/share/doc/mesa-common-dev/relnotes-6.5.2.html
/usr/share/doc/mesa-common-dev/relnotes-6.5.3.html
/usr/share/doc/mesa-common-dev/relnotes-6.5.html
/usr/share/doc/mesa-common-dev/relnotes-7.0.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.0.2.html
/usr/share/doc/mesa-common-dev/relnotes-7.0.3.html
/usr/share/doc/mesa-common-dev/relnotes-7.0.4.html
/usr/share/doc/mesa-common-dev/relnotes-7.0.html
/usr/share/doc/mesa-common-dev/relnotes-7.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.2.html
/usr/share/doc/mesa-common-dev/relnotes-7.3.html
/usr/share/doc/mesa-common-dev/relnotes-7.4.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.4.2.html
/usr/share/doc/mesa-common-dev/relnotes-7.4.3.html
/usr/share/doc/mesa-common-dev/relnotes-7.4.4.html
/usr/share/doc/mesa-common-dev/relnotes-7.4.html
/usr/share/doc/mesa-common-dev/relnotes-7.5.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.5.2.html
/usr/share/doc/mesa-common-dev/relnotes-7.5.html
/usr/share/doc/mesa-common-dev/relnotes-7.6.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.6.html
/usr/share/doc/mesa-common-dev/relnotes-7.7.1.html
/usr/share/doc/mesa-common-dev/relnotes-7.7.html
/usr/share/doc/mesa-common-dev/relnotes.html
/usr/share/doc/mesa-common-dev/MESA_agp_offset.spec
/usr/share/doc/mesa-common-dev/MESA_copy_sub_buffer.spec
/usr/share/doc/mesa-common-dev/MESA_pack_invert.spec
/usr/share/doc/mesa-common-dev/MESA_pixmap_colormap.spec
/usr/share/doc/mesa-common-dev/MESA_release_buffers.spec
/usr/share/doc/mesa-common-dev/MESA_resize_buffers.spec
/usr/share/doc/mesa-common-dev/MESA_set_3dfx_mode.spec
/usr/share/doc/mesa-common-dev/MESA_swap_control.spec
/usr/share/doc/mesa-common-dev/MESA_texture_array.spec.gz
/usr/share/doc/mesa-common-dev/MESA_ycbcr_texture.spec.gz
/usr/share/doc/mesa-common-dev/MESA_window_pos.spec
/usr/share/doc/mesa-common-dev/copyright
/usr/share/doc/mesa-common-dev/changelog.Debian.gz
/usr/share/doc/mesa-common-dev/RELNOTES-3.5.gz
/usr/share/doc/mesa-common-dev/RELNOTES-4.0.gz
/usr/share/doc/mesa-common-dev/RELNOTES-5.1.gz
/usr/share/doc/mesa-common-dev/MESA_shader_debug.spec.gz
/usr/share/doc/mesa-common-dev/MESA_swap_frame_usage.spec.gz
/usr/share/doc/mesa-common-dev/MESA_texture_signed_rgba.spec.gz
/usr/include
/usr/include/GL
/usr/include/GL/gl.h
/usr/include/GL/glext.h
/usr/include/GL/gl_mangle.h
/usr/include/GL/glx.h
/usr/include/GL/glxext.h
/usr/include/GL/glx_mangle.h
/usr/include/GL/internal
/usr/include/GL/internal/dri_interface.h
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/dri.pc
----------------------------------------------------
/.
/usr
/usr/include
/usr/include/gtkglext-1.0
/usr/include/gtkglext-1.0/gdk
/usr/include/gtkglext-1.0/gdk/glext
/usr/include/gtkglext-1.0/gdk/glext/glext.h
/usr/include/gtkglext-1.0/gdk/glext/glxext.h
/usr/include/gtkglext-1.0/gdk/glext/wglext.h
/usr/include/gtkglext-1.0/gdk/glext/glext-extra.h
/usr/include/gtkglext-1.0/gdk/glext/glxext-extra.h
/usr/include/gtkglext-1.0/gdk/glext/wglext-extra.h
/usr/include/gtkglext-1.0/gdk/x11
/usr/include/gtkglext-1.0/gdk/x11/gdkglx.h
/usr/include/gtkglext-1.0/gdk/x11/gdkglglxext.h
/usr/include/gtkglext-1.0/gdk/gdkgl.h
/usr/include/gtkglext-1.0/gdk/gdkgldefs.h
/usr/include/gtkglext-1.0/gdk/gdkglversion.h
/usr/include/gtkglext-1.0/gdk/gdkgltokens.h
/usr/include/gtkglext-1.0/gdk/gdkgltypes.h
/usr/include/gtkglext-1.0/gdk/gdkglinit.h
/usr/include/gtkglext-1.0/gdk/gdkglquery.h
/usr/include/gtkglext-1.0/gdk/gdkglconfig.h
/usr/include/gtkglext-1.0/gdk/gdkglcontext.h
/usr/include/gtkglext-1.0/gdk/gdkgldrawable.h
/usr/include/gtkglext-1.0/gdk/gdkglpixmap.h
/usr/include/gtkglext-1.0/gdk/gdkglwindow.h
/usr/include/gtkglext-1.0/gdk/gdkglfont.h
/usr/include/gtkglext-1.0/gdk/gdkglshapes.h
/usr/include/gtkglext-1.0/gdk/gdkglglext.h
/usr/include/gtkglext-1.0/gdk/gdkglenumtypes.h
/usr/include/gtkglext-1.0/gdk/gdkgldebug.h
/usr/include/gtkglext-1.0/gtk
/usr/include/gtkglext-1.0/gtk/gtkgl.h
/usr/include/gtkglext-1.0/gtk/gtkgldefs.h
/usr/include/gtkglext-1.0/gtk/gtkglversion.h
/usr/include/gtkglext-1.0/gtk/gtkglinit.h
/usr/include/gtkglext-1.0/gtk/gtkglwidget.h
/usr/include/gtkglext-1.0/gtk/gtkgldebug.h
/usr/lib
/usr/lib/libgdkglext-x11-1.0.a
/usr/lib/libgtkglext-x11-1.0.a
/usr/lib/libgdkglext-x11-1.0.la
/usr/lib/libgtkglext-x11-1.0.la
/usr/lib/gtkglext-1.0
/usr/lib/gtkglext-1.0/include
/usr/lib/gtkglext-1.0/include/gdkglext-config.h
/usr/lib/pkgconfig
/usr/lib/pkgconfig/gdkglext-x11-1.0.pc
/usr/lib/pkgconfig/gdkglext-1.0.pc
/usr/lib/pkgconfig/gtkglext-x11-1.0.pc
/usr/lib/pkgconfig/gtkglext-1.0.pc
/usr/share
/usr/share/doc
/usr/share/doc/libgtkglext1-dev
/usr/share/doc/libgtkglext1-dev/examples
/usr/share/doc/libgtkglext1-dev/examples/coolwave.c.gz
/usr/share/doc/libgtkglext1-dev/examples/coolwave2.c.gz
/usr/share/doc/libgtkglext1-dev/examples/font-pangoft2.c.gz
/usr/share/doc/libgtkglext1-dev/examples/font.c.gz
/usr/share/doc/libgtkglext1-dev/examples/gears.c.gz
/usr/share/doc/libgtkglext1-dev/examples/glxinfo.c.gz
/usr/share/doc/libgtkglext1-dev/examples/logo-g.c.gz
/usr/share/doc/libgtkglext1-dev/examples/logo-k.c.gz
/usr/share/doc/libgtkglext1-dev/examples/logo.c.gz
/usr/share/doc/libgtkglext1-dev/examples/logo-model.c
/usr/share/doc/libgtkglext1-dev/examples/logo-t.c
/usr/share/doc/libgtkglext1-dev/examples/lw.c.gz
/usr/share/doc/libgtkglext1-dev/examples/multiarb.c.gz
/usr/share/doc/libgtkglext1-dev/examples/pixmap-mixed.c.gz
/usr/share/doc/libgtkglext1-dev/examples/pixmap.c.gz
/usr/share/doc/libgtkglext1-dev/examples/readtex.c.gz
/usr/share/doc/libgtkglext1-dev/examples/scribble-gl.c.gz
/usr/share/doc/libgtkglext1-dev/examples/shapes.c.gz
/usr/share/doc/libgtkglext1-dev/examples/share-lists.c.gz
/usr/share/doc/libgtkglext1-dev/examples/simple-mixed.c.gz
/usr/share/doc/libgtkglext1-dev/examples/simple-pbuffer-sgix.c.gz
/usr/share/doc/libgtkglext1-dev/examples/simple.c.gz
/usr/share/doc/libgtkglext1-dev/examples/template.c.gz
/usr/share/doc/libgtkglext1-dev/examples/trackball.c.gz
/usr/share/doc/libgtkglext1-dev/examples/viewlw.c.gz
/usr/share/doc/libgtkglext1-dev/examples/wglinfo.c.gz
/usr/share/doc/libgtkglext1-dev/examples/girl.rgb.gz
/usr/share/doc/libgtkglext1-dev/examples/logo-model.h
/usr/share/doc/libgtkglext1-dev/examples/lw.h
/usr/share/doc/libgtkglext1-dev/examples/readtex.h
/usr/share/doc/libgtkglext1-dev/examples/trackball.h
/usr/share/doc/libgtkglext1-dev/examples/alien.lwo.gz
/usr/share/doc/libgtkglext1-dev/examples/penguin.lwo.gz
/usr/share/doc/libgtkglext1-dev/examples/Makefile.am
/usr/share/doc/libgtkglext1-dev/examples/button.c.gz
/usr/share/doc/libgtkglext1-dev/examples/color.c.gz
/usr/share/doc/libgtkglext1-dev/examples/font-pangoft2-tex.c.gz
/usr/share/doc/libgtkglext1-dev/examples/low-level.c.gz
/usr/share/doc/libgtkglext1-dev/examples/rotating-square.c.gz
/usr/share/doc/libgtkglext1-dev/examples/reflect.rgb.gz
/usr/share/doc/libgtkglext1-dev/README
/usr/share/doc/libgtkglext1-dev/TODO
/usr/share/doc/libgtkglext1-dev/copyright
/usr/share/doc/libgtkglext1-dev/changelog.gz
/usr/share/doc/libgtkglext1-dev/changelog.Debian.gz
/usr/share/aclocal
/usr/share/aclocal/gtkglext.m4
/usr/lib/libgdkglext-x11-1.0.so
/usr/lib/libgtkglext-x11-1.0.so

@Cacatoes: I've mentioned in my first post that I had installed those packages.

@Falkland: Thanks for the help, but nothing worked at all, and even GtkRadiant doesn't compile. :S And I've cloned the Git tree from the first moment.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
andrewj
Member


Cakes 24
Posts: 584



« Reply #5 on: September 13, 2010, 06:48:49 AM »

Neon_Knight, edit the Makefile with a text editor (e.g. gedit), go to line 77 or so and you'll see this:

Code:
DEPENDENCIES_CHECK ?= quiet
# or: off, verbose

Change the word "quiet" to "off" and try it again.  This will disable the dependency checking (we already know you have the necessary stuff).
Logged
Falkland
Member


Cakes 6
Posts: 590


« Reply #6 on: September 13, 2010, 08:23:40 AM »

@Andrewj: These are the results:

[...]

@Cacatoes: I've mentioned in my first post that I had installed those packages.

@Falkland: Thanks for the help, but nothing worked at all, and even GtkRadiant doesn't compile. :S And I've cloned the Git tree from the first moment.

It's strange because I am on Lucid Lynx too with all the required packages already installed and netradiant compilation works :

Code:
checking that the build tools exist
Checking for /bin/sh (bash (or another shell))... found.
Checking for echo (coreutils)... found.
Checking for echo -n (coreutils)... found.
Checking for cat (coreutils)... found.
Checking for mkdir -p (coreutils)... found.
Checking for cp (coreutils)... found.
Checking for cp -r (coreutils)... found.
Checking for rm -f (coreutils)... found.
Checking for rm -f -r (coreutils)... found.
Checking for mv (coreutils)... found.
Checking for echo test | tee /dev/stderr (coreutils)... found.
Checking for sed (sed)... found.
Checking for find (findutils)... found.
Checking for diff (diff)... found.
Checking for cc (gcc)... found.
Checking for g++ (g++)... found.
Checking for ranlib (binutils)... found.
Checking for ar (binutils)... found.
Checking for pkg-config (pkg-config)... found.
Checking for unzip (unzip)... found.
Checking for git (git-core)... found.
Checking for svn (subversion)... found.
Checking for wget (wget)... found.
Checking for ldd  (libc6)... found.
All required tools have been found!

checking that the dependencies exist
Checking for glib/gutils.h (libglib2.0-dev)... found.
Checking for libxml/xpath.h (libxml2-dev)... found.
Checking for png.h (libpng12-dev)... found.
Checking for GL/gl.h (mesa-common-dev (or another OpenGL library))... found.
Checking for gtk/gtkdialog.h (libgtk2.0-dev)... found.
Checking for gtk/gtkglwidget.h (libgtkglext1-dev)... found.
Checking for dlfcn.h (libc6-dev)... found.
Checking for zlib.h (zlib1g-dev)... found.
All required libraries have been found!

...
/// following compile logs ///
...

EDIT : and GTkRadiant too using scons command
« Last Edit: September 15, 2010, 09:32:22 AM by Falkland » Logged
Udi
Member


Cakes 25
Posts: 536


i do my own stunts


WWW
« Reply #7 on: September 13, 2010, 09:21:15 AM »

It's strange because I am on Lucid Lynx too with all the required packages already installed and netradiant compilation works :

+1
Logged

http://udionline.hu/en/projektek/openarena/
Todo list: 1. q3dm17 textures replacement (95% done)
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #8 on: September 13, 2010, 03:14:15 PM »

New and good ones: I could compile. Cheesy

I had to purge everything nvidia related in my PC, and install the propietary drivers. And it did the trick.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #9 on: February 16, 2014, 10:10:25 PM »

It turns out that the Netradiant repos out there had each one the same building problem. I've built the one from Xonotic in this link:

Code:
git://git.xonotic.org/xonotic/xonotic.git

and it works. A more profound search for this issue brought me to this:

http://dev.xonotic.org/issues/795

Someone managed to compile NR and made a patch out of it. I shall see if this works on the other NR repos I've cloned/checkout'd.
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Pages: [1]
  Print  
 
Jump to: