Erro ao compilar a glibmm

1. Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 19/05/2009 - 19:55h

Boa noite!
Então, faz tempo que estou tentando compilar a glibmm-2.20 para usar o Inkscape aqui no Slack 12.2. Eu compilei a glib-2.20 sem problemas, e quando dou o comando "./configure" no diretório da glibmm não mostra nenhum prolblema. Mas quando dou um "make":

bash-3.1# make
make all-recursive
make[1]: Entering directory `/home/joerciovs/Desktop/glibmm-2.20.0'
Making all in tools
make[2]: Entering directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools'
Making all in m4
make[3]: Entering directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/m4'
Making all in pm
make[3]: Entering directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/pm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/pm'
Making all in extra_defs_gen
make[3]: Entering directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/extra_defs_gen'
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../glib -I../../gio -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I../..//usr/lib/pkgconfig -I../..//usr/lib/pkgconfig/. -I../..//usr/lib/pkgconfig/./glib -I../..//usr/lib/pkgconfig/./gmodule -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I../..//usr/lib/pkgconfig -I../..//usr/lib/pkgconfig/. -I../..//usr/lib/pkgconfig/./glib -I../..//usr/lib/pkgconfig/./gmodule -g -O2 -Wall -Wno-long-long -MT generate_extra_defs.lo -MD -MP -MF .deps/generate_extra_defs.Tpo -c -o generate_extra_defs.lo generate_extra_defs.cc
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../glib -I../../gio -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I../..//usr/lib/pkgconfig -I../..//usr/lib/pkgconfig/. -I../..//usr/lib/pkgconfig/./glib -I../..//usr/lib/pkgconfig/./gmodule -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -I../..//usr/lib/pkgconfig -I../..//usr/lib/pkgconfig/. -I../..//usr/lib/pkgconfig/./glib -I../..//usr/lib/pkgconfig/./gmodule -g -O2 -Wall -Wno-long-long -MT generate_extra_defs.lo -MD -MP -MF .deps/generate_extra_defs.Tpo -c generate_extra_defs.cc -fPIC -DPIC -o .libs/generate_extra_defs.o
In file included from generate_extra_defs.cc:23:
generate_extra_defs.h:23:25: error: glib-object.h: No such file or directory
In file included from generate_extra_defs.cc:23:
generate_extra_defs.h:27: error: 'GType' was not declared in this scope
generate_extra_defs.h:29: error: 'GType' was not declared in this scope
generate_extra_defs.h:30: error: 'GType' was not declared in this scope
generate_extra_defs.h:31: error: 'GType' was not declared in this scope
generate_extra_defs.h:32: error: 'GType' was not declared in this scope
generate_extra_defs.h:33: error: 'GType' was not declared in this scope
generate_extra_defs.cc:26: error: redefinition of 'std::string get_properties'
generate_extra_defs.h:29: error: 'std::string get_properties' previously declared here
generate_extra_defs.cc:26: error: 'GType' was not declared in this scope
make[3]: *** [generate_extra_defs.lo] Error 1
make[3]: Leaving directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools/extra_defs_gen'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/joerciovs/Desktop/glibmm-2.20.0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joerciovs/Desktop/glibmm-2.20.0'
make: *** [all] Error 2

Esse erro também aparecia quando usava o Slack 12.1.
Já busquei a solução em vários sites (brasileiros e estrangeiros), mas não a encontrei. Nos tutoriais que achei não ocorrem erros com o "make". Eu ajustei o pkgconfig, mas nada de progresso. Eu achei um Slackbuild para o Ink, mas quero compilá-lo na unha, senão, nunca irei aprender.
Por favor, me ajudem! Já faz um bom tempo que estou tentando compilar o Ink, e nada de conseguir!
Obrigado desde já.


  


2. Re: Erro ao compilar a glibmm

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 19/05/2009 - 22:37h

Instale o pacote gob2, nesse link:

http://repository.slacky.eu/slackware-12.2/development/gob2/2.0.15/gob2-2.0.15-i486-3as.tgz


3. Re: Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/05/2009 - 13:32h

Obrigado pela ajuda! Mas, o problema continua... =/
Eu instalei o .tgz, mas não funcionou. Então eu baixei os fontes dessa biblioteca e, na hora do make, dá um erro parecido.
Será que é o compilador?


4. Re: Erro ao compilar a glibmm

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 20/05/2009 - 15:08h

Poste a saída outra vez. Deve estar faltando algum arquivo... não acredito q seja problema d compilador.


5. Re: Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/05/2009 - 17:15h

A saída da gob2:

bash-3.1$ make
make all-recursive
make[1]: Entering directory `/home/joerciovs/Desktop/gob2-2.0.15'
Making all in src
make[2]: Entering directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
test -f lexer.c || /bin/sh ../ylwrap lexer.l lex.yy.c lexer.c -- flex
make all-recursive
make[3]: Entering directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
Making all in .
make[4]: Entering directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
gcc -DHAVE_CONFIG_H -DPKGDATADIR=\"/usr/local/share/gob2\" -I. -I.. -I..//usr/lib/pkgconfig -I..//usr/lib/pkgconfig/. -I..//usr/lib/pkgconfig/./glib -I.. -I../src -I.. -I../src -I/usr/local/include -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c:25:18: error: glib.h: No such file or directory
In file included from main.c:34:
treefuncs.h:90: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:117: error: expected specifier-qualifier-list before 'gboolean'
treefuncs.h:128: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:141: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:148: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:155: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:164: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:183: error: expected specifier-qualifier-list before 'GList'
treefuncs.h:212: error: expected specifier-qualifier-list before 'gboolean'
treefuncs.h:246: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
treefuncs.h:247: error: expected ')' before '*' token
In file included from main.c:35:
parse.y:670: error: expected specifier-qualifier-list before 'GString'
In file included from main.c:36:
out.h: In function 'out_printf':
out.h:27: error: expected declaration specifiers before 'G_GNUC_PRINTF'
In file included from main.c:37:
util.h:29: warning: empty declaration
util.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'G_GNUC_PRINTF'
util.h:52: error: expected declaration specifiers or '...' before 'gboolean'
util.h:53: error: expected declaration specifiers or '...' before 'gboolean'
util.h:54: error: expected declaration specifiers or '...' before 'gboolean'
util.h:61: warning: empty declaration
util.h:63: error: expected declaration specifiers before 'gboolean'
In file included from main.c:38:
checks.h:53: error: expected declaration specifiers before 'gboolean'
In file included from main.c:40:
main.h:30: warning: empty declaration
main.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_touch_headers'
main.h:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for_cpp'
main.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_gnu'
main.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'exit_on_warn'
main.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'exit_on_error'
main.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'got_error'
main.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'private_header'
main.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_extern_c'
main.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_write'
main.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_lines'
main.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_self_alias'
main.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'no_kill_underscores'
main.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'always_private_struct'
main.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prealloc'
main.h:47: error: storage class specified for parameter 'filename'
main.h:48: error: storage class specified for parameter 'filebase'
main.h:50: error: storage class specified for parameter 'out'
main.h:51: error: storage class specified for parameter 'outh'
main.h:52: error: storage class specified for parameter 'outph'
main.h:54: error: storage class specified for parameter 'method_unique_id'
main.c:42: error: parameter 'filename' is initialized
main.c:42: error: redefinition of parameter 'filename'
main.h:47: error: previous definition of 'filename' was here
main.c:46: error: storage class specified for parameter 'yydebug'
main.c:47: error: storage class specified for parameter 'yyin'
main.c:48: error: storage class specified for parameter 'class'
main.c:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:56: error: redefinition of parameter 'filebase'
main.h:48: error: previous definition of 'filebase' was here
main.c:58: error: storage class specified for parameter 'outfilebase'
main.c:59: error: storage class specified for parameter 'outfilehbase'
main.c:60: error: storage class specified for parameter 'outfilephbase'
main.c:61: error: storage class specified for parameter 'funcbase'
main.c:62: error: storage class specified for parameter 'pfuncbase'
main.c:63: error: storage class specified for parameter 'macrobase'
main.c:64: error: storage class specified for parameter 'macrois'
main.c:65: error: storage class specified for parameter 'pmacrois'
main.c:66: error: storage class specified for parameter 'macrotype'
main.c:67: error: storage class specified for parameter 'pmacrotype'
main.c:68: error: storage class specified for parameter 'typebase'
main.c:69: error: storage class specified for parameter 'ptypebase'
main.c:71: error: parameter 'output_dir' is initialized
main.c:73: error: parameter 'file_sep' is initialized
main.c:75: error: storage class specified for parameter 'signals'
main.c:75: error: parameter 'signals' is initialized
main.c:76: error: storage class specified for parameter 'set_properties'
main.c:76: error: parameter 'set_properties' is initialized
main.c:77: error: storage class specified for parameter 'get_properties'
main.c:77: error: parameter 'get_properties' is initialized
main.c:78: error: storage class specified for parameter 'overrides'
main.c:78: error: parameter 'overrides' is initialized
main.c:79: error: storage class specified for parameter 'privates'
main.c:79: error: parameter 'privates' is initialized
main.c:80: error: storage class specified for parameter 'protecteds'
main.c:80: error: parameter 'protecteds' is initialized
main.c:81: error: storage class specified for parameter 'unreftors'
main.c:81: error: parameter 'unreftors' is initialized
main.c:82: error: storage class specified for parameter 'destructors'
main.c:82: error: parameter 'destructors' is initialized
main.c:83: error: storage class specified for parameter 'initializers'
main.c:83: error: parameter 'initializers' is initialized
main.c:84: error: storage class specified for parameter 'glade_widgets'
main.c:84: error: parameter 'glade_widgets' is initialized
main.c:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'overrode_get_type'
main.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'made_aliases'
main.c:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'special_array'
main.c:92: error: expected declaration specifiers before ';' token
main.c:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'any_special'
main.c:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'need_dispose'
main.c:96: error: storage class specified for parameter 'dispose_handler'
main.c:96: error: parameter 'dispose_handler' is initialized
main.c:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'need_finalize'
main.c:99: error: storage class specified for parameter 'finalize_handler'
main.c:99: error: parameter 'finalize_handler' is initialized
main.c:101: error: parameter 'out' is initialized
main.c:101: error: redefinition of parameter 'out'
main.h:50: error: previous definition of 'out' was here
main.c:102: error: parameter 'outh' is initialized
main.c:102: error: redefinition of parameter 'outh'
main.h:51: error: previous definition of 'outh' was here
main.c:103: error: parameter 'outph' is initialized
main.c:103: error: redefinition of parameter 'outph'
main.h:52: error: previous definition of 'outph' was here
main.c:105: error: expected declaration specifiers before 'gboolean'
main.c:106: error: expected declaration specifiers before 'gboolean'
main.c:107: error: expected declaration specifiers before 'gboolean'
main.c:108: error: expected declaration specifiers before 'gboolean'
main.c:109: error: expected declaration specifiers before 'gboolean'
main.c:110: error: expected declaration specifiers before 'gboolean'
main.c:111: error: expected declaration specifiers before 'gboolean'
main.c:112: error: expected declaration specifiers before 'gint'
main.c:113: error: expected declaration specifiers before 'gboolean'
main.c:114: error: expected declaration specifiers before 'gboolean'
main.c:115: error: expected declaration specifiers before 'gboolean'
main.c:116: error: expected declaration specifiers before 'gboolean'
main.c:117: error: expected declaration specifiers before 'gboolean'
main.c:118: error: expected declaration specifiers before 'gint'
main.c:120: error: expected declaration specifiers before 'gboolean'
main.c:121: error: expected declaration specifiers before 'gboolean'
main.c:122: error: parameter 'm4_commandline' is initialized
main.c:128: error: parameter 'method_unique_id' is initialized
main.c:128: error: redefinition of parameter 'method_unique_id'
main.h:54: error: previous definition of 'method_unique_id' was here
main.c:132: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:183: error: expected declaration specifiers or '...' before 'gboolean'
main.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:202: error: expected declaration specifiers or '...' before 'gboolean'
main.c:203: error: expected declaration specifiers or '...' before 'gboolean'
main.c:204: error: expected declaration specifiers or '...' before 'gboolean'
main.c:205: error: expected declaration specifiers or '...' before 'gboolean'
main.c:206: error: expected declaration specifiers or '...' before 'gboolean'
main.c:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:261: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'any_method_to_alias'
main.c:284: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:307: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:353: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:392: error: expected declaration specifiers or '...' before 'gboolean'
main.c:393: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:455: error: expected declaration specifiers or '...' before 'gboolean'
main.c:456: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:471: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:494: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:510: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:524: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:553: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:578: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:634: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:665: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:696: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:701: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
main.c:705: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'is_list_equal'
main.c:720: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:732: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:764: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:900: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:952: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:982: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1023: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1042: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1064: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1112: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1174: error: expected declaration specifiers or '...' before 'gboolean'
main.c:1175: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1214: error: expected declaration specifiers or '...' before 'gboolean'
main.c:1215: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1266: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1375: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1439: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1597: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:1987: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2015: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2049: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2071: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2122: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2171: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2230: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2260: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2413: error: expected declaration specifiers or '...' before 'gboolean'
main.c:2414: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2508: error: expected declaration specifiers or '...' before 'gboolean'
main.c:2509: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2547: error: expected declaration specifiers or '...' before 'gboolean'
main.c:2548: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2600: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2664: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2677: error: expected declaration specifiers or '...' before 'gboolean'
main.c:2677: error: expected declaration specifiers or '...' before 'gboolean'
main.c:2678: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2721: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2782: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2801: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:2816: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3074: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3121: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3187: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3253: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3304: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3663: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3680: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3697: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3711: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3756: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3781: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3798: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3814: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3834: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3899: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:3964: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4045: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4087: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4137: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4315: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4390: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
main.c:4496: error: old-style parameter declarations in prototyped function definition
main.c:4496: error: expected '{' at end of input
make[4]: *** [main.o] Error 1
make[4]: Leaving directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/joerciovs/Desktop/gob2-2.0.15/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/joerciovs/Desktop/gob2-2.0.15'
make: *** [all] Error 2

A da glibmm continua igual.


6. Re: Erro ao compilar a glibmm

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 20/05/2009 - 17:25h

Uai... c tá instalando o gob2 através do source? Pq vc num instalou o pacote dele? Bom... d acordo com esse problema, é q o make não tá encontrando o header glib.h:

"main.c:25:18: error: glib.h: No such file or directory"

Se existir esse cabeçalho, edite o main.c na linha 25 e indique o caminho desse arquivo ae dentro. Tente d novo...


7. Re: Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/05/2009 - 17:58h

Eu instalei o pacote que você indicou, é que não deu certo, então eu tentei compilar o source para ver se era algum problema com dependências, mas não era.
Na linha está o #include<glib.h>. Eu dei um locate para achar a o cabeçalho da glib, e apareceu aqui:

/usr/local/include/glib-2.0/glib.h

Como ainda não sei programar, tentei editar a linha para "#include </usr/include/glib-2.0/glib.h>" e para "#include /usr/include/glib-2.0/glib.h". Mas o erro persiste.
E agora, o que eu faço???


8. Re: Erro ao compilar a glibmm

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 20/05/2009 - 19:05h

Tente compilar com esse comando aki:

make CXXFLAGS="$CXXFLAGS `pkg-config glib --cflags`" LDFLAGS="$LDFLAGS `pkg-config glib --libs`"

Eu tive um problema desses e um chegado aki do VOL me ajudou com isso. Veja se dá certo com vc tb.


9. Re: Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 20/05/2009 - 19:10h

Também não deu certo... =/


10. Re: Erro ao compilar a glibmm

Renato Carneiro Pacheco
renato_pacheco

(usa Debian)

Enviado em 20/05/2009 - 19:16h

Uai... então essas bibliotecas realmente não existem... vc tem o pacote do kernel-headers instalado? Se não, instale ele. Ae pode dar certo.

Obs.: instale o kernel-headers da msm versão da do kernel instalado no sistema.


11. Re: Erro ao compilar a glibmm

Perfil removido
removido

(usa Nenhuma)

Enviado em 21/05/2009 - 13:40h

Opa... desculpe-me pela demora em responder.
Eu instalei o kernel-headers que vem no CD do Slackware, mas também não funcionou.



12. Re: Erro ao compilar a glibmm

Estevão Ferreira Maia
_eXagon

(usa OpenSuSE)

Enviado em 21/05/2009 - 14:28h

vc procurou por esse arquivo glib-object.h ???

Caso ele não exista ta ai o porque ...

caso esteja la, certifique o caminho correto dentro deste arquivo generate_extra_defs.h linha 23.

a lib Glib esta instalada ?

Abraço



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts