[mythtv] [mythtv-commits] mythtv commit: r21448 by janne

Jonathan Martens jonathan at snetram.nl
Sun Aug 23 16:47:28 UTC 2009


On 23-8-2009 13:07, mythtv at cvs.mythtv.org wrote:
>        Author: janne
>          Date: 2009-08-23 11:07:56 +0000 (Sun, 23 Aug 2009)
> New Revision: 21448
>     Changeset: http://cvs.mythtv.org/trac/changeset/21448
>
> Added:
>
>     trunk/mythtv/libs/libmythtv/audioinput.cpp
>     trunk/mythtv/libs/libmythtv/audioinput.h
>     trunk/mythtv/libs/libmythtv/audioinputalsa.cpp
>     trunk/mythtv/libs/libmythtv/audioinputalsa.h
>     trunk/mythtv/libs/libmythtv/audioinputoss.cpp
>     trunk/mythtv/libs/libmythtv/audioinputoss.h
>
> Modified:
>
>     trunk/mythtv/libs/libmythtv/NuppelVideoRecorder.cpp
>     trunk/mythtv/libs/libmythtv/NuppelVideoRecorder.h
>     trunk/mythtv/libs/libmythtv/libmythtv.pro
>     trunk/mythtv/libs/libmythtv/videosource.cpp
>
> Log:
>
> adds alsa audio input to analog cards. Fixes #3405
>
> factors the audio device handling code out of NuppelVideoRecorder
> into a AudioInput class with OSS and new ALSA implementation.
>
> based on patches by: Alan Calvert, Anand K. Mistry and Daniel Kristjansson

AFAICT this changeset broke compilation on windows. See attached build 
log below.

Kind regards,

Jonathan

----

g++ -c -march=pentium4 -fomit-frame-pointer -O3 -DNDEBUG -g -Wall 
-Wno-switch -W
pointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time 
-D__STDC_
CONSTANT_MACROS -I/mingw/include/freetype2 -I/mingw/include -frtti 
-fexceptions
-mthreads -DQT_LARGEFILE_SUPPORT -DWIN32 -DUSING_MINGW -DUSING_WINAUDIO 
-DUSING_
D3D -DMMX -Di386 -DUSING_DIRECTX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFI
LE_SOURCE -DUSING_DIRECTX -DUSING_OPENGL -DUSING_OPENGL_VIDEO 
-DUSING_MHEG -DUSI
NG_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_BACKEND -DUSING_D3D 
-DQT_THREAD_SUPPO
RT -DQT_DLL -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB 
-DQT_CORE_LI
B -I'../../../../Qt/4.5.2/include/QtCore' 
-I'../../../../Qt/4.5.2/include/QtNetw
ork' -I'../../../../Qt/4.5.2/include/QtGui' 
-I'../../../../Qt/4.5.2/include/QtXm
l' -I'../../../../Qt/4.5.2/include/QtSql' 
-I'../../../../Qt/4.5.2/include' -I'..
/../../build' -I'..' -I'../..' -I'.' -I'../libmyth' -I'../libavcodec' 
-I'../liba
vformat' -I'../libavutil' -I'../libswscale' -I'../libmythmpeg2' 
-I'../libmythdb'
  -I'../libmythhdhomerun' -I'../libmythdvdnav' -I'dvbdev' -I'mpeg' 
-I'iptv' -I'ch
annelscan' -I'../libmythlivemedia/BasicUsageEnvironment/include' 
-I'../libmythli
vemedia/BasicUsageEnvironment' -I'../libmythlivemedia/groupsock/include' 
-I'../l
ibmythlivemedia/groupsock' -I'../libmythlivemedia/liveMedia/include' 
-I'../libmy
thlivemedia/liveMedia' -I'../libmythlivemedia/UsageEnvironment/include' 
-I'../li
bmythlivemedia/UsageEnvironment' -I'../libmythdb' -I'../libmythui' 
-I'/usr/inclu
de' -I'../../../../Qt/4.5.2/include/ActiveQt' -I'.' 
-I'../../../../qt/4.5.2/mksp
ecs/win32-g++' -o audioinput.o audioinput.cpp
In file included from audioinput.cpp:23:
audioinput.h:53:28: warning: no newline at end of file
In file included from audioinput.cpp:25:
audioinputalsa.h:25:28: error: alsa/asoundlib.h: No such file or directory
In file included from 
../../../../Qt/4.5.2/include/QtCore/qatomic_windows.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch
/qatomic_arch.h:78,
                  from ../../../../Qt/4.5.2/include/QtCore/qatomic_arch.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/thre
ad/qbasicatomic.h:207,
                  from ../../../../Qt/4.5.2/include/QtCore/qbasicatomic.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/thre
ad/qatomic.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qatomic.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/tool
s/qbytearray.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qbytearray.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/tool
s/qstring.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qstring.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/kern
el/qobject.h:48,
                  from ../../../../Qt/4.5.2/include/QtCore/qobject.h:1,
                  from ../../../../Qt/4.5.2/include/QtCore/QObject:1,
                  from ../libmyth/mythcontext.h:9,
                  from audioinput.cpp:21:
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::ref()':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:437
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::deref()':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:442
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::testAndSetOrdered(int, int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:447
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'int QBasicAtomicInt::fetchAndStoreOrdered(int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:451
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'int QBasicAtomicInt::fetchAndAddOrdered(int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:455
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
In file included from ../../../../Qt/4.5.2/include/QtGui/qkeysequence.h:1,
                  from 
../../../../Qt/4.5.2/include/QtGui/../../src/gui/kernel/qe
vent.h:50,
                  from ../../../../Qt/4.5.2/include/QtGui/qevent.h:1,
                  from ../libmyth/mythcontext.h:14,
                  from audioinput.cpp:21:
../../../../Qt/4.5.2/include/QtGui/../../src/gui/kernel/qkeysequence.h: 
At globa
l scope:
../../../../Qt/4.5.2/include/QtGui/../../src/gui/kernel/qkeysequence.h:199: 
warn
ing: 'QDataStream& operator<<(QDataStream&, const QKeySequence&)' 
redeclared wit
hout dllimport attribute: previous dllimport ignored
../../../../Qt/4.5.2/include/QtGui/../../src/gui/kernel/qkeysequence.h:200: 
warn
ing: 'QDataStream& operator>>(QDataStream&, QKeySequence&)' redeclared 
without d
llimport attribute: previous dllimport ignored
In file included from audioinput.cpp:25:
audioinputalsa.h:52: error: ISO C++ forbids declaration of 'snd_pcm_t' 
with no t
ype
audioinputalsa.h:52: error: expected ';' before '*' token
audioinputalsa.h:53: error: 'snd_pcm_uframes_t' does not name a type
audioinputalsa.h: In member function 'virtual bool 
AudioInputALSA::IsOpen()':
audioinputalsa.h:34: error: 'pcm_handle' was not declared in this scope
audioinputalsa.h: In member function 'virtual bool AudioInputALSA::Start()':
audioinputalsa.h:37: error: 'pcm_handle' was not declared in this scope
make[2]: *** [audioinput.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from u:/MinGW-5.1.4/include/unistd.h:12,
                  from fifowriter.cpp:3:
u:/MinGW-5.1.4/include/io.h:247: warning: redundant redeclaration of 
'int remove
(const char*)' in same scope
u:/MinGW-5.1.4/include/stdio.h:174: warning: previous declaration of 
'int remove
(const char*)'
u:/MinGW-5.1.4/include/io.h:248: warning: redundant redeclaration of 
'int rename
(const char*, const char*)' in same scope
u:/MinGW-5.1.4/include/stdio.h:175: warning: previous declaration of 
'int rename
(const char*, const char*)'
u:/MinGW-5.1.4/include/io.h:257: warning: redundant redeclaration of 
'int _unlin
k(const char*)' in same scope
u:/MinGW-5.1.4/include/stdio.h:182: warning: previous declaration of 
'int _unlin
k(const char*)'
u:/MinGW-5.1.4/include/io.h:306: warning: redundant redeclaration of 
'int unlink
(const char*)' in same scope
u:/MinGW-5.1.4/include/stdio.h:187: warning: previous declaration of 
'int unlink
(const char*)'
In file included from fifowriter.cpp:9:
u:/MinGW-5.1.4/include/sys/stat.h:160: warning: redundant redeclaration 
of 'int
_chmod(const char*, int)' in same scope
u:/MinGW-5.1.4/include/io.h:148: warning: previous declaration of 'int 
_chmod(co
nst char*, int)'
u:/MinGW-5.1.4/include/sys/stat.h:167: warning: redundant redeclaration 
of 'int
chmod(const char*, int)' in same scope
u:/MinGW-5.1.4/include/io.h:179: warning: previous declaration of 'int 
chmod(con
st char*, int)'
In file included from 
../../../../Qt/4.5.2/include/QtCore/qatomic_windows.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch
/qatomic_arch.h:78,
                  from ../../../../Qt/4.5.2/include/QtCore/qatomic_arch.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/thre
ad/qbasicatomic.h:207,
                  from ../../../../Qt/4.5.2/include/QtCore/qbasicatomic.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/thre
ad/qatomic.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qatomic.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/tool
s/qbytearray.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qbytearray.h:1,
                  from 
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/tool
s/qstring.h:46,
                  from ../../../../Qt/4.5.2/include/QtCore/qstring.h:1,
                  from ../../../../Qt/4.5.2/include/QtCore/QString:1,
                  from fifowriter.h:8,
                  from fifowriter.cpp:13:
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::ref()':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:437
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::deref()':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:442
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'bool QBasicAtomicInt::testAndSetOrdered(int, int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:447
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'int QBasicAtomicInt::fetchAndStoreOrdered(int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:451
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h: 
In
  member function 'int QBasicAtomicInt::fetchAndAddOrdered(int)':
../../../../Qt/4.5.2/include/QtCore/../../src/corelib/arch/qatomic_windows.h:455
: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
make[2]: Leaving directory `/u/mythtv/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv-make_default] Error 2
make[1]: Leaving directory `/u/mythtv/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2


More information about the mythtv-dev mailing list