Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-25 Thread Andy Furniss

Christian König wrote:

Hi,

sorry for the late reply, have been in Canada on a team meeting.

Did you got it working Andy or do you need some more help?


It's OK, now thanks.

I have started setting LDFLAGS as Dan suggested.



I think the overall situation with finding libraries in the mesa
makefiles is not the best, but that's not prio 1 at the moment.

It should work with a standard installation (pkgconf based), but I don't
think that it will work if you try something unusual, like cross
compiling or having multiple versions of a lib installed in different
directories...


Yea - I usually disable llvm because it doesn't use pkgconf, but it 
usually seems to work apart from that.


vdpau does have it's own .pc and my PKG_CONFIG_PATH is set - it's just 
that it wasn't checked for.


For me it's probably safer using LDFLAGS and CPPFLAGS anyway as I have 
other things in abnormal places.

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-24 Thread Christian König
Hi,

sorry for the late reply, have been in Canada on a team meeting.

Did you got it working Andy or do you need some more help?

I think the overall situation with finding libraries in the mesa
makefiles is not the best, but that's not prio 1 at the moment.

It should work with a standard installation (pkgconf based), but I don't
think that it will work if you try something unusual, like cross
compiling or having multiple versions of a lib installed in different
directories...

Christian.


Am Sonntag, den 17.07.2011, 07:56 -0700 schrieb Dan Nicholson:
 On Jul 15, 2011 12:06 PM, Andy Furniss andy...@ukfsn.org wrote:
 
  Andy Furniss wrote:
 
  I have another problem though, vdpau-softpipe is not using my
  LD_LIBRARY_PATH so fails to find where my lvdpau is.
 
  As you can see from below r600 does use it and adds
  -L/home/andy/Src/Xorg-git/modular/lib and links OK.
 
 
  Maybe this doesn't come from LD_LIBRARY_PATH and instead it works by
 luck as my libdrm is in the same place - I guess it comes from
 pkgconfig as the r600 Makefile has -
 
  DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
 
 Yeah, that's he reason. You want to use LDFLAGS at build time.
 LD_LIBRARY_PATH is used at run time.



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-17 Thread Dan Nicholson
On Jul 15, 2011 12:06 PM, Andy Furniss andy...@ukfsn.org wrote:

 Andy Furniss wrote:

 I have another problem though, vdpau-softpipe is not using my
 LD_LIBRARY_PATH so fails to find where my lvdpau is.

 As you can see from below r600 does use it and adds
 -L/home/andy/Src/Xorg-git/modular/lib and links OK.


 Maybe this doesn't come from LD_LIBRARY_PATH and instead it works by luck
as my libdrm is in the same place - I guess it comes from pkgconfig as the
r600 Makefile has -

 DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes

Yeah, that's he reason. You want to use LDFLAGS at build time.
LD_LIBRARY_PATH is used at run time.

--
Dan
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-15 Thread Andy Furniss

Andy Furniss wrote:


make[3]: *** No rule to make target
`../../../../src/gallium/winsys/sw/xlib/libws_xlib.a', needed by
`../../../../lib/gallium/libvdpau_softpipe.so'. Stop.


I see this is fixed now in master.

I have another problem though, vdpau-softpipe is not using my 
LD_LIBRARY_PATH so fails to find where my lvdpau is.


As you can see from below r600 does use it and adds 
-L/home/andy/Src/Xorg-git/modular/lib and links OK.


make[3]: Entering directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-r600'
gcc -c -I../../../../src/gallium/include 
-I../../../../src/gallium/drivers -I../../../../src/gallium/auxiliary 
-I../../../../src/gallium/winsys -I../../../../src/gallium/winsys/g3dvl 
 -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fno-strict-aliasing -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -DGALLIUM_TRACE -DVER_MAJOR=1 
-DVER_MINOR=0  -fvisibility=hidden -DGALLIUM_TRACE -DVER_MAJOR=1 
-DVER_MINOR=0  target.c -o target.o
/bin/sh ../../../../bin/mklib -o vdpau_r600 -linker 'gcc' -ldflags ' 
-lstdc++' \

-major 1 -minor 0  \
-install ../../../../lib/gallium \
target.o 
../../../../src/gallium/state_trackers/vdpau/*.o 
../../../../src/gallium/state_trackers/vdpau/libvdpautracker.a 
../../../../src/gallium/drivers/r600/libr600.a 
../../../../src/gallium/winsys/g3dvl/dri/libvldri.a 
../../../../src/gallium/winsys/r600/drm/libr600winsys.a 
../../../../src/gallium/drivers/trace/libtrace.a 
../../../../src/gallium/auxiliary/libgallium.a 
-L/home/andy/Src/Xorg-git/modular/lib -ldrm   -lXfixes -lvdpau -lXext 
-lX11 -lm

mklib: Making Linux shared library:  libvdpau_r600.so.1.0
mklib: Installing libvdpau_r600.so.1.0 libvdpau_r600.so.1 
libvdpau_r600.so in ../../../../lib/gallium
make[3]: Leaving directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-r600'
make[3]: Entering directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-softpipe'

../Makefile.vdpau:69: depend: No such file or directory
rm -f depend
touch depend
/home/andy/Src/Xorg-git/modular/bin/makedepend -fdepend 
-I/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/include -DGALLIUM_TRACE 
-DVER_MAJOR=1 -DVER_MINOR=0 -DGALLIUM_SOFTPIPE 
-I../../../../src/gallium/include -I../../../../src/gallium/drivers 
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/winsys 
-I../../../../src/gallium/winsys/g3dvl 
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.c \

 2 /dev/null
make[3]: Leaving directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-softpipe'
make[3]: Entering directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-softpipe'
gcc -c -I../../../../src/gallium/include 
-I../../../../src/gallium/drivers -I../../../../src/gallium/auxiliary 
-I../../../../src/gallium/winsys -I../../../../src/gallium/winsys/g3dvl 
 -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fno-strict-aliasing -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -DGALLIUM_TRACE -DVER_MAJOR=1 
-DVER_MINOR=0 -DGALLIUM_SOFTPIPE -fvisibility=hidden -DGALLIUM_TRACE 
-DVER_MAJOR=1 -DVER_MINOR=0 -DGALLIUM_SOFTPIPE 
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.c -o 
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.o
/bin/sh ../../../../bin/mklib -o vdpau_softpipe -linker 'gcc' -ldflags ' 
-lstdc++' \

-major 1 -minor 0  \
-install ../../../../lib/gallium \
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.o 
 ../../../../src/gallium/state_trackers/vdpau/*.o 
../../../../src/gallium/state_trackers/vdpau/libvdpautracker.a 
../../../../src/gallium/winsys/sw/xlib/libws_xlib.a 
../../../../src/gallium/drivers/softpipe/libsoftpipe.a 
../../../../src/gallium/auxiliary/libgallium.a   -lvdpau -lXext -lX11 -lm

mklib: Making Linux shared library:  libvdpau_softpipe.so.1.0
/usr/bin/ld: cannot find -lvdpau
collect2: ld returned 1 exit status
mklib: Installing libvdpau_softpipe.so.1.0 libvdpau_softpipe.so.1 
libvdpau_softpipe.so in ../../../../lib/gallium

mv: cannot stat `libvdpau_softpipe.so.1.0': No such file or directory

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-15 Thread Andy Furniss

Andy Furniss wrote:


I have another problem though, vdpau-softpipe is not using my
LD_LIBRARY_PATH so fails to find where my lvdpau is.

As you can see from below r600 does use it and adds
-L/home/andy/Src/Xorg-git/modular/lib and links OK.


Maybe this doesn't come from LD_LIBRARY_PATH and instead it works by 
luck as my libdrm is in the same place - I guess it comes from pkgconfig 
as the r600 Makefile has -


DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread ★ Emeric
Hi Christian,
I don't know if that deserve a check in the autoconf, but the XvMC
state tracker requires this #include xorg/fourcc.h from the xorg
server development package.
Someone had the problem on the #mesa-devel channel, and could not get
mesa to build with --enable-xvmc because of it, so I guess this is a
new dependency.

Emeric

2011/7/14 Christian König deathsim...@vodafone.de

 Hello list,

 I'm about to commit the attached patches, they add checks that the
 correct development packages are installed before enabling the different
 state trackers.

 Since me and autoconf are in a fight for several years now please take a
 look and check that I'm not doing anything stupid.

 Christian.

 ___
 mesa-dev mailing list
 mesa-dev@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/mesa-dev

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread Christian König
Hi Emeric,

thanks for the tip, I've added xorg-server development files to the
dependencies list and pushed it.

I've just take a look over your VP8 code, looks quite good so far, just
some side notes:
1.) regarding the picture parameter to decode_bitstream: Don't hack
around my bugs, just leave me a note so I can fix them. This parameter
should be of type pipe_picture_desc indeed, not
pipe_mpeg12_picture_desc.

2.) regarding VL_MAX_REF_FRAMES: Try to avoid defining a
VP8_VL_MAX_REF_FRAMES, just increase the value currently there. If
that's breaking something then leave me a note to fix it.

Don't hesitate to ask if you have any questions.

Regards,
Christian.

Am Donnerstag, den 14.07.2011, 15:17 +0200 schrieb ★ Emeric:
 Hi Christian,
 I don't know if that deserve a check in the autoconf, but the XvMC
 state tracker requires this #include xorg/fourcc.h from the xorg
 server development package.
 Someone had the problem on the #mesa-devel channel, and could not get
 mesa to build with --enable-xvmc because of it, so I guess this is a
 new dependency.
 
 Emeric
 
 2011/7/14 Christian König deathsim...@vodafone.de
 
  Hello list,
 
  I'm about to commit the attached patches, they add checks that the
  correct development packages are installed before enabling the different
  state trackers.
 
  Since me and autoconf are in a fight for several years now please take a
  look and check that I'm not doing anything stupid.
 
  Christian.
 
  ___
  mesa-dev mailing list
  mesa-dev@lists.freedesktop.org
  http://lists.freedesktop.org/mailman/listinfo/mesa-dev
 


___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread Alexandre Demers
May I suggest to fix that one also since there is a missing dependency
on d3dx state tracker?
https://bugs.freedesktop.org/show_bug.cgi?id=33938

Cheers,

-- 
Alexandre Demers

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread Dan Nicholson
2011/7/14 Christian König deathsim...@vodafone.de:
 Hello list,

 I'm about to commit the attached patches, they add checks that the
 correct development packages are installed before enabling the different
 state trackers.

 Since me and autoconf are in a fight for several years now please take a
 look and check that I'm not doing anything stupid.

Those look fine except for some mixed tabs (configure.ac is pretty
much 4 space indent with no tabs). It would be nice to get the build
to actually use the flags you collect from PKG_CHECK_MODULES. Hmm, I
guess the equivalent is done in the Makefile with $(shell pkg-config
...). Someday I'd like to fix all those so they're done once during
configure.

--
Dan
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread ★ Emeric
2011/7/14 Christian König deathsim...@vodafone.de:
 Hi Emeric,

 thanks for the tip, I've added xorg-server development files to the
 dependencies list and pushed it.

 I've just take a look over your VP8 code, looks quite good so far, just
 some side notes:
 1.) regarding the picture parameter to decode_bitstream: Don't hack
 around my bugs, just leave me a note so I can fix them. This parameter
 should be of type pipe_picture_desc indeed, not
 pipe_mpeg12_picture_desc.
Yes I should not have done it this way, I was just trying to make it
build. A proper fix is needed for the same thing in other places.

 2.) regarding VL_MAX_REF_FRAMES: Try to avoid defining a
 VP8_VL_MAX_REF_FRAMES, just increase the value currently there. If
 that's breaking something then leave me a note to fix it.
Just increasing VL_MAX_REF_FRAMES is probably not going to break
anything but the mpeg2 decoder would then have unused motion vectors
processed at different places.

These defines are mostly applying to the mpeg2 decoder, so it makes
sense to create more defines I guess ?
VL_MAX_REF_FRAMES : H.264 can have 16, VP8 4, mpeg1/2 divx and vc1 can have 2.
BLOCK_WIDTH : Block size is 8x8 for for some mpeg codecs, VP8 uses 8x8
and H.264 can have 8x8 and 4x4 at the same time.
VL_MAX_PLANES : H.264 can have only one plane when using 4:0:0
monochrome subsampling.

 Don't hesitate to ask if you have any questions.
Thanks. I am still trying to get libav to send the VP8 data through
VDPAU, but as soon as I dive into the vp8 decoder I will have a lot of
questions for sure ;-)

Cheers,
Emeric

 Regards,
 Christian.

 Am Donnerstag, den 14.07.2011, 15:17 +0200 schrieb ★ Emeric:
 Hi Christian,
 I don't know if that deserve a check in the autoconf, but the XvMC
 state tracker requires this #include xorg/fourcc.h from the xorg
 server development package.
 Someone had the problem on the #mesa-devel channel, and could not get
 mesa to build with --enable-xvmc because of it, so I guess this is a
 new dependency.

 Emeric

 2011/7/14 Christian König deathsim...@vodafone.de
 
  Hello list,
 
  I'm about to commit the attached patches, they add checks that the
  correct development packages are installed before enabling the different
  state trackers.
 
  Since me and autoconf are in a fight for several years now please take a
  look and check that I'm not doing anything stupid.
 
  Christian.
 
  ___
  mesa-dev mailing list
  mesa-dev@lists.freedesktop.org
  http://lists.freedesktop.org/mailman/listinfo/mesa-dev
 



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH] g3dvl: check for existence of header/libs

2011-07-14 Thread Andy Furniss

Christian König wrote:

Hello list,

I'm about to commit the attached patches, they add checks that the
correct development packages are installed before enabling the different
state trackers.


Don't know if this one is specific to my setup/options but -

./autogen.sh --prefix=/home/andy/Src/Xorg-git/modular --enable-debug 
--disable-egl --enable-texture-float --enable-gallium-g3dvl 
--disable-gallium-llvm --with-gallium-drivers=r600,swrast 
--with-dri-drivers=r600,swrast


make[3]: Entering directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-softpipe'
gcc -c -I../../../../src/gallium/include 
-I../../../../src/gallium/drivers -I../../../../src/gallium/auxiliary 
-I../../../../src/gallium/winsys -I../../../../src/gallium/winsys/g3dvl 
 -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math 
-fno-strict-aliasing -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -DGALLIUM_TRACE -DVER_MAJOR=1 
-DVER_MINOR=0 -DGALLIUM_SOFTPIPE -fvisibility=hidden -DGALLIUM_TRACE 
-DVER_MAJOR=1 -DVER_MINOR=0 -DGALLIUM_SOFTPIPE 
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.c -o 
../../../../src/gallium/winsys/g3dvl/xlib/xsp_winsys.o
make[3]: *** No rule to make target 
`../../../../src/gallium/winsys/sw/xlib/libws_xlib.a', needed by 
`../../../../lib/gallium/libvdpau_softpipe.so'.  Stop.

make[3]: *** Waiting for unfinished jobs
make[3]: Leaving directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets/vdpau-softpipe'

make[2]: *** [default] Error 1
make[2]: Leaving directory 
`/home/andy/Src/Mesa-git/mesa/src/gallium/targets'

make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/andy/Src/Mesa-git/mesa/src'
make: *** [default] Error 1

It builds OK if I use --with-gallium-drivers=r600

--with-gallium-drivers=r600,swrast is OK as long as I don't 
--enable-gallium-g3dvl.


--with-xorg makes no difference.

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev