2008-07-03, 01:27
hi, if i try to build on a 32 bit sistem all works with no problems...
if i try to build on a 64 bit enviroment instead i receive errors like that:
this is with dbus, similar errors with glib2
i think to had also found where the problem is..
infact:
as you can see here we have
-I/usr/lib/glib-2.0/include
and
-I/usr/lib/dbus-1.0/include
that's true on a 32bit system but on 64bit that should be:
-I/usr/lib64/dbus-1.0/include
-I/usr/lib64/glib-2.0/include
could be usefull to use a "libdir" variable instead a "static" link to /usr/lib
Andrea
if i try to build on a 64 bit enviroment instead i receive errors like that:
Code:
In file included from /usr/include/dbus-1.0/dbus/dbus-address.h:30,
from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-types.h:33: error: 'dbus_uint32_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-types.h:35: error: 'dbus_uint32_t' does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus-address.h:31,
from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-errors.h:74: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-errors.h:76: error: 'dbus_bool_t' does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus.h:30,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-address.h:43: error: 'dbus_bool_t' does not name a type
In file included from /usr/include/dbus-1.0/dbus/dbus-connection.h:32,
from /usr/include/dbus-1.0/dbus/dbus-bus.h:30,
from /usr/include/dbus-1.0/dbus/dbus.h:31,
from linux/HalManager.h:29,
from linux/LinuxFileSystem.h:33,
from Application.cpp:207:
/usr/include/dbus-1.0/dbus/dbus-message.h:55: error: 'dbus_uint32_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:91: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:94: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:96: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:99: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:101: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:104: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:106: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:109: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:112: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:117: error: 'dbus_bool_t' has not been declared
/usr/include/dbus-1.0/dbus/dbus-message.h:118: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:119: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:122: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:125: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:127: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:129: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:131: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:133: error: 'dbus_uint32_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:134: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:136: error: 'dbus_uint32_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:139: error: 'dbus_bool_t' has not been declared
/usr/include/dbus-1.0/dbus/dbus-message.h:140: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:142: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:145: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:148: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:151: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:155: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:161: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:163: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:164: error: 'dbus_bool_t' does not name a type
/usr/include/dbus-1.0/dbus/dbus-message.h:185: error: 'dbus_bool_t' does not name a type
this is with dbus, similar errors with glib2
i think to had also found where the problem is..
infact:
Code:
/usr/bin/ccache g++ -c -D__STDC_FORMAT_MACROS -pg -O2 -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/usr/include/lzo -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_PCRE -DHAL_HANDLEMOUNT -DINSTALL_PATH="\"/usr/share/xbmc\"" -I. -I../ -I../linux -I../../guilib -I../lib/UnrarXLib -I../utils -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
as you can see here we have
-I/usr/lib/glib-2.0/include
and
-I/usr/lib/dbus-1.0/include
that's true on a 32bit system but on 64bit that should be:
-I/usr/lib64/dbus-1.0/include
-I/usr/lib64/glib-2.0/include
could be usefull to use a "libdir" variable instead a "static" link to /usr/lib
Andrea