Erro no Makefile do GenxMux

Iniciado por ElMago, 30 de Janeiro de 2011, 01:27

tópico anterior - próximo tópico

ElMago

Olá pessoal da programação, achei um programinha que pode salvar muita gente do Linux que queira autorar em Divx com menu personalisado. O tópico que abri p/ falar sobre ele está aqui > http://ubuntuforum-br.org/index.php/topic,78385.0.html

Acontece que quando dou make, dá uma mensagem de erro em varias linhas...Vi em uns tutoriais que dá pra consertar declarando com int....
2 linhas consegui "eu acho" consertar tirando o int de dentro do parentese e colocando na frente, mas o resto nao sei como fazer. Nao entendo nada de programação.

O programinha que vem com o Makefile é o GenxMux..
Aqui o log de erro ao dar make :


tiago@tiago-desktop:/usr/local/bin/genxmux-02$ make
gcc -o genxmux genxmux.c -I/usr/include/libxml2 -lxml2
genxmux.c:3:27: error: libxml/parser.h: Arquivo ou diretório não encontrado
genxmux.c:4:25: error: libxml/tree.h: Arquivo ou diretório não encontrado
genxmux.c:135: error: expected declaration specifiers or '...' before 'xmlNode'
genxmux.c: In function 'get_sub_xml':
genxmux.c:137: error: 'xmlNode' undeclared (first use in this function)
genxmux.c:137: error: (Each undeclared identifier is reported only once
genxmux.c:137: error: for each function it appears in.)
genxmux.c:137: error: 'cur_node' undeclared (first use in this function)
genxmux.c:138: error: 'a_node' undeclared (first use in this function)
genxmux.c:139: error: 'XML_ELEMENT_NODE' undeclared (first use in this function)
genxmux.c:165: error: too many arguments to function 'get_sub_xml'
genxmux.c: At top level:
genxmux.c:169: error: expected ')' before '*' token
genxmux.c: In function 'domenu':
genxmux.c:496: error: 'xmlDoc' undeclared (first use in this function)
genxmux.c:496: error: 'doc' undeclared (first use in this function)
genxmux.c:497: error: 'xmlNode' undeclared (first use in this function)
genxmux.c:497: error: 'node' undeclared (first use in this function)
genxmux.c:538: error: too many arguments to function 'get_sub_xml'
genxmux.c: In function 'main':
genxmux.c:600: error: 'xmlDoc' undeclared (first use in this function)
genxmux.c:600: error: 'doc' undeclared (first use in this function)
genxmux.c:601: error: 'xmlNode' undeclared (first use in this function)
genxmux.c:601: error: 'node' undeclared (first use in this function)
genxmux.c:602: error: 'LIBXML_TEST_VERSION' undeclared (first use in this function)
genxmux.c:603: error: expected ';' before 'puts'
make: ** [genxmux] Erro 1


Será preciso passar a linha do codigo genxmux.c ? É grandinho e pode poluir o topico.
Serei muito grato!

ElMago

http://renomath.org/ejolson/video/divx/

Aí é onde fica o download do genxmux pra ficar mais fácil e ver o código.

irtigor

O pacote libxml*dev tá instalado? Esse programa é de 2008, talvez já tenha dependências desencontradas.

ElMago

#3
irtigor

Sua dica foi de grande valia.
Instalei o libxml2-dev e o libxml++2.6-dev (já que o libxml2 e o libxml++2.6 estavam já instalados) . Dei make, e deu um erro de permissão....Dei um sudo make e pronto, o erro do primeiro pacote (o genxmux.c) já nao apareceu mais como antes (com ou sem sudo).
Agora ele acusa um erro que é do segundo pacote (o bmppalette.c).
Segundo o Makefile que postei no outro tópico, que deixei no link acima, instala dois pacotes, o genxmux.c e bmppalette.c.
Pesquisando este bmppalette, ele é tipo uma ferramenta de cores na imagem.
Eu achei que teria haver com algum dev relacionado ao Imagemagick (ele está instalado, mas sem dev), mas pelo log, acho que não....

ElMago

#4
Aqui o log:


gcc -o bmppalette bmppalette.c shhopt.c nstring.c -lnetpbm -lm -lpopt
bmppalette.c:25:17: error: pnm.h: Arquivo ou diretório não encontrado
In file included from bmppalette.c:27:
bitio.h:35:16: error: pm.h: Arquivo ou diretório não encontrado
In file included from bmppalette.c:27:
bitio.h:40: error: expected ')' before '*' token
bitio.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ARGS'
bitio.h:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ARGS'
bitio.h:70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ARGS'
In file included from bmppalette.c:28:
bmp.h:84:39: error: ppm.h: Arquivo ou diretório não encontrado
bmppalette.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
bmppalette.c:65: error: expected specifier-qualifier-list before 'bool'
bmppalette.c:82: error: expected specifier-qualifier-list before 'bool'
bmppalette.c: In function 'parse_command_line':
bmppalette.c:114: warning: incompatible implicit declaration of built-in function 'malloc'
bmppalette.c:125: error: 'FALSE' undeclared (first use in this function)
bmppalette.c:125: error: (Each undeclared identifier is reported only once
bmppalette.c:125: error: for each function it appears in.)
bmppalette.c: At top level:
bmppalette.c:149: error: expected ')' before '*' token
bmppalette.c:162: error: expected ')' before '*' token
bmppalette.c:175: error: expected ')' before '*' token
bmppalette.c:192: error: expected ')' before '*' token
bmppalette.c:207: error: expected ')' before '*' token
bmppalette.c:224: error: expected ')' before '*' token
bmppalette.c:251: error: expected ')' before '*' token
bmppalette.c:285: error: expected ')' before '*' token
bmppalette.c: In function 'computeConventionalBgr':
bmppalette.c:390: error: 'struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:398: error: 'struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:406: error: 'struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:406: error: 'FALSE' undeclared (first use in this function)
bmppalette.c: In function 'defaultPixelformat':
bmppalette.c:419: error: 'struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:419: error: 'FALSE' undeclared (first use in this function)
bmppalette.c:431: error: 'struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:431: error: 'TRUE' undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:452: error: expected ')' before '*' token
bmppalette.c: In function 'defaultV4InfoHeaderExtension':
bmppalette.c:477: error: 'struct bmpInfoHeader' has no member named 'pixelformat'
bmppalette.c: At top level:
bmppalette.c:484: error: expected ')' before '*' token
bmppalette.c:516: error: expected ')' before '*' token
bmppalette.c:542: error: expected ')' before '*' token
bmppalette.c:592: error: expected declaration specifiers or '...' before 'pixval'
bmppalette.c:593: error: expected declaration specifiers or '...' before 'pixval'
bmppalette.c:594: error: expected declaration specifiers or '...' before 'pixval'
bmppalette.c:595: error: expected declaration specifiers or '...' before 'pixval'
bmppalette.c:596: error: expected declaration specifiers or '...' before 'pixval'
bmppalette.c: In function 'extractBitFields':
bmppalette.c:607: error: 'rP' undeclared (first use in this function)
bmppalette.c:607: error: 'maxval' undeclared (first use in this function)
bmppalette.c:608: error: 'gP' undeclared (first use in this function)
bmppalette.c:609: error: 'bP' undeclared (first use in this function)
bmppalette.c:610: error: 'aP' undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:617: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c: In function 'convertRow16':
bmppalette.c:629: error: 'pixval' undeclared (first use in this function)
bmppalette.c:629: error: expected ';' before 'r'
bmppalette.c:631: error: 'r' undeclared (first use in this function)
bmppalette.c:631: error: 'g' undeclared (first use in this function)
bmppalette.c:631: error: 'b' undeclared (first use in this function)
bmppalette.c:631: error: 'a' undeclared (first use in this function)
bmppalette.c:631: error: too many arguments to function 'extractBitFields'
bmppalette.c:633: error: 'xelrow' undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:643: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c: In function 'convertRow24':
bmppalette.c:659: error: 'pixval' undeclared (first use in this function)
bmppalette.c:659: error: expected ';' before 'r'
bmppalette.c:661: error: 'const struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:662: error: 'r' undeclared (first use in this function)
bmppalette.c:663: error: 'g' undeclared (first use in this function)
bmppalette.c:664: error: 'b' undeclared (first use in this function)
bmppalette.c:665: error: 'a' undeclared (first use in this function)
bmppalette.c:672: error: too many arguments to function 'extractBitFields'
bmppalette.c:674: error: 'xelrow' undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:683: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c: In function 'convertRow32':
bmppalette.c:693: error: 'pixval' undeclared (first use in this function)
bmppalette.c:693: error: expected ';' before 'r'
bmppalette.c:695: error: 'const struct pixelformat' has no member named 'conventionalBgr'
bmppalette.c:697: error: 'r' undeclared (first use in this function)
bmppalette.c:698: error: 'g' undeclared (first use in this function)
bmppalette.c:699: error: 'b' undeclared (first use in this function)
bmppalette.c:700: error: 'a' undeclared (first use in this function)
bmppalette.c:708: error: too many arguments to function 'extractBitFields'
bmppalette.c:711: error: 'xelrow' undeclared (first use in this function)
bmppalette.c: At top level:
bmppalette.c:721: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c:725: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c: In function 'convertRow':
bmppalette.c:738: error: 'xelrow' undeclared (first use in this function)
bmppalette.c:738: error: incompatible type for argument 3 of 'convertRow24'
bmppalette.c:642: note: expected 'const struct pixelformat' but argument is of type 'int'
bmppalette.c:738: error: too many arguments to function 'convertRow24'
bmppalette.c:740: error: incompatible type for argument 3 of 'convertRow16'
bmppalette.c:616: note: expected 'const struct pixelformat' but argument is of type 'int'
bmppalette.c:740: error: too many arguments to function 'convertRow16'
bmppalette.c:742: error: incompatible type for argument 3 of 'convertRow32'
bmppalette.c:682: note: expected 'const struct pixelformat' but argument is of type 'int'
bmppalette.c:742: error: too many arguments to function 'convertRow32'
bmppalette.c:747: error: 'colormap' undeclared (first use in this function)
bmppalette.c: In function 'allocBMPraster':
bmppalette.c:783: warning: incompatible implicit declaration of built-in function 'malloc'
bmppalette.c: At top level:
bmppalette.c:800: error: expected ')' before '*' token
bmppalette.c:831: error: expected ')' before '*' token
bmppalette.c: In function 'reportHeader':
bmppalette.c:887: error: 'const struct bmpInfoHeader' has no member named 'cPlanes'
bmppalette.c:892: error: 'const struct bmpInfoHeader' has no member named 'cmapsize'
bmppalette.c: At top level:
bmppalette.c:898: error: expected ')' before 'colormap'
bmppalette.c:930: error: expected ')' before '*' token
bmppalette.c:1029: error: expected declaration specifiers or '...' before 'xel'
bmppalette.c: In function 'writeRaster':
bmppalette.c:1041: error: 'xel' undeclared (first use in this function)
bmppalette.c:1041: error: 'xelrow' undeclared (first use in this function)
bmppalette.c:1048: error: 'colormap' undeclared (first use in this function)
bmppalette.c:1048: error: incompatible type for argument 4 of 'convertRow'
bmppalette.c:720: note: expected 'const struct pixelformat' but argument is of type 'unsigned int'
bmppalette.c:1048: error: too many arguments to function 'convertRow'
bmppalette.c:1049: error: 'stdout' undeclared (first use in this function)
bmppalette.c:1049: error: 'bmpMaxval' undeclared (first use in this function)
bmppalette.c:1049: error: 'FALSE' undeclared (first use in this function)
bmppalette.c: In function 'main':
bmppalette.c:1060: error: 'FILE' undeclared (first use in this function)
bmppalette.c:1060: error: 'ifP' undeclared (first use in this function)
bmppalette.c:1063: error: 'bool' undeclared (first use in this function)
bmppalette.c:1063: error: expected ';' before 'grayPresent'
bmppalette.c:1079: error: 'xel' undeclared (first use in this function)
bmppalette.c:1079: error: 'colormap' undeclared (first use in this function)
bmppalette.c:1094: error: 'grayPresent' undeclared (first use in this function)
bmppalette.c:1094: error: 'colorPresent' undeclared (first use in this function)
bmppalette.c:1098: warning: incompatible implicit declaration of built-in function 'free'
bmppalette.c:1100: warning: incompatible implicit declaration of built-in function 'exit'
bmppalette.c:1103: error: 'PPM_TYPE' undeclared (first use in this function)
bmppalette.c:1106: error: 'PGM_TYPE' undeclared (first use in this function)
bmppalette.c:1109: error: 'PBM_TYPE' undeclared (first use in this function)
bmppalette.c:1112: error: 'stdout' undeclared (first use in this function)
bmppalette.c:1112: error: 'bmpMaxval' undeclared (first use in this function)
bmppalette.c:1112: error: 'FALSE' undeclared (first use in this function)
bmppalette.c:1115: error: too many arguments to function 'writeRaster'
make: ** [bmppalette] Erro 1


[Edição 19 de abril 2011] > No site pede o Mjpegtools na versão CVS ...Instalei, mas dá o mesmo erro aí do log.