Pages

Sunday, February 26, 2012

mirage-parser.c: In function 'mirage_parser_load_image':

If you try to compile libmirage then you might get the following error:

...
mirage-parser.c: In function 'mirage_parser_load_image':
mirage-parser.c:151:34: error: 'G_VALUE_INIT' undeclared (first use in this function)
mirage-parser.c:151:34: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [mirage-parser.lo] Error 1
make[3]: Leaving directory `/usr/src/cdemu/libmirage-1.5.0/src/libmirage'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/cdemu/libmirage-1.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cdemu/libmirage-1.5.0'
make: *** [all] Error 2

In this case edit the file src/libmirage/mirage-parser.c and add the following line after the line #define __debug__ "Parser":

# vi src/libmirage/mirage-parser.c
...
#define __debug__ "Parser"
#define G_VALUE_INIT {0,{{0}}}
...

Then try to recompile using make and it should work for you (I'm not a developer so please take this advise with care).

No comments:

Post a Comment