You are not logged in.

#1 2012-05-01 12:27:21

Ultrak1ll
Member
Registered: 2011-12-04
Posts: 7

[SOLVED] Can't compile NetRadiant (glib2)

I have been trying to compile netradiant, but no luck. First i thought that i was missing glib2 but when I tried verbose I saw this:

+ checkheader libglib2.0-dev glib/gutils.h g_path_is_absolute '-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  ' '  -lglib-2.0  '
+ echo -n 'Checking for glib/gutils.h (libglib2.0-dev)... '
Checking for glib/gutils.h (libglib2.0-dev)... + g++ conftest.cpp -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -g -O -fPIC -Wno-non-virtual-dtor -Wreorder -fno-exceptions -fno-rtti '-DRADIANT_VERSION="1.5.0n"' '-DRADIANT_MAJOR_VERSION="5"' '-DRADIANT_MINOR_VERSION="0"' '-DRADIANT_ABOUTMSG="Custom build"' '-DQ3MAP_VERSION="2.5.17n"' '-DRADIANT_EXECUTABLE="x86"' -DPOSIX -DXWINDOWS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include '-DCONFTEST_HEADER=<glib/gutils.h>' -DCONFTEST_SYMBOL=g_path_is_absolute -c -o conftest.o
In file included from conftest.cpp:2:0:
/usr/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gutils.h:34:0,
                 from conftest.cpp:2:
/usr/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/gutils.h:34,
                 from conftest.cpp:2:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gtypes.h:35:0,
                 from /usr/include/glib-2.0/glib/gutils.h:34,
                 from conftest.cpp:2:
/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gtypes.h:36:0,
                 from /usr/include/glib-2.0/glib/gutils.h:34,
                 from conftest.cpp:2:
/usr/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
conftest.cpp: In function ‘int main()’:
conftest.cpp:5:9: error: ‘g_path_is_absolute’ was not declared in this scope
+ rm -f conftest conftest.o conftest.d
+ echo 'not found, please install it or set PKG_CONFIG_PATH right!'
not found, please install it or set PKG_CONFIG_PATH right!
+ echo 'To see the failed commands, set DEPENDENCIES_CHECK=verbose'
To see the failed commands, set DEPENDENCIES_CHECK=verbose
+ echo 'To proceed anyway, set DEPENDENCIES_CHECK=off'
To proceed anyway, set DEPENDENCIES_CHECK=off
+ failed=1

Sorry for beeing a total noob but it seems that the fault is in the source code. Anyone got a patch for this ??? I'm still learning C++

Edit:
Fond something here: http://dev.xonotic.org/issues/795

Edit2:
Remebered that i had successfully compiled this version once before on another arch install.

ok give me 30 min maybe i can fix it.....

Last edited by Ultrak1ll (2012-05-01 14:14:45)

Offline

#2 2012-05-01 14:14:24

Ultrak1ll
Member
Registered: 2011-12-04
Posts: 7

Re: [SOLVED] Can't compile NetRadiant (glib2)

LoL solved used the wrong source that had a bug. Used http://www.icculus.org/netradiant/files/ , instead of git://git.xonotic.org/xonotic/netradiant.git.
Icullus seems to be outdated sad

Last edited by Ultrak1ll (2012-05-01 14:15:06)

Offline

#3 2012-05-01 14:25:36

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 386

Re: [SOLVED] Can't compile NetRadiant (glib2)

https://aur.archlinux.org/packages.php?ID=36239
Was updated in November already. wink

Offline

Board footer

Powered by FluxBB