Ticket #15547 (closed defect: fixed)
cannot compile transcode
| Reported by: | laurent.perron@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | Cc: | cremes@…, liontooth@…, stephen.ng@…, bill-macports.org@… | |
| Port: |
Description
sudo port install transcode +a52dev +x264 +xvid
lead to the following error:
/usr/bin/gcc-4.0 -I/opt/local/include -I/opt/local/include -I/opt/local/include -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -no-cpp-precomp -D_INTL_REDIRECT_MACROS -o tcdecode tcdecode-tcdecode.o tcdecode-fileinfo.o tcdecode-ioaux.o tcdecode-mpg123.o tcdecode-decode_a52.o tcdecode-decode_dv.o tcdecode-decode_lavc.o tcdecode-decode_lzo.o tcdecode-decode_mov.o tcdecode-decode_mp3.o tcdecode-decode_mpeg2.o tcdecode-decode_ogg.o tcdecode-decode_yuv.o -L/opt/local/lib -lavcodec /opt/local/lib/libmp3lame.dylib /opt/local/lib/libmpeg2.dylib ../libtcvideo/.libs/libtcvideo.a ../aclib/.libs/libac.a ../libtc/.libs/libtc.a -lm -lz -ldl Undefined symbols:
"_mpeg2convert_rgb24", referenced from:
_mpeg2convert_rgb24$non_lazy_ptr in tcdecode-decode_mpeg2.o
I am running leopard using xcode 3.0
Change History
comment:2 Changed 5 years ago by peter.salas@…
I don't know how to go about fixing the port, but I was able to get the file in question to compile by adding "-lmpeg2convert" to the end of the compiler flags. Presumably a small change to the Makefile will solve it.
comment:4 Changed 5 years ago by bill-macports.org@…
libmpeg2convert's ld flags get picked up by pkg-config and libmpeg2convert is required to build. This port doesn't depend on pkgconfig and if configure picks up a non-ports pkg-config, that one won't know about the ports configs directory, so it never gets added to LIBMPEG2_EXTRA_FLAGS and thus never included in LIBMPEG2_FLAGS. This patch fixes the problem on a Mini/PPC, 10.4.11:
--- /opt/local//var/macports/sources/rsync.macports.org/release/ports/multimedia/transcode/Portfile~ 2008-08-10 16:13:02.000000000 -0400
+++ /opt/local//var/macports/sources/rsync.macports.org/release/ports/multimedia/transcode/Portfile 2008-08-10 16:13:30.000000000 -0400
@@ -37,6 +37,7 @@
depends_lib port:automake \
port:autoconf \
port:libtool \
+ port:pkgconfig \
port:ffmpeg \
port:libmpeg2 \
port:libdvdread \
I suspect it wouldn't be OS or architecture dependent.
comment:6 Changed 5 years ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
- Status changed from new to assigned


Cc maintainers.