LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 08-28-2017, 03:04 PM   #16
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980

subscribed (fwiw)
 
Old 08-29-2017, 11:48 AM   #17
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@SCerovec

Are you interested in Kodi or just OMXPlayer?
I'm still waiting for a reply (contacted privately on E-Mail) from the original Slack x86 Kodi SlackBuild creator. If he's not curious about a collaboration, I might then just do some cosmetic work myself and publish my derived (and butchered) Kodi SlackBuild for ARM (Raspberry Pi). Obviously I'll start a new thread for that.

There is however a small issue with a Kodi dep package that I was not able to compile (someone might be more knowledgeable and do it) - create a tinyXML-2.6.2.so library:
http://www.grinninglizard.com/tinyxml/
https://sourceforge.net/projects/tinyxml/

I have it compiled for both armv6 SF and armv7 HF (extracted from some Debian packages) but I'll need to publish them somewhere for others to be able to download.

Last edited by abga; 08-29-2017 at 11:53 AM.
 
Old 08-30-2017, 09:43 AM   #18
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
@abga,
I'm interested in all maters video acceleration on ARM platforms in the low budget niche:
Rpi
Bpi
Opi
... so far not much luck (Rpi isn't open source hardware, yet has most decent acceleration), but i hope mali/lima comes to mainline soon?

Until then I "throw nets" all over the place in high on hope for an break thru?
 
Old 08-30-2017, 11:54 AM   #19
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@SCerovec

Even if the Rpi VideoCore Broadcom internals are, as you say, closed source, you still can use all of the HW accelerated features with their so called "drivers" from /opt/vc.
http://elinux.org/Raspberry_Pi_VideoCore_APIs
The only issue with running another OS (not Raspbian) on the Pi is that you need to either statically link your multimedia programs to the /opt/vc libs or, do as I do, change the symlinks with the help of some scripts:

cat /kit/glx
#! /bin/sh
cd /usr/lib
rm libEGL.so
ln -s libEGL.so.1.0.0 libEGL.so
rm libGLESv2.so
ln -s libGLESv2.so.2.0.0 libGLESv2.so

cat /kit/glkodi
#! /bin/sh
cd /usr/lib
rm libEGL.so
ln -s /opt/vc/lib/libEGL.so libEGL.so
rm libGLESv2.so
ln -s /opt/vc/lib/libGLESv2.so libGLESv2.so

I do this for Kodi 17.x, because they choose to link it (build scripts) with /usr/lib

Will write a Kodi building HowTo once I'm done with the Slack ARM armv6 HF build.
 
Old 08-30-2017, 04:32 PM   #20
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
True,
the compromise Raspberry foundation took, seem to have yielded the soonest solution to any acceleration at all?

It remains to be seen if lima makes it in time to the recent kernels? If I understand correctly, the c.h.i.p. seems to make 4.4.x kernels able to use mali.ko and the binary blob?
 
Old 10-02-2017, 10:38 AM   #21
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
So, was trying to build omxplayer on the latest -current and I'm running into the following error:
Code:
gcc is unable to create an executable file.    
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.                     
                                           
If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.                        
make[1]: *** [Makefile.ffmpeg:21: configure] Error 1
make[1]: Leaving directory '/tmp/SBo/omxplayer-git'
make: *** [Makefile:80: ffmpeg] Error 2
Any ideas? I'm still fairly a beginner when it comes to troubleshooting on the ARM platform.
 
Old 10-02-2017, 11:09 AM   #22
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Seems that it's the ffmpeg portion of the script that is failing:

Code:
gcc: error: missing argument to '-mfloat-abi='
C compiler test failed.
Trying to figure out where to insert the -mfloat-abi=hard in the SlackBuild to make it work.
 
Old 10-02-2017, 01:51 PM   #23
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
@stormtracknole:
In the Slackbuild script, try changing the lines:

Code:
sed -e '/--enable-cross-compile/d;' \
    -e '/--cross-prefix/d;' \
    -e '/--extra-cflags/ s/-mfpu=vfp //g;' \
    -i Makefile.ffmpeg
to
Code:
sed -e '/--enable-cross-compile/d;' \
    -e '/--cross-prefix/d;' \
    -e '/--extra-cflags/ s/-mfpu=vfp //g;' \
    -e 's/-mfloat-abi=$(FLOAT)//g' \
    -i Makefile.ffmpeg
 
2 members found this post helpful.
Old 10-02-2017, 02:15 PM   #24
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by slacksam View Post
@stormtracknole:
In the Slackbuild script, try changing the lines:

Code:
sed -e '/--enable-cross-compile/d;' \
    -e '/--cross-prefix/d;' \
    -e '/--extra-cflags/ s/-mfpu=vfp //g;' \
    -i Makefile.ffmpeg
to
Code:
sed -e '/--enable-cross-compile/d;' \
    -e '/--cross-prefix/d;' \
    -e '/--extra-cflags/ s/-mfpu=vfp //g;' \
    -e 's/-mfloat-abi=$(FLOAT)//g' \
    -i Makefile.ffmpeg
PERFECT!! That cleared that issue. It's compiling now. Will report back once it's done. Thank you kindly!
 
Old 10-02-2017, 03:00 PM   #25
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Well, it got this far along now:

Code:
/usr/lib/gcc/arm-slackware-linux-gnueabi/7.1.0/../../../../arm-slackware-linux-gnueabi/bin/ld: warning: libwebpmux.so.3, needed by /usr/lib/libavcodec.so, not found (try using -rpath or -rpath-link)    
/usr/lib/gcc/arm-slackware-linux-gnueabi/7.1.0/../../../../arm-slackware-linux-gnueabi/bin/ld: warning: libwebp.so.7, needed by /usr/lib/libavcodec.so, not found (try using -rpath or -rpath-link)
/usr/lib/libavcodec.so: undefined reference to `WebPAnimEncoderNewInternal'                          
/usr/lib/libavcodec.so: undefined reference to `WebPMemoryWriterClear'                               
/usr/lib/libavcodec.so: undefined reference to `WebPAnimEncoderDelete'                               
/usr/lib/libavcodec.so: undefined reference to `WebPAnimEncoderOptionsInitInternal'                  
/usr/lib/libavcodec.so: undefined reference to `WebPEncode'                                          
/usr/lib/libavcodec.so: undefined reference to `WebPAnimEncoderAssemble'                             
/usr/lib/libavcodec.so: undefined reference to `WebPCleanupTransparentArea'                          
/usr/lib/libavcodec.so: undefined reference to `WebPPictureInitInternal'                             
/usr/lib/libavcodec.so: undefined reference to `WebPAnimEncoderAdd'                                  
/usr/lib/libavcodec.so: undefined reference to `WebPPictureFree'                                     
/usr/lib/libavcodec.so: undefined reference to `WebPConfigInitInternal'                              
/usr/lib/libavcodec.so: undefined reference to `WebPValidateConfig'                                  
/usr/lib/libavcodec.so: undefined reference to `WebPMemoryWrite'                                     
/usr/lib/libavcodec.so: undefined reference to `WebPMemoryWriterInit'
Need to satisfy those dependencies (libwebpmux.so.3 and libwebp.so.7) first and see if I'm successful.
 
Old 10-02-2017, 03:59 PM   #26
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
@stormtracknole

libwebp from SBo: https://slackbuilds.org/repository/1...aries/libwebp/

Looks like you found a required package I must have overseen.
 
Old 10-02-2017, 04:49 PM   #27
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by slacksam View Post
@stormtracknole

libwebp from SBo: https://slackbuilds.org/repository/1...aries/libwebp/

Looks like you found a required package I must have overseen.
It did not like 0.5.2, so I'm using libweb-0.6.0. Will report back shortly.
 
1 members found this post helpful.
Old 10-02-2017, 05:29 PM   #28
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
SUCCESS!! Using libwebp-0.6.0 and your suggested changes to the SBo script did the trick. Thanks again!
 
2 members found this post helpful.
Old 11-14-2017, 12:47 PM   #29
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Hi @slacksam! The latest omxplayer.SlackBuild fails to build with the following:
Code:
From https://github.com/popcornmix/omxplayer
 * branch            master     -> FETCH_HEAD
Already up-to-date.
./omxplayer.SlackBuild: line 82: cd: too many arguments
This is a clean download from here. Just an FYI. I did satisfy all the dependencies.
 
1 members found this post helpful.
Old 11-14-2017, 01:00 PM   #30
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 210

Original Poster
Rep: Reputation: 37
Thanks for reporting.
Now I pushed an update on Github. Please try again.
 
1 members found this post helpful.
  


Reply

Tags
download, hardware acceleration, raspberry pi, slackbuild, video player



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
LXer: HOWTO: Launch OMXPlayer via a GUI LXer Syndicated Linux News 0 08-03-2012 08:51 PM
LXer: Multimedia on the Raspberry Pi with omxplayer LXer Syndicated Linux News 0 06-17-2012 08:51 PM
OO 3.01 slackbuild ? brodo Slackware 4 02-01-2009 04:06 PM
SlackBuild CrEsPo Slackware 2 03-19-2006 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration