Building gtranslator from trunk



Hi guys,

I've been trying to build gtranslator from trunk on two machines I have
here so I can get back up to speed on development. One is an AMD64
desktop machine, the other a QEMU virtual machine. Both are running
Ubuntu Edgy.

I've run into a few problems which I'm not sure about, so I thought I'd
post them here.

1) The 'languages.c' initialises the languages[] array using the N_()
macro (gettext?) to translate language names, which produces the
following error for me:

AFAICS, it can't/shouldn't do this as N_() will be evaluated at runtime,
and can't be evaluated at compile time. Does anyone else get this error?
How did they workaround it? What should it be?

I've worked around it by adding this to the top of language.c on my
local copy, but it'd be nice to get a 'proper' fix in subversion, if
possible.

#define N_(x) (x)

2) The rest seems to build OK, but I get the following error at
link-time:

gcc  -g -O2 -ggdb  -lgettextpo -o gtranslator -Wall about.o actions.o
bookmark.o comment.o compile.o dialogs.o dnd.o find.o gui.o
header_stuff.o history.o languages.o learn.o main.o menus.o message.o
messages-table.o nautilus-string.o parse.o page.o preferences.o prefs.o
prefs_init.o replace.o runtime-config.o session.o sighandling.o
translator.o undo.o utils.o utils_gui.o vfs-handle.o    -pthread
-lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lgnomecanvas-2
-lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lbonobo-2
-lbonobo-activation -lgnomevfs-2 -lgconf-2 -lORBit-2 -lgthread-2.0
-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0           
header_stuff.o: In function `gtranslator_header_edit_dialog':
/home/rossg/gtranslator/trunk/src/header_stuff.c:569: undefined
reference to `gtranslator_header_combo_new'
/home/rossg/gtranslator/trunk/src/header_stuff.c:576: undefined
reference to `gtranslator_header_combo_new'
/home/rossg/gtranslator/trunk/src/header_stuff.c:582: undefined
reference to `gtranslator_header_combo_new'
/home/rossg/gtranslator/trunk/src/header_stuff.c:588: undefined
reference to `gtranslator_header_combo_new'
collect2: ld returned 1 exit status
make[2]: *** [gtranslator] Error 1
make[2]: Leaving directory `/home/rossg/gtranslator/trunk/src'

I presume this is related to the new Glade stuff that Nacho has been
working on. Nacho, does this compile for you, or is this expected
behaviour for the moment?

/me prepares to take a crash course in glade.

--
Ross




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]