Portál AbcLinuxu, 12. května 2025 12:41
xt_control.c:110: error: structure has no member named `fps' xt_control.c:110: error: initializer element is not constant xt_control.c:110: error: (near initialization for `resources[0].resource_offset') xt_control.c:110: error: initializer element is not constant xt_control.c:110: error: (near initialization for `resources[0]') xt_control.c:111: error: structure has no member named `file' xt_control.c:111: error: initializer element is not constant xt_control.c:111: error: (near initialization for `resources[1].resource_offset') xt_control.c:111: error: initializer element is not constant xt_control.c:111: error: (near initialization for `resources[1]') xt_control.c:112: error: initializer element is not constant . . . atd... . . . xt_control.c:127: error: (near initialization for `resources[17].resource_offset') xt_control.c:127: error: initializer element is not constant xt_control.c:127: error: (near initialization for `resources[17]') xt_control.c:128: error: initializer element is not constant xt_control.c:128: error: (near initialization for `resources[18]') xt_control.c: In function `CbSelect': xt_control.c:870: error: `CAP_FFM' undeclared (first use in this function) xt_control.c:870: error: (Each undeclared identifier is reported only once xt_control.c:870: error: for each function it appears in.) xt_control.c:911: error: too many arguments to function `job_set_save_function' xt_control.c: In function `CreateControl': xt_control.c:964: error: structure has no member named `file' xt_control.c:966: error: structure has no member named `bpp' xt_control.c:967: error: structure has no member named `play_cmd' xt_control.c:968: error: structure has no member named `video_cmd' xt_control.c:969: error: structure has no member named `edit_cmd' xt_control.c:975: warning: assignment makes pointer from integer without a cast xt_control.c: In function `InitControl': xt_control.c:1118: error: structure has no member named `file' xt_control.c:1119: error: structure has no member named `targetCodec' xt_control.c:1120: error: structure has no member named `compress' xt_control.c:1121: error: structure has no member named `fps' xt_control.c:1122: error: structure has no member named `time' xt_control.c:1123: error: structure has no member named `frames' xt_control.c:1124: error: structure has no member named `start_no' xt_control.c:1125: error: structure has no member named `step' xt_control.c:1126: error: structure has no member named `quality' xt_control.c:1130: error: structure has no member named `sndrate' xt_control.c:1131: error: structure has no member named `sndsize' xt_control.c:1132: error: structure has no member named `sndchannels' xt_control.c:1174: error: too many arguments to function `job_set_save_function' xt_control.c:1182: error: `CAP_FFM' undeclared (first use in this function) make[2]: *** [xvidcap-xt_control.o] Error 1 make[2]: Leaving directory `/home/data/users/socrates/Compile/GUI/xvidcap-1.1.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/data/users/socrates/Compile/GUI/xvidcap-1.1.4' make: *** [all] Error 2V diskuzním fóru projektu je tento dotaz položen 2x již od jiných lidí, ale bez odpovědí (1x z r. 2004 a nově též z r. 2005). Poradí někdo?
In file included from xtoffmpeg.c:47: ../ffmpeg/avcodec.h:14:20: common.h: No such file or directoryNemůže najít
common.h
z ffmpeg (normálně je v /usr/include/ffmpeg/common.h
), který includuje např inttypes.h
...
Jestli ten máš ffmpeg nainstalovaný nějak podivně, tak dej překladači parametrem -I
cjméno adresáře s common.h
.
locate common.h | grep ffmpeg /usr/local/include/ffmpeg/common.h /home/data/users/socrates/Compile/LIB/ffmpeg-0.4.9-pre1/libavcodec/common.hz čehož i plyne, jakou verzi ffmpegu mám nainstalovanou... nainstaloval-li bych starší, asi bych přišel o funkční transcode (což mi dalo dost zabrat, aby fungovalo úplně komplet se vším všudy...)
/home/data/users/socrates/Compile/GUI/xvidcap-1.1.3-p7/ffmpeg/
smaž ten avcodec.h, ten se ti tam dostal omylem (*). Musí se includovat avcodec.h z /usr/local/include/ffmpeg
(ověř si pomocí CFLAGS=--save-temps
-- v xtoffmpeg.i
budou celé cesty použitých hlavičkových souborů).
Jinak /usr/local/lib
s tím zatím nemá nic společného, tam jsou knihovny (*.so *.a)
(*) Nebo rovnou smaž /home/data/users/socrates/Compile/GUI/xvidcap-1.1.3-p7
a rozbal to znova, udělal sis tam asi trochu bordel...
In file included from xtoffmpeg.c:48: ../ffmpeg/avformat.h:16:21: avcodec.h: No such file or directory ../ffmpeg/avformat.h:30:1: warning: "AV_NOPTS_VALUE" redefined In file included from xtoffmpeg.c:47: /usr/local/include/ffmpeg/avcodec.h:29:1: warning: this is the location of the previous definition make[2]: *** [xvidcap-xtoffmpeg.o] Error 1 make[2]: Leaving directory `/home/data/users/socrates/Compile/GUI/xvidcap-1.1.3-p7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/data/users/socrates/Compile/GUI/xvidcap-1.1.3-p7' make: *** [all] Error 2
CPPFLAGS=-I/opt/ffmpeg/include/ffmpeg LDFLAGS=-L/opt/ffmpeg/lib makeA vše proběhlo jak mělo. Děkuji Michalu Markovi za naprostou pomoc při řešení problému.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.