Page 1 of 1

Build error QT-Celestia

Posted: 18.04.2010, 12:15
by Boux
Looks like there is a syntax error in line 63 of xbel.ccp source:

Code: Select all

raiseError(QString(_("Not an XBEL version 1.0 file.")));

The underscore "_" makes the compiler complain about an unknown identifier and abort building.

Changing the line to:

Code: Select all

raiseError(QString("Not an XBEL version 1.0 file."));

seems to fix it.

Re: Build error QT-Celestia

Posted: 18.04.2010, 12:30
by Vincent
Hi Boux,

Thanks for the report.
I recently added i18n support through gettext to the qt4 version of Celestia.
The _() macro is defined in util.h and is used to mark all strings that need a translation.

The compilation error should be fixed by adding the following include to xbel.ccp:

Code: Select all

#include "celutil/util.h"


I'll commit the fix to SVN soon.

Re: Build error QT-Celestia

Posted: 18.04.2010, 12:48
by Boux
Salut Vincent!
OK, I see what happened now.
Thanks

Re: Build error QT-Celestia

Posted: 18.04.2010, 13:19
by Vincent
Boux wrote:Salut Vincent!
OK, I see what happened now.
Thanks
Boux, you're welcome.
This is fixed in SVN now.

Attached is an updated version of fr.po that provides
a 100% translated qt4 version for testing. :)

Re: Build error QT-Celestia

Posted: 18.04.2010, 15:26
by t00fri
I had also spotted that _( ) bug yesterday. The remedy was obvious. Now (rev. 5013) everything compiles again without complaints.

Fridger