Compile error on PPC/Linux: what am I forgetting?

Old forum that is now archived. Please use one of the other forums.
Andy in Chi

Compile error on PPC/Linux: what am I forgetting?

Postby Andy in Chi » 30 Jan 2004 19:05

Ok, I am trying to compile vlc 0.7.0 on my ppc, and I get the following error when I do a make:

me':
/home/goldinga/ffmpeg/libavcodec/lcl.c:565: undefined reference to `deflateReset'
/home/goldinga/ffmpeg/libavcodec/libavcodec.a(lcl.o)(.text+0x19f8):/home/goldinga/ffmpeg/libavcodec/lcl.c:575: undefined reference to `deflate'
/home/goldinga/ffmpeg/libavcodec/libavcodec.a(lcl.o)(.text+0x1ea8): In function
`decode_init':
/home/goldinga/ffmpeg/libavcodec/lcl.c:726: undefined reference to `inflateInit_'
/home/goldinga/ffmpeg/libavcodec/libavcodec.a(lcl.o)(.text+0x2010): In function
`encode_init':
/home/goldinga/ffmpeg/libavcodec/lcl.c:794: undefined reference to `deflateInit_'
/home/goldinga/ffmpeg/libavcodec/libavcodec.a(lcl.o)(.text+0x20e0): In function
`decode_end':
/home/goldinga/ffmpeg/libavcodec/lcl.c:828: undefined reference to `inflateEnd'
/home/goldinga/ffmpeg/libavcodec/libavcodec.a(lcl.o)(.text+0x2130): In function
`encode_end':
/home/goldinga/ffmpeg/libavcodec/lcl.c:848: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/goldinga/vlc-0.7.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/goldinga/vlc-0.7.0'
make: *** [all] Error 2

I have ffmpeg (src) and zlib 1.1.14 (src) compiled and installed. What have I messed up?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 31 Jan 2004 02:51

deflate sounds like a zlib call try configuring ffmpeg without zlib support are edit vlc's configure.ac to have the ffmpeg modules to be linked with -lz
Don't use PMs for support questions.

Andy in Chi

errors

Postby Andy in Chi » 31 Jan 2004 04:55

Alright... adding -lz to the config file worked for those errors.

Now I got new ones coming:
ng directory `/home/goldinga/vlc-0.7.0'
srcdir=. ./toolbox --update-includes
srcdir=. ./toolbox --update-includes
srcdir=. ./toolbox --update-includes
gcc -Wsign-compare -Wall -finline-limit-30000 -pipe -o vlc src/vlc-vlc.o lib/libvlc.a ./modules/codec/ffmpeg/libffmpeg.a ./modules/stream_out/libstream_out_transcode.a -L/usr/local/lib -lrt -lpthread -ldl -L/home/goldinga/ffmpeg/libavcodec
-lavcodec -lm -lz -L/home/goldinga/ffmpeg/libavcodec -lm
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-postprocess.o)(.text+0x308): In function `PPQCallback':
: undefined reference to `pp_get_mode_by_name_and_quality'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-postprocess.o)(.text+0x480): In function `InitPostproc__ffmpeg':
: undefined reference to `pp_get_context'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-postprocess.o)(.text+0x6bc): In function `PostprocPict__ffmpeg':
: undefined reference to `pp_postprocess'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-postprocess.o)(.text+0x724): In function `ClosePostproc__ffmpeg':
: undefined reference to `pp_free_mode'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-postprocess.o)(.text+0x734): In function `ClosePostproc__ffmpeg':
: undefined reference to `pp_free_context'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/goldinga/vlc-0.7.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/goldinga/vlc-0.7.0'
make: *** [all] Error 2

ak! what now?

-Andy

Andy in Chi

Postby Andy in Chi » 31 Jan 2004 05:11

Nix that last reply, I got it to compile.

had to add -L/(ffmpegdir)/libavcodec/libpostproc -lpostproc to the vlc.config file

-Andy

Mondo
New Cone
New Cone
Posts: 4
Joined: 11 Apr 2004 12:37
Contact:

Postby Mondo » 12 Apr 2004 03:17

Nix that last reply, I got it to compile.

had to add -L/(ffmpegdir)/libavcodec/libpostproc -lpostproc to the vlc.config file

-Andy
Hi Andy!
I am trying to compile VLC on my ppc.too. Would you please tell me what to do?
I download the source code of VLC and open the "vcw" in "EVC" folder. But it shows many errors. :cry:
thanks for your help!

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 12 Apr 2004 22:28

wouldn't you think ./configure
make
make install

would be a bit more logical?
Don't use PMs for support questions.


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 32 guests