Page 1 of 1

compile failed in debian squeeze x64

Posted: Tue Jun 12, 2012 3:28 am
by ayaka
There is log in attachments
I have ffmpeg develop pachages, but the problem seems happen in interior.
src is svn in goole code or the full src tar

Re: compile failed in debian squeeze x64

Posted: Tue Jun 12, 2012 3:57 am
by Gale Andrews
You need to provide the part of the log (and just above) that has the error.


Gale

Re: compile failed in debian squeeze x64

Posted: Wed Jun 13, 2012 7:49 am
by ayaka
sorry, I forget to use 2&1 >
here is the proble part

In file included from AudacityApp.cpp:70:

Code: Select all

FFmpeg.h:355: error: 'SampleFormat' does not name a type
FFmpeg.h:572: error: use of enum 'SampleFormat' without previous declaration
FFmpeg.h:572: error: use of enum 'SampleFormat' without previous declaration
FFmpeg.h:609: error: 'AVFormatParameters' has not been declared
FFmpeg.h:609: error: 'AVFormatParameters' has not been declared
FFmpeg.h:626: warning: 'av_register_protocol_fp' initialized and declared 'extern'
FFmpeg.h:626: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:626: error: 'protocol' was not declared in this scope
FFmpeg.h:626: error: 'av_register_protocol' declared as an 'inline' variable
FFmpeg.h:626: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:626: error: 'protocol' was not declared in this scope
FFmpeg.h:626: error: expected ',' or ';' before '{' token
FFmpeg.h:679: error: 'AVFormatParameters' has not been declared
FFmpeg.h:679: error: 'AVFormatParameters' has not been declared
FFmpeg.h:685: warning: 'url_open_protocol_fp' initialized and declared 'extern'
FFmpeg.h:685: error: 'URLContext' was not declared in this scope
FFmpeg.h:685: error: 'puc' was not declared in this scope
FFmpeg.h:685: error: expected primary-expression before 'struct'
FFmpeg.h:685: error: expected primary-expression before 'const'
FFmpeg.h:685: error: expected primary-expression before 'int'
FFmpeg.h:685: error: initializer expression list treated as compound expression
FFmpeg.h:685: error: 'url_open_protocol' declared as an 'inline' variable
FFmpeg.h:685: error: 'URLContext' was not declared in this scope
FFmpeg.h:685: error: 'puc' was not declared in this scope
FFmpeg.h:685: error: expected primary-expression before 'struct'
FFmpeg.h:685: error: expected primary-expression before 'const'
FFmpeg.h:685: error: expected primary-expression before 'int'
FFmpeg.h:685: error: initializer expression list treated as compound expression
FFmpeg.h:685: error: expected ',' or ';' before '{' token
FFmpeg.h:691: warning: 'url_open_fp' initialized and declared 'extern'
FFmpeg.h:691: error: 'URLContext' was not declared in this scope
FFmpeg.h:691: error: 'puc' was not declared in this scope
FFmpeg.h:691: error: expected primary-expression before 'const'
FFmpeg.h:691: error: expected primary-expression before 'int'
FFmpeg.h:691: error: initializer expression list treated as compound expression
FFmpeg.h:691: error: 'url_open' declared as an 'inline' variable
FFmpeg.h:691: error: 'URLContext' was not declared in this scope
FFmpeg.h:691: error: 'puc' was not declared in this scope
FFmpeg.h:691: error: expected primary-expression before 'const'
FFmpeg.h:691: error: expected primary-expression before 'int'
FFmpeg.h:691: error: initializer expression list treated as compound expression
FFmpeg.h:691: error: expected ',' or ';' before '{' token
FFmpeg.h:697: error: 'URLContext' has not been declared
FFmpeg.h:697: error: 'URLContext' has not been declared
FFmpeg.h:703: warning: 'url_close_fp' initialized and declared 'extern'
FFmpeg.h:703: error: 'URLContext' was not declared in this scope
FFmpeg.h:703: error: 'h' was not declared in this scope
FFmpeg.h:703: error: 'url_close' declared as an 'inline' variable
FFmpeg.h:703: error: 'URLContext' was not declared in this scope
FFmpeg.h:703: error: 'h' was not declared in this scope
FFmpeg.h:703: error: expected ',' or ';' before '{' token
FFmpeg.h:859: error: expected initializer before '*' token
FFmpeg.h:859: error: expected initializer before '*' token
FFmpeg.h:865: warning: 'av_metadata_set_fp' initialized and declared 'extern'
FFmpeg.h:865: error: 'AVMetadata' was not declared in this scope
FFmpeg.h:865: error: 'pm' was not declared in this scope
FFmpeg.h:865: error: expected primary-expression before 'const'
FFmpeg.h:865: error: expected primary-expression before 'const'
FFmpeg.h:865: error: initializer expression list treated as compound expression
FFmpeg.h:865: error: 'av_metadata_set' declared as an 'inline' variable
FFmpeg.h:865: error: 'AVMetadata' was not declared in this scope
FFmpeg.h:865: error: 'pm' was not declared in this scope
FFmpeg.h:865: error: expected primary-expression before 'const'
FFmpeg.h:865: error: expected primary-expression before 'const'
FFmpeg.h:865: error: initializer expression list treated as compound expression
FFmpeg.h:865: error: expected ',' or ';' before '{' token
FFmpeg.h:871: warning: 'av_metadata_set2_fp' initialized and declared 'extern'
FFmpeg.h:871: error: 'AVMetadata' was not declared in this scope
FFmpeg.h:871: error: 'pm' was not declared in this scope
FFmpeg.h:871: error: expected primary-expression before 'const'
FFmpeg.h:871: error: expected primary-expression before 'const'
FFmpeg.h:871: error: expected primary-expression before 'int'
FFmpeg.h:871: error: initializer expression list treated as compound expression
FFmpeg.h:871: error: 'av_metadata_set2' declared as an 'inline' variable
FFmpeg.h:871: error: 'AVMetadata' was not declared in this scope
FFmpeg.h:871: error: 'pm' was not declared in this scope
FFmpeg.h:871: error: expected primary-expression before 'const'
FFmpeg.h:871: error: expected primary-expression before 'const'
FFmpeg.h:871: error: expected primary-expression before 'int'
FFmpeg.h:871: error: initializer expression list treated as compound expression
FFmpeg.h:871: error: expected ',' or ';' before '{' token
FFmpeg.h:895: warning: 'av_register_protocol2_fp' initialized and declared 'extern'
FFmpeg.h:895: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:895: error: 'protocol' was not declared in this scope
FFmpeg.h:895: error: expected primary-expression before 'int'
FFmpeg.h:895: error: initializer expression list treated as compound expression
FFmpeg.h:895: error: 'av_register_protocol2' declared as an 'inline' variable
FFmpeg.h:895: error: 'URLProtocol' was not declared in this scope
FFmpeg.h:895: error: 'protocol' was not declared in this scope
FFmpeg.h:895: error: expected primary-expression before 'int'
FFmpeg.h:895: error: initializer expression list treated as compound expression
FFmpeg.h:895: error: expected ',' or ';' before '{' token
make[2]: *** [AudacityApp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/randy/src/audacity-src/src'
make[1]: *** [audacity] Error 2
make[1]: Leaving directory `/home/randy/src/audacity-src'
make: *** [build-stamp] Error 2

Re: compile failed in debian squeeze x64

Posted: Wed Jun 13, 2012 12:45 pm
by steve
Which version of FFMpeg do you have installed?
Could you post the lines from immediately before the error lines.

Re: compile failed in debian squeeze x64

Posted: Fri Jun 15, 2012 1:34 pm
by ayaka
The ffmpeg is from git
and the FFmpeg.h is in audacity src

Code: Select all

g++ -c -I../lib-src/portmixer/include   -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/home/randy/src/audacity-src/lib-src/lib-widget-extra        -I../lib-src/libflac/include -I../lib-src/libflac/include -I../lib-src/libid3tag -I../lib-src/libresample/include -I../lib-src/sbsms/include -I../lib-src/soundtouch/include -I../lib-src/libnyquist -I../lib-src/libvamp  -I../lib-src/twolame/libtwolame -I/usr/local/include   -I/usr/local/include   -I/usr/local/include   -I../lib-src/portsmf -I../lib-src/portaudio-v19/include -fno-strict-aliasing -I./include -I. -DLIBDIR="/usr/local//lib" -D__STDC_CONSTANT_MACROS   -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     DeviceManager.cpp -o DeviceManager.o
g++ -c -I../lib-src/portmixer/include   -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../lib-src/FileDialog -I/home/randy/src/audacity-src/lib-src/lib-widget-extra        -I../lib-src/libflac/include -I../lib-src/libflac/include -I../lib-src/libid3tag -I../lib-src/libresample/include -I../lib-src/sbsms/include -I../lib-src/soundtouch/include -I../lib-src/libnyquist -I../lib-src/libvamp  -I../lib-src/twolame/libtwolame -I/usr/local/include   -I/usr/local/include   -I/usr/local/include   -I../lib-src/portsmf -I../lib-src/portaudio-v19/include -fno-strict-aliasing -I./include -I. -DLIBDIR="/usr/local//lib" -D__STDC_CONSTANT_MACROS   -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12     Envelope.cpp -o Envelope.o
In file included from AudacityApp.cpp:70:

Re: compile failed in debian squeeze x64

Posted: Fri Jun 15, 2012 4:39 pm
by steve
I suspect the problem is that your version of FFMpeg is too new.
I'm using FFmpeg 0.7.13 "Peace" (and it works)
http://ffmpeg.org/download.html

Sorry I don't know which of the other FFMpeg branches are compatible.

Re: compile failed in debian squeeze x64

Posted: Fri Jun 15, 2012 4:48 pm
by ayaka
I see, thank you.

Re: compile failed in debian squeeze x64

Posted: Sat Jun 16, 2012 3:12 am
by Gale Andrews
0.8.x should compile. The 0.8 version current when 2.0.0 was released in March compiled with Audacity.


Gale