From owner-freebsd-multimedia@FreeBSD.ORG Sun Dec 24 00:33:12 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3B0516A403 for ; Sun, 24 Dec 2006 00:33:12 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 71A9013C441 for ; Sun, 24 Dec 2006 00:33:12 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0JAR00EWQ5JBVC50@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Sun, 24 Dec 2006 01:33:11 +0100 (CET) Received: from kg-work.kg4.no ([80.203.66.169]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0JAR00D585JB7L84@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Sun, 24 Dec 2006 01:33:11 +0100 (CET) Date: Sun, 24 Dec 2006 01:33:10 +0100 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20061222225305.GS78631@wantadilla.lemis.com> To: freebsd-multimedia@freebsd.org Message-id: <20061224013310.e1bff589.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.6; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <6300771b0612181401i72e7cc58ta08e12de8d68d4d0@mail.gmail.com> <20061218232247.GQ4364@wantadilla.lemis.com> <6300771b0612181533m6ece3f38p379c78a75912d10d@mail.gmail.com> <6300771b0612181534h3158342aw554869660fc707ea@mail.gmail.com> <20061218234041.GU4364@wantadilla.lemis.com> <4588D859.1010301@xs4all.nl> <20061220072001.GN4364@wantadilla.lemis.com> <20061222181656.23bd88e6.torfinn.ingolfsen@broadpark.no> <20061222225305.GS78631@wantadilla.lemis.com> Subject: Re: MythTV port committed (was: Possible FreeBSD port?) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Dec 2006 00:33:12 -0000 Hi everyone! On Sat, 23 Dec 2006 09:23:05 +1030 Greg 'groggy' Lehey wrote: > I didn't know about this script, but I have committed a new Hmm, perhaps you didn't get the mail I sent you (private)? > > I will try to get the port working under FreeBSD/amd64 so that I can > > test it. > > Thanks. Please let me know if you make any progress. Yesterday I > marked it i386 only, so you'll have to frob the Makefile. Ok. here is a short status on getting MythTV working under FreeBSD/amd64. 1) libdts. If you have libdts (multimedia/libdts) installed, you will hit this one. MythTV's configure isn't able to figure out that libdts on amd64 is named libdts_pic. Easy workaround: add '--disble-dts' to the configure line in the port Makefile . Proper fix: I really don't know. 2) when compiling libmythtv (libs/libmythtv) it fails on the file yuv2rgb.cpp, with this error: yuv2rgb.cpp: In function `void yuv420_argb32_non_mmx(unsigned char*, unsigned char*, unsigned char*, unsigned char*, int, int, int, int, int, int)': yuv2rgb.cpp:444: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:444: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:444: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:445: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:445: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:445: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:446: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:446: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:446: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:447: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:447: error: no matching function for call to `min(unsigned int, const int&)' yuv2rgb.cpp:447: error: no matching function for call to `min(unsigned int, const int&)' *** Error code 1 Stop in /usr/ports/multimedia/mythtv/work/mythtv-0.20/libs/libmythtv. *** Error code 1 The function call in line 444 of that file is this: RGBOUT(d1[R_OI], d1[G_OI], d1[B_OI], y1_ptr[0]); Which is defined at line 392 as: #define RGBOUT(r, g, b, y1)\ {\ y = (y1 - 16) * C_Y;\ r = std::min(UCHAR_MAX, std::max(0, (y + r_add) >> SCALE_BITS));\ g = std::min(UCHAR_MAX, std::max(0, (y + g_add) >> SCALE_BITS));\ b = std::min(UCHAR_MAX, std::max(0, (y + b_add) >> SCALE_BITS));\ } which is only using the standard min template from algorithm, I think. At the beginning of the yuv2rgb.cpp file we have these lines: #include #include #include So, can anyone explain to me why this fails? I tried searching Google, but didn't find anything. And that is the point at which I'm stuck now. Oh, and Merry Christmas, all of you! -- Regards, Torfinn Ingolfsen, Norway