From owner-freebsd-ports@FreeBSD.ORG Wed Jul 23 15:47:22 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CEFA1065677 for ; Wed, 23 Jul 2008 15:47:22 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7E58FC12 for ; Wed, 23 Jul 2008 15:47:21 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1511834fgb.35 for ; Wed, 23 Jul 2008 08:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9HTQ8x+V8sT/mfFm40/0AsAgBROkJC3gpgMRCMPK2so=; b=gxVGXz0GLrEkmH366a2vOonM6UVzqGf1W7L6XA7WCYjHn5gWHIJ/AKg0LQ+JEY6Wvk CqZl8nVriJ3IKqoiE4NtF2akYCcqAR/+Md1S8V6kRAWrnanc+hwVG9GVtP+mwm61C3Ik RnlBujufIJPkVd9V0mlMQFNCWJJRZbuUkCDg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nC5uyTM0f/gtj9Cs7HEfYLfdb3yNo9Gy5HZN35NPEZY0a+jljArDEmz6jVVt/YOm81 Rs0ONwAw/a2B6gC962xaiWBv1zjcD+X/h/ICzxpfN0vm05Ste1IwHdvZpf/+XYcqSJTB JQ96RC1I7qrN6CglR/ca5xukTHp5L4a8sHu7w= Received: by 10.86.31.18 with SMTP id e18mr216703fge.23.1216828040701; Wed, 23 Jul 2008 08:47:20 -0700 (PDT) Received: by 10.86.51.1 with HTTP; Wed, 23 Jul 2008 08:47:20 -0700 (PDT) Message-ID: <7d6fde3d0807230847o785a596au5a260e3b905e8d6a@mail.gmail.com> Date: Wed, 23 Jul 2008 08:47:20 -0700 From: "Garrett Cooper" To: "Okalany Daniel" In-Reply-To: <7d6fde3d0807230846l2dadde2dxa85a83067722b51c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <28f643d90807170416i333b12ceqd96845577b27890c@mail.gmail.com> <20080718113809.GA1175@straylight.m.ringlet.net> <20080719100140.GA3136@zod> <7d6fde3d0807191247u57c78ck4aac63a81f53ed7b@mail.gmail.com> <28f643d90807220132h1921a9adi7087c55bc1005bac@mail.gmail.com> <7d6fde3d0807220805w486c6028g69a8d417f5aae264@mail.gmail.com> <72c38b9b0807220846q5a77acbao8c070d8690d51ccc@mail.gmail.com> <28f643d90807230047w455eaa8qcfa8ef62c89cd217@mail.gmail.com> <7d6fde3d0807230846l2dadde2dxa85a83067722b51c@mail.gmail.com> Cc: Mike Brown , =?ISO-8859-1?Q?Rafa=EBl_Carr=E9?= , Peter Pentchev , freebsd-ports@freebsd.org Subject: Re: Vlc X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2008 15:47:22 -0000 On Wed, Jul 23, 2008 at 8:46 AM, Garrett Cooper wrote: > On Wed, Jul 23, 2008 at 12:47 AM, Okalany Daniel w= rote: >> >> >> On Tue, Jul 22, 2008 at 9:17 PM, Garrett Cooper wro= te: >>> >>> On Jul 22, 2008, at 8:46 AM, Rafa=EBl Carr=E9 wrote: >>> >>>> 2008/7/22 Garrett Cooper : >>>>> >>>>> On Tue, Jul 22, 2008 at 1:32 AM, Okalany Daniel >>>>> wrote: >>>>>> >>>>>> >>>>>> On Sat, Jul 19, 2008 at 10:47 PM, Garrett Cooper >>>>>> wrote: >>>>>>> >>>>>>> On Sat, Jul 19, 2008 at 3:01 AM, Rafa=EBl Carr=E9 >>>>>>> wrote: >>>>>>>> >>>>>>>> If you feel so, you can make all these options conditional on >>>>>>>> WITHOUT_X >>>>>>>> and send me a patch ;) >>>>>>>> >>>>>>>> i.e. for skins2 that would be: >>>>>>>> .if defined(WITH_SKINS) && !defined(WITHOUT_SKINS) && >>>>>>>> !defined(WITHOUT_X) >>>> >>>> That is the way to go in my opinion. >>>> >>>>>> Thanks alot guys.. The options that worked for me ( to install text >>>>>> only >>>>>> vlc) are: >>>>>> ./configure --disable-x11 --disable-xvideo --disable-glx --disable-s= dl >>>>>> --disable-sd --disable-wxwidgets --disable-skins2 --disable-freetype >>>>>> --disable-mad --disable-ffmpeg >>>> >>>> Do you have libX11 installed anyway on your system ? >>>> >>>> It would be clever to build VLC the same way on a system with libX11 >>>> and then verify each .so built, to see if they are not linked with >>>> libX11. >>>> >>>> That is to be sure autodetection will not enable something you don't >>>> want, i.e. not enabled if libX11 was not detected, but enabled if it >>>> was detected. >>>> If this is the case, that would mean more --disable-xx are required. >>>> >>>> The debian people verify each plugin (prefix/lib/vlc/**.so) when >>>> building vlc-nox package. >>>> >>>> Extract from debian/rules : >>>> >>>> # Check that we did not install a plugin linked with libX11 in vlc-n= ox >>>> ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) >>>> BORKED=3Dno; \ >>>> for file in $$(find debian/vlc-nox/usr/lib/vlc -name '*.so'); do \ >>>> if ldd $$file | grep -q libX11; then \ >>>> BORKED=3Dyes; \ >>>> echo $$file depends on libX11; \ >>>> fi; \ >>>> done; \ >>>> if test "$$BORKED" =3D yes; then exit 1; fi >>>> endif >>>> >>>>> Hi, >>>>> I'm contacting you because you are listed as the maintainer on >>>>> Freshports for the multimedia/vlc port for FreeBSD. >>>>> The user cited above, Okalany, was interested in compiling VLC >>>>> without X11 support to act as a multimedia server, but currently the >>>>> port doesn't allow for that type of functionality at this time. >>>> >>>> Ok >>>> >>>>> However, Okalany was able to get the source to compile without >>>>> X11 using the above options to configure (don't believe the >>>>> --disable-mad and --disable-ffmpeg options are required, but you >>>>> probably know better than us about that :)...), so we were wondering >>>>> whether or not the port could be modified to add a WITHOUT_X11 knob. >>>> >>>> Of course, but I am lazy to do the patch, so you have to do the work := ) >>>> However I'm glad to help if you have trouble >>>> >>>>> Thanks and we hope to hear back from you soon, >>>>> -Garrett, Okalany, et all >>> >>> >>> Rafael: >>> >>> Ah, didn't realize that was you. rofl... As the saying goes, good thing >>> you weren't a snake -- otherwise I'd be dead =3Do.... >>> >>> I'll fix up a patch for you soon. >>> >>> Okalany: >>> Do this on a compiled tree please -- >>> >>> sh -c 'for i in `find -type f`; if ldd "$i" | grep -q libX11; then echo >>> "$i depends on libX11.so"; fi; done' >> >> The command above didn't work for me so i used(because i think it would >> amount to the same): >> >> find . -type f -print | xargs ldd 2>/dev/null | grep -B 10 -A 4 libX11 >> >> Whose output is: >> >> libthr.so.3 =3D> /lib/libthr.so.3 (0x281aa000) >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> ./modules/access/vcd/libvcd_plugin.so: >> libthr.so.3 =3D> /lib/libthr.so.3 (0x281a4000) >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> ./modules/access/screen/libscreen_plugin.so: >> libthr.so.3 =3D> /lib/libthr.so.3 (0x281a1000) >> libSM.so.6 =3D> /usr/local/lib/libSM.so.6 (0x281b6000) >> libICE.so.6 =3D> /usr/local/lib/libICE.so.6 (0x281be000) >> libXext.so.6 =3D> /usr/local/lib/libXext.so.6 (0x281d5000) >> libX11.so.6 =3D> /usr/local/lib/libX11.so.6 (0x281e3000) >> libXdmcp.so.6 =3D> /usr/local/lib/libXdmcp.so.6 (0x282d0000) >> librpcsvc.so.4 =3D> /usr/lib/librpcsvc.so.4 (0x282d5000) >> libXau.so.6 =3D> /usr/local/lib/libXau.so.6 (0x282de000) >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> -- >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> ./modules/stream_out/libstream_out_mosaic_bridge_plugin.so: >> libthr.so.3 =3D> /lib/libthr.so.3 (0x281a2000) >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> ./modules/video_output/libopengl_plugin.so: >> libthr.so.3 =3D> /lib/libthr.so.3 (0x281a2000) >> libGL.so.1 =3D> /usr/local/lib/libGL.so.1 (0x281b7000) >> libGLU.so.1 =3D> /usr/local/lib/libGLU.so.1 (0x28218000) >> libm.so.5 =3D> /lib/libm.so.5 (0x28295000) >> libc.so.7 =3D> /lib/libc.so.7 (0x28089000) >> libX11.so.6 =3D> /usr/local/lib/libX11.so.6 (0x282ae000) >> libXext.so.6 =3D> /usr/local/lib/libXext.so.6 (0x2839b000) >> libXxf86vm.so.1 =3D> /usr/local/lib/libXxf86vm.so.1 (0x283a9000) >> libXdamage.so.1 =3D> /usr/local/lib/libXdamage.so.1 (0x283ae000) >> libXfixes.so.3 =3D> /usr/local/lib/libXfixes.so.3 (0x283b1000) >> >> So i think the files you're looking for are >> ./modules/access/screen/libscreen_plugin.so: >> ./modules/video_output/libopengl_plugin.so: >> >> Atleast thats it in my build. > > Ok, well that's one way to do it too. That's what I get for not > testing things out before I send them via email >_>. > > You didn't pass in... > > --disable-glx > > ... like I suggested in an earlier email. > > You also need to pass in --disable-screen. > > Recompile with those options and pass back the output again. > > Thanks, > -Garrett s/glx/opengl/g?