Ticket #3898 (closed defect: fixed)
Opened 5 years ago
Last modified 3 years ago
mythmusic compile error
| Reported by: | anonymous | Owned by: | janne |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythmusic | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Getting this error (Rev. 14348):
aacdecoder.cpp: In member function ‘bool aacDecoder::initializeMP4()’: aacdecoder.cpp:309: error: invalid conversion from ‘long unsigned int*’ to ‘uint32_t*’ aacdecoder.cpp:309: error: initializing argument 4 of ‘int8_t NeAACDecInit2(void*, unsigned char*, uint32_t, uint32_t*, uint8_t*)’ make[2]: * [aacdecoder.o] Fehler 1
using gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)
Attachments
Change History
comment:1 Changed 5 years ago by janne
- Owner changed from ijr to janne
- Milestone changed from unknown to 0.21
comment:3 Changed 4 years ago by Benoît LORAND <benoit.lorand@…>
I'm also concerned by this
using faad 2.6.1 and faac 1.26.1 compiled from source.
error is :
g++ -c -pipe -march=pentiumpro -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -DSTDC_CONSTANT_MACROS -fomit-frame-pointer -O3 -fomit-frame-pointer -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_REENTRANT -Wall -W -DPIC -fPIC -D_GNU_SOURCE -DPREFIX="/opt/mythtv" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qt-4.3.4/mkspecs/linux-g++ -I. -I/opt/qt-4.3.4/include/QtCore -I/opt/qt-4.3.4/include/QtCore -I/opt/qt-4.3.4/include/QtGui -I/opt/qt-4.3.4/include/QtGui -I/opt/qt-4.3.4/include/QtOpenGL -I/opt/qt-4.3.4/include/QtOpenGL -I/opt/qt-4.3.4/include/QtXml -I/opt/qt-4.3.4/include/QtXml -I/opt/qt-4.3.4/include/QtSql -I/opt/qt-4.3.4/include/QtSql -I/opt/qt-4.3.4/include/Qt3Support -I/opt/qt-4.3.4/include/Qt3Support -I/opt/qt-4.3.4/include -I/opt/mythtv/include -I/opt/mythtv/include -I/usr/include -I/srv/xorg/include -I/srv/mysql/include -I/opt/mythtv/include/mythtv -I/usr/include/libvisual-0.4 -I/usr/local/include/taglib -I/usr/include/cdda -I/srv/xorg/include -I. -I. -o aacdecoder.o aacdecoder.cpp aacdecoder.cpp: In member function 'bool aacDecoder::initializeMP4()': aacdecoder.cpp:317: erreur: invalid conversion from 'uint32_t*' to 'long unsigned int*' aacdecoder.cpp:317: erreur: initializing argument 4 of 'char NeAACDecInit2(void*, unsigned char*, long unsigned int, long unsigned int*, unsigned char*)' make[2]: * [aacdecoder.o] Erreur 1 make[2]: Leaving directory `/home/revnew/mythplugins/mythmusic/mythmusic' make[1]: * [sub-mythmusic-make_default] Erreur 2 make[1]: Leaving directory `/home/revnew/mythplugins/mythmusic' make: * [sub-mythmusic-make_default] Erreur 2
I tried to rebuild faac and faad without any change.
the line "#define FAAD_MODIFIED" is present in mythmusic/mythmusic/aacdecoder.cpp

needs configure checks for different type of headers but all the nifty configure functions aren't available in mythplugins' configure.
As quick fix add "#define FAAD_MODIFIED" at the top of mythmusic/mythmusic/aacdecoder.cpp