New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg:ERROR: shine not found using pkg-config #28
Comments
Have you installed |
Sorry,I probablely installed libshine failed. I install ffmpeg success。 I run
But, It doesn't have any output. Then I try to this
Thank you. |
What OS are you using? |
Ubuntu 17.10 X64 |
So you should try:
|
The output said I have already installed libshine-dev (3.1.1-1) |
Ok that's good! How are you installing |
Oh wait you're building for a embedded firmware right? |
Yes :D |
Ok, can you tell me more about the steps you're using to build the thing? |
Also, you should probably report the issue here: openwrt/packages#4216 We do not control the build system for lede here unfortunately.. |
I already report issue openwrt/packages#5181 |
No problem! From what I see you should be looking for a way to have libshine cross-compiled for the target architecture. This command: Also, another possibility is to disable |
I don't need it now,How can I disable |
It seems work! |
Thanks Again! |
Awesome! |
Hi @toots - Sorry to pick up on this thread, but I am also having an issue and have been at this for some weeks now. Was trying not to bother anyone but Im relatively n00b and im 99% sure you will point me to my error very quickly! Objective is to encode live mp3 audio (for onward push via ffmpeg to various streaming servers via either icecast or rtmp) using linkit 7688 or linkit 7688 duo SOC. The current firmwares / packages and ffmpeg distros installed with opkg seem to have had libshine dropped (patent issues?). I managed to cross compile libmp3lame and ffmpeg as a dependancy and it 'works' functionally but is too slow to deal with live audio. So i have set about trying to cross compile my own ffmpeg release with libshine enabled. I may be going the wrong / complicated way around this, so feel free to point me at a simple way! (Google has left me confused - but your name turns up in lots of places and I see the shine source is released on your git profile so ... fingers crossed: >>> I have setup the toolchain on the new Ubuntu box, installed the general dependancies etc. Grabbed the various sources, unpacked them, and so far seem to have a 'working' toolchain (since i got ffmpeg and libmp3lame to work with it). For simplicity here is my notes which i was attempting to turn into a build script, although i have annotated it and pasted in the 'fail' responses. I think it is as clear as i can make what i am doing. Feel free to tell me im stupid and doing it all wrong!! But if there is a simple correction to my course i would deeply value your input: Clean Ubuntu 16.04 machinesudo apt-get update sudo apt-get install libtool m4 automake Fails as followsdepbase= Tried to do the following anywaycd ./configure --enable-cross-compile --cross-prefix=mipsel-openwrt-linux-uclibc- --arch=mipsel --target-os=linux --prefix=/home/d2/staging_dir/ffmpeg/ --pkg-config=pkg-config --enable-nonfree --disable-static --enable-shared --enable-libshine --enable-small --enable-pthreads --disable-runtime-cpudetect --disable-doc --disable-debug --enable-gpl --enable-version3 --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-vfp --disable-neon --disable-inline-asm --disable-x86asm --disable-mips32r2 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-dxva2 --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --extra-ldflags=-L/home/d2/staging_dir/shine-mips/lib/ --extra-cflags=-I/home/d2/staging_dir/shine/include/ Which Failed withERROR: shine not found using pkg-config |
Incidentally shine IS available from the linkit OpenWRT ChaosCalmer opkg package distro, but the corresponding ffmpeg doesn't have it enabled.. |
@dom-robinson have you tried adjusting the |
Cheers @toots ! i'm thinking its the initial compile of shine (outlined in the first half of my 'wall of text' (apologies!) with the linkit toolchain (rather than the ffmpeg compile in the second half) that is the key fault. Im working on how to properly link the shine compile to the tool chain, and once that is build for the mips1 arch im hoping the ffmpeg build will 'just run'... ..will explore the PKG_CONFIG_PATH env variable some more. (jeepers - cross compiling for a n00b is confusing stuff!!) |
Cross-compiling is hard.. ;-) |
Hey @toots - managed to get there in the end: - i had to use shine 2.0.0 from https://github.com/toots/shine/releases/ (was a lucky guess tbh) :- the l3mdct kept giving me the opcode error. I tried backtracking each version from the release history and the problem seems to appear as you added support for MPEG-II. i guess 'dct' = direct cosign transforms used for mpeg II, and that is probably beyond the processor arch? Anyway - not quite managed to get the ffmpeg linked to it yet, but having already had libmp3lame compiling with ffmpeg i think that will take me less time now. At that point ill find out if my simple live mp3 icecast encode will actually work without whatever functionality that l3mdct added. |
Thanks for the effort. Do you have a specific commit where it starts failing? Thks! |
And also the error you see. @zhaoxiu-zeng has worked a lot on this file, maybe he'll be able to help us pinpoint the issue. |
not tried with each of the individual 2.0... commits (having fun with pkg-config and ffmpeg at the moment grr) Once i get my whole workflow running ill try to revisit for you. For now all i know is that this source cross compiled https://github.com/toots/shine/archive/2.0.0.tar.gz and the one after (https://github.com/toots/shine/releases/download/3.0.0/shine-3.0.0.tar.gz) gave me the opcode error... |
Ok. Send us the error message also if you have a chance, that can go a long way. |
So (clipped from my wall of text above) the error i get on any later version than 2.0.0 is this: src/lib/l3mdct.lo -MD -MP -MF src/lib/.deps/l3mdct.Tpo -c src/lib/l3mdct.c -o src/lib/l3mdct.o For ref Ted Hess (on the OpenWrt forums) made this comment on a private mail thread...
So it may not be the source in error - it may be my toolchain / GCC... Hope that is useful.. |
Ok, thanks. I think I've fixed it. Our tests to detect wether to enable MIPS assembly routines was not taking into account mips1 and so. Should be fixed in the latest code now, thanks for reporting. |
Confirmed - Compiled first time! Thank you @toots |
I'm build LEDE on Ubuntu 17.10.
There are Error Info:
I try to reinstall pkg-config,
I try to run ./scripts/feeds install shine
but it doesn't work.
How can I fix this? Thanks.
then,I found that “PKG_SOURCE_URL:=https://github.com/toots/shine/releases/download/$(PKG_VERSION)/” does not exist in Makefile
The text was updated successfully, but these errors were encountered: