Error compiling rev 90

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
kenthorvath
Posts: 5
Joined: Wed Jan 03, 2007 10:15 pm

Error compiling rev 90

Post by kenthorvath »

Compiling rev 90 on macintel with developer tools 2.4.1 and included jamintel gives the following error. I was able to compile 0.7.1 from m0k from source with no problems. Anyone have any ideas?

ranlib: file: libxvidcore.a(timer.o) has no symbols
ranlib: file: libxvidcore.a(timer.o) has no symbols
strip: input object file stripped: /Users/kenthorvath/Desktop/HandBrake/contrib/lib/libxvidcore.a(timer.o)
Cc libhb/common.o
Cc libhb/hb.o
libhb/hb.c:9:28: error: ffmpeg/avcodec.h: No such file or directory
libhb/hb.c: In function 'hb_init_real':
libhb/hb.c:108: warning: implicit declaration of function 'avcodec_init'
libhb/hb.c:109: warning: implicit declaration of function 'register_avcodec'
libhb/hb.c:109: error: 'mpeg4_encoder' undeclared (first use in this function)
libhb/hb.c:109: error: (Each undeclared identifier is reported only once
libhb/hb.c:109: error: for each function it appears in.)
libhb/hb.c:110: error: 'mp2_decoder' undeclared (first use in this function)
libhb/hb.c:111: error: 'ac3_encoder' undeclared (first use in this function)
libhb/hb.c: In function 'hb_get_preview':
libhb/hb.c:173: error: 'AVPicture' undeclared (first use in this function)
libhb/hb.c:173: error: parse error before 'pic1'
libhb/hb.c:174: error: 'ImgReSampleContext' undeclared (first use in this function)
libhb/hb.c:174: error: 'context' undeclared (first use in this function)
libhb/hb.c:181: warning: implicit declaration of function 'avpicture_fill'
libhb/hb.c:181: error: 'pic1' undeclared (first use in this function)
libhb/hb.c:181: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)
libhb/hb.c:183: error: 'pic2' undeclared (first use in this function)
libhb/hb.c:185: error: 'pic3' undeclared (first use in this function)
libhb/hb.c:187: error: 'pic4' undeclared (first use in this function)
libhb/hb.c:187: error: 'PIX_FMT_RGBA32' undeclared (first use in this function)
libhb/hb.c:205: warning: implicit declaration of function 'img_resample_full_init'
libhb/hb.c:212: warning: implicit declaration of function 'avpicture_deinterlace'
libhb/hb.c:214: warning: implicit declaration of function 'img_resample'
libhb/hb.c:220: warning: implicit declaration of function 'img_convert'

gcc -c -o libhb/hb.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/hb.c

...failed Cc libhb/hb.o ...
Cc libhb/ports.o
Cc libhb/scan.o
Cc libhb/work.o
Cc libhb/decmpeg2.o
Cc libhb/encavcodec.o
libhb/encavcodec.c:9:28: error: ffmpeg/avcodec.h: No such file or directory
libhb/encavcodec.c:14: error: parse error before 'AVCodecContext'
libhb/encavcodec.c:14: warning: no semicolon at end of struct or union
libhb/encavcodec.c:16: error: parse error before '}' token
libhb/encavcodec.c: In function 'encavcodecInit':
libhb/encavcodec.c:33: error: 'AVCodec' undeclared (first use in this function)
libhb/encavcodec.c:33: error: (Each undeclared identifier is reported only once
libhb/encavcodec.c:33: error: for each function it appears in.)
libhb/encavcodec.c:33: error: 'codec' undeclared (first use in this function)
libhb/encavcodec.c:34: error: 'AVCodecContext' undeclared (first use in this function)
libhb/encavcodec.c:34: error: 'context' undeclared (first use in this function)
libhb/encavcodec.c:36: error: invalid application of 'sizeof' to incomplete type 'hb_work_private_t'
libhb/encavcodec.c:39: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:41: warning: implicit declaration of function 'avcodec_find_encoder'
libhb/encavcodec.c:41: error: 'CODEC_ID_MPEG4' undeclared (first use in this function)
libhb/encavcodec.c:47: warning: implicit declaration of function 'avcodec_alloc_context'
libhb/encavcodec.c:64: error: 'AVRational' undeclared (first use in this function)
libhb/encavcodec.c:64: error: parse error before '{' token
libhb/encavcodec.c:66: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)
libhb/encavcodec.c:70: error: 'CODEC_FLAG_GLOBAL_HEADER' undeclared (first use in this function)
libhb/encavcodec.c:74: error: 'CODEC_FLAG_BITEXACT' undeclared (first use in this function)
libhb/encavcodec.c:78: error: 'CODEC_FLAG_GRAY' undeclared (first use in this function)
libhb/encavcodec.c:88: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:89: error: 'CODEC_FLAG_PASS1' undeclared (first use in this function)
libhb/encavcodec.c:96: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:97: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:98: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:99: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:102: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:103: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:104: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:106: error: 'CODEC_FLAG_PASS2' undeclared (first use in this function)
libhb/encavcodec.c:111: warning: implicit declaration of function 'avcodec_open'
libhb/encavcodec.c:115: error: dereferencing pointer to incomplete type
libhb/encavcodec.c: In function 'encavcodecClose':
libhb/encavcodec.c:142: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:145: warning: implicit declaration of function 'avcodec_close'
libhb/encavcodec.c:145: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:147: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:149: error: dereferencing pointer to incomplete type
libhb/encavcodec.c: In function 'encavcodecWork':
libhb/encavcodec.c:162: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:163: error: 'AVFrame' undeclared (first use in this function)
libhb/encavcodec.c:163: error: 'frame' undeclared (first use in this function)
libhb/encavcodec.c:166: warning: implicit declaration of function 'avcodec_alloc_frame'
libhb/encavcodec.c:176: warning: implicit declaration of function 'avcodec_encode_video'
libhb/encavcodec.c:176: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:180: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:182: warning: implicit declaration of function 'av_free'
libhb/encavcodec.c:187: error: dereferencing pointer to incomplete type
libhb/encavcodec.c:187: error: dereferencing pointer to incomplete type

gcc -c -o libhb/encavcodec.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/encavcodec.c

...failed Cc libhb/encavcodec.o ...
Cc libhb/update.o
Cc libhb/demuxmpeg.o
Cc libhb/fifo.o
Cc libhb/render.o
libhb/render.c:9:28: error: ffmpeg/avcodec.h: No such file or directory
libhb/render.c:15: error: parse error before 'ImgReSampleContext'
libhb/render.c:15: warning: no semicolon at end of struct or union
libhb/render.c:16: warning: type defaults to 'int' in declaration of 'pic_raw'
libhb/render.c:16: warning: data definition has no type or storage class
libhb/render.c:17: error: parse error before 'pic_deint'
libhb/render.c:17: warning: type defaults to 'int' in declaration of 'pic_deint'
libhb/render.c:17: warning: data definition has no type or storage class
libhb/render.c:18: error: parse error before 'pic_render'
libhb/render.c:18: warning: type defaults to 'int' in declaration of 'pic_render'
libhb/render.c:18: warning: data definition has no type or storage class
libhb/render.c:20: error: parse error before '}' token
libhb/render.c: In function 'renderWork':
libhb/render.c:102: error: dereferencing pointer to incomplete type
libhb/render.c:106: warning: implicit declaration of function 'avpicture_fill'
libhb/render.c:106: error: dereferencing pointer to incomplete type
libhb/render.c:106: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)
libhb/render.c:106: error: (Each undeclared identifier is reported only once
libhb/render.c:106: error: for each function it appears in.)
libhb/render.c:113: error: dereferencing pointer to incomplete type
libhb/render.c:115: error: dereferencing pointer to incomplete type
libhb/render.c:117: warning: implicit declaration of function 'avpicture_deinterlace'
libhb/render.c:117: error: dereferencing pointer to incomplete type
libhb/render.c:117: error: dereferencing pointer to incomplete type
libhb/render.c:120: error: dereferencing pointer to incomplete type
libhb/render.c:121: warning: implicit declaration of function 'img_resample'
libhb/render.c:121: error: dereferencing pointer to incomplete type
libhb/render.c:121: error: dereferencing pointer to incomplete type
libhb/render.c:121: error: dereferencing pointer to incomplete type
libhb/render.c:125: error: dereferencing pointer to incomplete type
libhb/render.c:127: error: dereferencing pointer to incomplete type
libhb/render.c:127: error: dereferencing pointer to incomplete type
libhb/render.c:132: error: dereferencing pointer to incomplete type
libhb/render.c:135: error: dereferencing pointer to incomplete type
libhb/render.c:137: error: dereferencing pointer to incomplete type
libhb/render.c:137: error: dereferencing pointer to incomplete type
libhb/render.c:137: error: dereferencing pointer to incomplete type
libhb/render.c: In function 'renderInit':
libhb/render.c:160: error: invalid application of 'sizeof' to incomplete type 'hb_work_private_t'
libhb/render.c:165: error: dereferencing pointer to incomplete type
libhb/render.c:170: error: dereferencing pointer to incomplete type
libhb/render.c:170: warning: implicit declaration of function 'img_resample_full_init'
libhb/render.c:179: error: dereferencing pointer to incomplete type
libhb/render.c:181: error: dereferencing pointer to incomplete type
libhb/render.c:181: error: dereferencing pointer to incomplete type
libhb/render.c:182: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)

gcc -c -o libhb/render.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/render.c

...failed Cc libhb/render.o ...
Cc libhb/reader.o
Cc libhb/muxcommon.o
Cc libhb/muxmp4.o
libhb/muxmp4.c:7:29: error: ffmpeg/avformat.h: No such file or directory
libhb/muxmp4.c:19: error: parse error before 'AVFormatContext'
libhb/muxmp4.c:19: warning: no semicolon at end of struct or union
libhb/muxmp4.c: In function 'MP4Init':
libhb/muxmp4.c:34: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:39: error: 'AVFormatContext' undeclared (first use in this function)
libhb/muxmp4.c:39: error: (Each undeclared identifier is reported only once
libhb/muxmp4.c:39: error: for each function it appears in.)
libhb/muxmp4.c:39: error: 'oc' undeclared (first use in this function)
libhb/muxmp4.c:40: error: 'AVStream' undeclared (first use in this function)
libhb/muxmp4.c:40: error: 'st' undeclared (first use in this function)
libhb/muxmp4.c:41: error: 'AVFormatParameters' undeclared (first use in this function)
libhb/muxmp4.c:41: error: parse error before 'params'
libhb/muxmp4.c:43: warning: implicit declaration of function 'register_protocol'
libhb/muxmp4.c:43: error: 'file_protocol' undeclared (first use in this function)
libhb/muxmp4.c:45: warning: implicit declaration of function 'av_register_all'
libhb/muxmp4.c:47: warning: implicit declaration of function 'av_alloc_format_context'
libhb/muxmp4.c:51: warning: implicit declaration of function 'guess_format'
libhb/muxmp4.c:76: warning: implicit declaration of function 'av_new_stream'
libhb/muxmp4.c:83: error: 'CODEC_FLAG_GLOBAL_HEADER' undeclared (first use in this function)
libhb/muxmp4.c:84: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)
libhb/muxmp4.c:86: error: 'CODEC_ID_H264' undeclared (first use in this function)
libhb/muxmp4.c:86: error: 'CODEC_ID_MPEG4' undeclared (first use in this function)
libhb/muxmp4.c:91: error: 'AVRational' undeclared (first use in this function)
libhb/muxmp4.c:91: error: parse error before '{' token
libhb/muxmp4.c:93: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)
libhb/muxmp4.c:116: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)
libhb/muxmp4.c:117: error: 'CODEC_ID_AAC' undeclared (first use in this function)
libhb/muxmp4.c:121: error: parse error before '{' token
libhb/muxmp4.c:129: warning: implicit declaration of function 'url_fopen'
libhb/muxmp4.c:129: error: 'URL_WRONLY' undeclared (first use in this function)
libhb/muxmp4.c:135: error: 'params' undeclared (first use in this function)
libhb/muxmp4.c:136: warning: implicit declaration of function 'av_set_parameters'
libhb/muxmp4.c:144: error: 'AV_TIME_BASE' undeclared (first use in this function)
libhb/muxmp4.c:146: error: 'AVFMT_NOOUTPUTLOOP' undeclared (first use in this function)
libhb/muxmp4.c:148: warning: implicit declaration of function 'av_write_header'
libhb/muxmp4.c:154: error: dereferencing pointer to incomplete type
libhb/muxmp4.c: In function 'MP4Mux':
libhb/muxmp4.c:162: error: 'AVPacket' undeclared (first use in this function)
libhb/muxmp4.c:162: error: parse error before 'pkt'
libhb/muxmp4.c:163: warning: implicit declaration of function 'av_init_packet'
libhb/muxmp4.c:163: error: 'pkt' undeclared (first use in this function)
libhb/muxmp4.c:172: error: 'PKT_FLAG_KEY' undeclared (first use in this function)
libhb/muxmp4.c:175: warning: implicit declaration of function 'av_interleaved_write_frame'
libhb/muxmp4.c:175: error: dereferencing pointer to incomplete type
libhb/muxmp4.c: In function 'MP4End':
libhb/muxmp4.c:182: warning: implicit declaration of function 'av_write_trailer'
libhb/muxmp4.c:182: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:183: warning: implicit declaration of function 'url_fclose'
libhb/muxmp4.c:183: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:184: warning: implicit declaration of function 'av_free'
libhb/muxmp4.c:184: error: dereferencing pointer to incomplete type
libhb/muxmp4.c: In function 'hb_mux_mp4_init':
libhb/muxmp4.c:191: error: invalid application of 'sizeof' to incomplete type 'hb_mux_object_t'
libhb/muxmp4.c:192: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:193: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:194: error: dereferencing pointer to incomplete type
libhb/muxmp4.c:195: error: dereferencing pointer to incomplete type

gcc -c -o libhb/muxmp4.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/muxmp4.c

...failed Cc libhb/muxmp4.o ...
Cc libhb/sync.o
libhb/sync.c:10:28: error: ffmpeg/avcodec.h: No such file or directory
libhb/sync.c: In function 'InitAudio':
libhb/sync.c:187: error: 'AVCodec' undeclared (first use in this function)
libhb/sync.c:187: error: (Each undeclared identifier is reported only once
libhb/sync.c:187: error: for each function it appears in.)
libhb/sync.c:187: error: 'codec' undeclared (first use in this function)
libhb/sync.c:188: error: 'AVCodecContext' undeclared (first use in this function)
libhb/sync.c:188: error: 'c' undeclared (first use in this function)
libhb/sync.c:191: warning: implicit declaration of function 'avcodec_find_encoder'
libhb/sync.c:191: error: 'CODEC_ID_AC3' undeclared (first use in this function)
libhb/sync.c:192: warning: implicit declaration of function 'avcodec_alloc_context'
libhb/sync.c:198: warning: implicit declaration of function 'avcodec_open'
libhb/sync.c:210: warning: implicit declaration of function 'avcodec_encode_audio'
libhb/sync.c:217: warning: implicit declaration of function 'avcodec_close'
libhb/sync.c:218: warning: implicit declaration of function 'av_free'

gcc -c -o libhb/sync.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/sync.c

...failed Cc libhb/sync.o ...
Cc libhb/decsub.o
Cc libhb/deca52.o
Cc libhb/encfaac.o
Cc libhb/declpcm.o
Cc libhb/encx264.o
Cc libhb/decavcodec.o
libhb/decavcodec.c:9:28: error: ffmpeg/avcodec.h: No such file or directory
libhb/decavcodec.c:28: error: parse error before 'AVCodecContext'
libhb/decavcodec.c:28: warning: no semicolon at end of struct or union
libhb/decavcodec.c:30: error: parse error before '}' token
libhb/decavcodec.c: In function 'decavcodecInit':
libhb/decavcodec.c:40: error: 'AVCodec' undeclared (first use in this function)
libhb/decavcodec.c:40: error: (Each undeclared identifier is reported only once
libhb/decavcodec.c:40: error: for each function it appears in.)
libhb/decavcodec.c:40: error: 'codec' undeclared (first use in this function)
libhb/decavcodec.c:41: error: invalid application of 'sizeof' to incomplete type 'hb_work_private_t'
libhb/decavcodec.c:44: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:46: warning: implicit declaration of function 'avcodec_find_decoder'
libhb/decavcodec.c:46: error: 'CODEC_ID_MP2' undeclared (first use in this function)
libhb/decavcodec.c:47: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:47: warning: implicit declaration of function 'avcodec_alloc_context'
libhb/decavcodec.c:48: warning: implicit declaration of function 'avcodec_open'
libhb/decavcodec.c:48: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:49: error: dereferencing pointer to incomplete type
libhb/decavcodec.c: In function 'decavcodecClose':
libhb/decavcodec.c:62: warning: implicit declaration of function 'avcodec_close'
libhb/decavcodec.c:62: error: dereferencing pointer to incomplete type
libhb/decavcodec.c: In function 'decavcodecWork':
libhb/decavcodec.c:76: error: 'AVCODEC_MAX_AUDIO_FRAME_SIZE' undeclared (first use in this function)
libhb/decavcodec.c:82: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:83: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:84: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:86: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:96: warning: implicit declaration of function 'avcodec_decode_audio'
libhb/decavcodec.c:96: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:107: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:130: error: dereferencing pointer to incomplete type
libhb/decavcodec.c:76: warning: unused variable 'buffer'

gcc -c -o libhb/decavcodec.o -Wall -g -O3 -funroll-loops -I./contrib/include -DSYS_DARWIN -DUSE_PTHREAD -DHB_VERSION=\"0.7.1a2\" -DHB_BUILD=20060923 -D__LIBHB__ -Ilibhb libhb/decavcodec.c

...failed Cc libhb/decavcodec.o ...
Cc libhb/encxvid.o
Cc libhb/muxavi.o
Cc libhb/enclame.o
Cc libhb/muxogm.o
libhb/muxogm.c: In function 'OGMInit':
libhb/muxogm.c:208: warning: pointer targets in assignment differ in signedness
Cc libhb/encvorbis.o
Cc libhb/dvd.o
...skipped libhb.a for lack of libhb.a(hb.o)...
Cc test/test.o
...skipped HBTest for lack of libhb.a...
...skipped HandBrake.app for lack of libhb.a...
...failed updating 7 target(s)...
...skipped 5 target(s)...
...updated 46 target(s)...
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Post by dynaflash »

Just out of curiosity, you wouldnt be the same kenthorvath that posted our binaries on Digg, would you ?
kenthorvath
Posts: 5
Joined: Wed Jan 03, 2007 10:15 pm

Post by kenthorvath »

The same. Sorry about the ensuing chaos. I didn't think it would get all that attention. I promise to refrain from doing stupid things in the future.

In any case, I wanted to try my hand at adding output to DVD5 as an option and maybe work on forced subtitles. But first, I need to get this thing to compile.

I'm using the current CVS (0.98.40) of nasm, the provided jam, and most recent xcode. No dice. I also have fink installed, so perhaps there is some package that is interfering, but I doubt it.
prigaux
Experienced
Posts: 94
Joined: Mon Jan 01, 2007 3:25 pm

Post by prigaux »

There is a problem in applying the ffmpeg macintel patch, simply remove it from jamfile in contrib folder and then ffmpeg will compile (the error is above these ones)

Philippe
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Post by dynaflash »

kenthorvath, knew I recognized that username from somewhere.

btw. compiles fine on ppc still.
rhester
Veteran User
Posts: 2888
Joined: Tue Apr 18, 2006 10:24 pm

Post by rhester »

Go easy on kenthorvath, guys. He's made his peace and is welcomed as a contributor here. :)

Rodney
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Post by dynaflash »

Cool. Works for me. Welcome kenthorvath!
Sorry, we got a little wound up. Glad to have you on board!
kenthorvath
Posts: 5
Joined: Wed Jan 03, 2007 10:15 pm

Post by kenthorvath »

Thanks, removing the patch worked like a charm.
Post Reply