You are not logged in.
Hello, this is my first post to the forums, so I hope I am following guidelines properly for asking for assistance..
I have played around with different libav versions as this seems to be where keyfinder hangs during compilation.. this is the error I receive:
==> Starting build()...
/usr/lib/qt/bin/uic forms/aboutdialog.ui -o ui/ui_aboutdialog.h
/usr/lib/qt/bin/uic forms/batchwindow.ui -o ui/ui_batchwindow.h
/usr/lib/qt/bin/uic forms/detailwindow.ui -o ui/ui_detailwindow.h
/usr/lib/qt/bin/uic forms/prefsdialog.ui -o ui/ui_prefsdialog.h
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asynckeyprocess.o source/asynckeyprocess.cpp
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asyncmetadatareadprocess.o source/asyncmetadatareadprocess.cpp
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o avfilemetadata.o source/avfilemetadata.cpp
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o avfilemetadatafactory.o source/avfilemetadatafactory.cpp
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o decoderlibav.o source/decoderlibav.cpp
source/decoderlibav.cpp: In constructor ‘AudioFileDecoder::AudioFileDecoder(const QString&, int)’:
source/decoderlibav.cpp:28:21: error: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’ was not declared in this scope
frameBufferSize(((AVCODEC_MAX_AUDIO_FRAME_SIZE * 3) / 2) * sizeof(uint8_t)),
^
source/decoderlibav.cpp:100:11: warning: ‘ReSampleContext* av_audio_resample_init(int, int, int, int, AVSampleFormat, AVSampleFormat, int, int, int, double)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4339) [-Wdeprecated-declarations]
rsCtx = av_audio_resample_init(
^
source/decoderlibav.cpp:103:3: warning: ‘ReSampleContext* av_audio_resample_init(int, int, int, int, AVSampleFormat, AVSampleFormat, int, int, int, double)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4339) [-Wdeprecated-declarations]
);
^
source/decoderlibav.cpp: In member function ‘void AudioFileDecoder::free()’:
source/decoderlibav.cpp:116:22: warning: ‘void audio_resample_close(ReSampleContext*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4356) [-Wdeprecated-declarations]
if (rsCtx != NULL) audio_resample_close(rsCtx);
^
source/decoderlibav.cpp:116:48: warning: ‘void audio_resample_close(ReSampleContext*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4356) [-Wdeprecated-declarations]
if (rsCtx != NULL) audio_resample_close(rsCtx);
^
source/decoderlibav.cpp:123:21: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
if (fCtx != NULL) av_close_input_file(fCtx);
^
source/decoderlibav.cpp:123:45: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
if (fCtx != NULL) av_close_input_file(fCtx);
^
source/decoderlibav.cpp: In member function ‘bool AudioFileDecoder::decodePacket(AVPacket*, KeyFinder::AudioData*)’:
source/decoderlibav.cpp:172:25: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3787) [-Wdeprecated-declarations]
int bytesConsumed = avcodec_decode_audio3(cCtx, dataBuffer, &dataSize, &tempPacket);
^
source/decoderlibav.cpp:172:87: warning: ‘int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3787) [-Wdeprecated-declarations]
int bytesConsumed = avcodec_decode_audio3(cCtx, dataBuffer, &dataSize, &tempPacket);
^
source/decoderlibav.cpp:184:28: warning: ‘int audio_resample(ReSampleContext*, short int*, short int*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4347) [-Wdeprecated-declarations]
int resampleResult = audio_resample(rsCtx, (short*)frameBufferConverted, (short*)frameBuffer, newSamplesDecoded);
^
source/decoderlibav.cpp:184:118: warning: ‘int audio_resample(ReSampleContext*, short int*, short int*, int)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4347) [-Wdeprecated-declarations]
int resampleResult = audio_resample(rsCtx, (short*)frameBufferConverted, (short*)frameBuffer, newSamplesDecoded);
^
Makefile:2712: recipe for target 'decoderlibav.o' failed
make: *** [decoderlibav.o] Error 1
That is with the libav from the latest ffmpeg..
I have tried compiling libav from source also and this is the error there..
==> Starting build()...
/usr/lib/qt/bin/uic forms/aboutdialog.ui -o ui/ui_aboutdialog.h
/usr/lib/qt/bin/uic forms/batchwindow.ui -o ui/ui_batchwindow.h
/usr/lib/qt/bin/uic forms/detailwindow.ui -o ui/ui_detailwindow.h
/usr/lib/qt/bin/uic forms/prefsdialog.ui -o ui/ui_prefsdialog.h
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asynckeyprocess.o source/asynckeyprocess.cpp
In file included from source/asynckeyprocess.h:36:0,
from source/asynckeyprocess.cpp:22:
source/decoderlibav.h:70:3: error: ‘ReSampleContext’ does not name a type
ReSampleContext* rsCtx;
^
Makefile:2275: recipe for target 'asynckeyprocess.o' failed
make: *** [asynckeyprocess.o] Error 1
Any assistance is greatly appreciated!! THANK YOU!
Last edited by goowi (2014-03-15 15:20:28)
Offline
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
like this
It makes the code more readable and - in case of longer listings - more convenient to scroll through.
Are you trying to compile libav or some other package?
Last edited by karol (2014-03-14 17:23:26)
Offline
Okay thank you I will make sure I use code tags from now on...
I am trying to compile keyfinder... In the AUR under keyfinder-git
I just have been thinking that libav is causing the problem..
Offline
I got different error at first, about missing tag.h - I had to install taglib package:
==> Starting build()...
/usr/lib/qt/bin/uic forms/aboutdialog.ui -o ui/ui_aboutdialog.h
/usr/lib/qt/bin/uic forms/batchwindow.ui -o ui/ui_batchwindow.h
/usr/lib/qt/bin/uic forms/detailwindow.ui -o ui/ui_detailwindow.h
/usr/lib/qt/bin/uic forms/prefsdialog.ui -o ui/ui_prefsdialog.h
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asynckeyprocess.o source/asynckeyprocess.cpp
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asyncmetadatareadprocess.o source/asyncmetadatareadprocess.cpp
In file included from source/avfilemetadatafactory.h:25:0,
from source/asyncmetadatareadprocess.h:26,
from source/asyncmetadatareadprocess.cpp:22:
source/avfilemetadata.h:30:24: fatal error: taglib/tag.h: No such file or directory
#include <taglib/tag.h>
^
compilation terminated.
Makefile:2397: recipe for target 'asyncmetadatareadprocess.o' failed
make: *** [asyncmetadatareadprocess.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
Then I got the same errors as you.
I installed https://aur.archlinux.org/packages/libav/ with the edit mentioned in the comments:
prepare() {
cd "$pkgname-$pkgver"
sed -i 's|freetype/freetype.h|freetype2/freetype.h|' configure
sed -i 's|freetype/config/ftheader.h|freetype2/config/ftheader.h|' libavfilter/vf_drawtext.c
}
keyfinder-git built and installed fine.
Offline
Moving to AUR issues...
Offline
How do I make that edit karol?
And THANK YOU SO MUCH!
Offline
Just edit the PKGBUILD with an editor and add the prepare() step before build(). I used this PKGBUILD:
# Maintainer: Rickard Närström <rickard@närström.se>
pkgname=libav
pkgver=9.9
pkgrel=1
pkgdesc="Incompatible fork of ffmpeg"
arch=('i686' 'x86_64')
url="http://www.libav.org/"
license=('GPL3')
depends=('alsa-lib' 'bzip2' 'libvpx' 'x264' 'zlib')
makedepends=('yasm')
provides=('ffmpeg')
conflicts=('ffmpeg')
source=(http://libav.org/releases/$pkgname-$pkgver.tar.xz)
md5sums=('c4a1a2fa2491f341903822e9083e5b41')
prepare() {
cd "$pkgname-$pkgver"
sed -i 's|freetype/freetype.h|freetype2/freetype.h|' configure
sed -i 's|freetype/config/ftheader.h|freetype2/config/ftheader.h|' libavfilter/vf_drawtext.c
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --enable-shared --disable-static --enable-gpl --enable-version3 \
--disable-indev=jack \
--enable-libvpx --enable-libx264 \
--enable-libfreetype \
--disable-avplay --disable-avprobe --disable-avserver
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Last edited by karol (2014-03-14 21:12:14)
Offline
THANKS SOOOO MUCH!!! Worked like a charm! I will make and update on the AUR page for keyfinder-git so others can easily fix this! THANKS AGAIN!!
Offline
Glad I could help :-)
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
I was wondering how I do that Thanks again mate!
Cheers!
Offline
Even thought that works right now, it's not a correct fix and could break at any time. A correct fix requires more changes: https://mailman.archlinux.org/pipermail … 25678.html
Online