Jump to content

Recommended Posts

Posted

Good morning,

 

I am trying to compile the lastest sources for the olinuxino-a20-micro and it fails on building libvdpau.

 

VM guest is Ubuntu Mate 14.04 

 

Here is what the actual error is (I left out the rest of the console log since it was fine):

Cloning into '/home/deskwizard/A20-armbian/output/cache/sdcard/tmp/libvdpau-sunxi'...
remote: Counting objects: 609, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 609 (delta 15), reused 1 (delta 1), pack-reused 582
Receiving objects: 100% (609/609), 299.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (407/407), done.
Checking connectivity... done.
cc -MD -MP -MQ device.o -fpic -fvisibility=hidden -Wall -O3 -c device.c -o device.o
cc -MD -MP -MQ presentation_queue.o -fpic -fvisibility=hidden -Wall -O3 -c presentation_queue.c -o presentation_queue.o
cc -MD -MP -MQ surface_output.o -fpic -fvisibility=hidden -Wall -O3 -c surface_output.c -o surface_output.o
cc -MD -MP -MQ surface_video.o -fpic -fvisibility=hidden -Wall -O3 -c surface_video.c -o surface_video.o
cc -MD -MP -MQ surface_bitmap.o -fpic -fvisibility=hidden -Wall -O3 -c surface_bitmap.c -o surface_bitmap.o
cc -MD -MP -MQ video_mixer.o -fpic -fvisibility=hidden -Wall -O3 -c video_mixer.c -o video_mixer.o
cc -MD -MP -MQ decoder.o -fpic -fvisibility=hidden -Wall -O3 -c decoder.c -o decoder.o
decoder.c: In function 'vdp_decoder_create':
decoder.c:63:7: error: 'VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE' undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE:
       ^
decoder.c:63:7: note: each undeclared identifier is reported only once for each function it appears in
decoder.c:64:7: error: 'VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH' undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH:
       ^
decoder.c: In function 'vdp_decoder_query_capabilities':
decoder.c:188:7: error: 'VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE' undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE:
       ^
decoder.c:189:7: error: 'VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH' undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH:
       ^
make: *** [decoder.o] Error 1
cp: cannot stat ‘/home/deskwizard/A20-armbian/output/cache/sdcard/tmp/libvdpau-sunxi/libvdpau_sunxi.so.1’: No such file or directory

Any pointers on what the issue might be or ways to figure it out ?

 

Thanks,

Deskwizard

Posted

Hi Igor,

 

Thanks for the quick reply. Unfortunately that did not work.

 

I'm going to try mainstream instead of legacy but I think I will get the same result as the kernel compiles ok, but libvdpau fails... missing headers maybe? I'll look into that when I have more free time

 

I'll have a look at what repository it clones and have a look in case I could fix.

 

Charles

Posted

OK, will check later today. I must have done something ... 

 

It's not possible to compile video acceleration within mainline kernel. There is nothing you can do.

Posted

Hi.

 

I'm having the same problem on Banana Pi M1+. I have a custom build Debian Jessie with kernel 3.4.109 and desktop XFCE, and when I run this command

mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4

I have this error

Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory

I tried to compile the libvdpau_sunxi.so by myself with

git clone https://github.com/linux-sunxi/libvdpau-sunxi.git
make

and this is the output

root@bananapipro:~/libvdpau-sunxi# make
cc -MD -MP -MQ device.o -fpic -fvisibility=hidden -Wall -O3 -c device.c -o device.o
cc -MD -MP -MQ presentation_queue.o -fpic -fvisibility=hidden -Wall -O3 -c presentation_queue.c -o presentation_queue.o
cc -MD -MP -MQ surface_output.o -fpic -fvisibility=hidden -Wall -O3 -c surface_output.c -o surface_output.o
cc -MD -MP -MQ surface_video.o -fpic -fvisibility=hidden -Wall -O3 -c surface_video.c -o surface_video.o
cc -MD -MP -MQ surface_bitmap.o -fpic -fvisibility=hidden -Wall -O3 -c surface_bitmap.c -o surface_bitmap.o
cc -MD -MP -MQ video_mixer.o -fpic -fvisibility=hidden -Wall -O3 -c video_mixer.c -o video_mixer.o
cc -MD -MP -MQ decoder.o -fpic -fvisibility=hidden -Wall -O3 -c decoder.c -o decoder.o
decoder.c: In function ‘vdp_decoder_create’:
decoder.c:63:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE:
       ^
decoder.c:63:7: note: each undeclared identifier is reported only once for each function it appears in
decoder.c:64:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH:
       ^
decoder.c: In function ‘vdp_decoder_query_capabilities’:
decoder.c:188:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE:
       ^
decoder.c:189:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)
  case VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH:
       ^
Makefile:43: recipe for target 'decoder.o' failed
make: *** [decoder.o] Error 1

Thanks

Posted

Sources are broken. I could compile the driver with going little back. Issue this before make

git checkout 906c36ed45ceb53fecd5fc72e821c11849eeb1a3
Posted

Hi,

 

I'm running into the same issue using the automatic build script.

How/where do I have to apply this "git checkout" so the compilation will run successfully?

 

BTW, I noticed shortly before the error message mentioned in the 1st post the following message in between:

fatal: Not a git repository (or any of the parent directories): .git

This happens in general when not in the correct directory - may be these problems are related?

Unfortunately I cannot show the position during compiling process, because the installer.log does not contain this output and the script breaks my desktop somehow (Ubuntu 14.04 LTS standard installation): After I have run it, most standard commands like "cat" make the terminal window close itself, so I need to work from console where I have no scroll buffer... :unsure:

Posted

hmmm,

 

I followed the steps mentioned here: http://www.armbian.com/using-armbian-tools/

...so I assume this is the "cleanest" source I can get. :(

 

I haven't digged too deep into how the scripts interact, so I didn't find where and how libvdbau is cloned and compiled yet - I hoped there would be an easy fix.

BTW, I really like this tool!

Posted

How/where do I have to apply this "git checkout" so the compilation will run successfully?

 

Now I see ... You don't need to apply this fix anymore ... I already add it to the script so it should be possible to compile.

 

Thanks!

Posted

unfortunately not:

Checking connectivity... done.

fatal: Not a git repository (or any of the parent directories): .git

cc —MD -MP —M0 device.o —fpic -fvisibility=hidden —Hall -03 —c device.c -o device.o

cc -MD -MP -M0 presentation_queue.o -fpic —fvisibility:hidden -Hall -03 —c presentation_queue.c -o presentation_queue.o

cc -MD -MP -H0 surface_output.o -fpic -fvisibility=hidden -Hall -03 —c surface_output.c —o surface_output.o

cc —MD -MP -M0 surface_video.o —fpic —fvisibility=hidden -Hall -03 —c surface_video.c —o surface_video.o

cc —MD -MP —M0 surface_bitmap.o —fpic -fvisibility=hidden —Hall -03 —c surface_bitmap.c —o surface_bitmap.o

cc —MD -MP —M0 uideo_mixer.o —fpic —fvisibility=hidden —Hall -03 —c video_mixer.c —o video_mixer.o
cc -MD -MP -H0 decoder.o -fpic -fvisibility=hidden -Hall -03 —c decoder.c —o decoder.o

decoder.c: In function ‘vdp_decoder_create’:

decoder.c:63:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)

decoder.c:63:7: note: each undeclared identifier is reported only once for each function it appears in

decoder.c:64:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)

decoder.c:73:7: error: ‘VDP_DECODER_PROFILE_HEVO_MAIN’ undeclared (first use in this function)
decoder.c: In function ‘vdp_decoder_query_capabilities’:

decoder.c:19S:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)

decoder.c:196:?: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)

decoder.c:20S:?: error: ‘VDP_DECODER_PROFILE_HEVO_MAIN’ undeclared (first use in this function)
decoder.c:206:16: error: ‘VDP_DECODER_LEVEL_HEVC_5’ undeclared (first use in this function)

make: *** [decoder.o] Error 1

cp: cannot stat ‘/home/tom/output/cache/sdcard/tmp/libvdpau—sunxi/libvdpau_sunxi.so.1’: No such file or directory

[ o.K. ] Installing external applications [ USB redirector ]

[ o.K. ] Installing external applications [ RT8192 driver ]


(Screenshot taken during the important part and converted by OCR, so there may be typos)

The same errors still occur - also you can see the git error on top I mentioned before.
 
Oh - I forgot to mention, trying to compile for Cubieboard2, Debian Wheezy (3.4 kernel version), with Desktop.

Posted
- git clone https://github.com/linux-sunxi/libvdpau-sunxi.git $DEST/cache/sdcard/tmp/libvdpau-sunxi
 + git clone https://github.com/linux-sunxi/libvdpau-sunxi.git $DEST/cache/sdcard/tmp/libvdpau-sunxi 
 + # temporaly fix
 + chroot $DEST/cache/sdcard /bin/bash -c "git checkout 906c36ed45ceb53fecd5fc72e821c11849eeb1a3"
   chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/libvdpau-sunxi && make"

Igor, you need to execute "git checkout" in sdcard's /tmp/libvdpau-sunxi directory, not in sdcard's root. Something like this:

chroot $DEST/cache/sdcard /bin/bash -c "cd /tmp/libvdpau-sunxi; git checkout 906c36ed45ceb53fecd5fc72e821c11849eeb1a3"
Posted

Finding your own mistakes is sometimes hard. :( Thank you!

 

Edit: It's working now @branch master

Posted

I have removed lib, output and source directories to start from scratch, but I still see the error?

(This time I started "sudo ./compile.sh 2>compile.log" - below the last lines)


autoreconf: Leaving directory `.'
fbdev.c: In function 'FBDevPciProbe':
fbdev.c:289:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c: In function 'FBDevProbe':
fbdev.c:348:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c: In function 'FBDevPreInit':
fbdev.c:467:2: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/xorg/fbdevhw.h:21:23: note: expected 'char *' but argument is of type 'const char *'
Cloning into '/home/tom/output/cache/sdcard/tmp/libvdpau-sunxi'...
fatal: Not a git repository (or any of the parent directories): .git
decoder.c: In function ‘vdp_decoder_create’:
decoder.c:63:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)
decoder.c:63:7: note: each undeclared identifier is reported only once for each function it appears in
decoder.c:64:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)
decoder.c:73:7: error: ‘VDP_DECODER_PROFILE_HEVC_MAIN’ undeclared (first use in this function)
decoder.c: In function ‘vdp_decoder_query_capabilities’:
decoder.c:195:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_BASELINE’ undeclared (first use in this function)
decoder.c:196:7: error: ‘VDP_DECODER_PROFILE_H264_CONSTRAINED_HIGH’ undeclared (first use in this function)
decoder.c:205:7: error: ‘VDP_DECODER_PROFILE_HEVC_MAIN’ undeclared (first use in this function)
decoder.c:206:16: error: ‘VDP_DECODER_LEVEL_HEVC_5’ undeclared (first use in this function)
make: *** [decoder.o] Error 1
cp: cannot stat ‘/home/tom/output/cache/sdcard/tmp/libvdpau-sunxi/libvdpau_sunxi.so.1’: No such file or directory

What am I doing wrong?

Posted

Are you using branch master? You need to alter compile.sh to get proper script.

Poslano z mojega MI 2S z uporabo Tapatalk

Posted

I have only added "git checkout master" above the last "if" block to compile.sh because I want to have a stable "starting point" before I try any experiments. B)

Posted

I have deleted all folders, only the compile.sh was left, so everything was reloaded. Currently I'm not near that machine, I will provide the output later.

Anyway thanks to both of you for your assistance!

 

€dit:

"git status" shows I was on branch "second"! :o

I have overlooked that in case of a fresh download I need to descend to lib first. Will give it another try now.

 

2nd €dit:

"git clone --depth 1" does only contain the "second" branch, my previous assumption was wrong. I couldn't switch to the master branch, git always told me it doesn't know this.

Now I changed the line to "git clone -b master -- depth 1 [...]". Next try. ;)

Posted

ok, this worked, yay! :)

 

One error remained but looks not critical:

ln: failed to create symbolic link '/home/tom/output/cache/sdcard/usr/lib/vdpau/libvdpau_sunxi.so.1': File exists

Now I'll have to do some tests with the image, but that probably won't happen this year... :(

 

Thanks for your quick support!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines