compile failed in debian squeeze x64

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
ayaka
Posts: 8
Joined: Tue Jun 12, 2012 3:23 am
Operating System: Please select

compile failed in debian squeeze x64

Post by ayaka » Tue Jun 12, 2012 3:28 am

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
Attachments
audacity-log.txt
(17.58 KiB) Downloaded 306 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: compile failed in debian squeeze x64

Post by Gale Andrews » Tue Jun 12, 2012 3:57 am

You need to provide the part of the log (and just above) that has the error.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

ayaka
Posts: 8
Joined: Tue Jun 12, 2012 3:23 am
Operating System: Please select

Re: compile failed in debian squeeze x64

Post by ayaka » Wed Jun 13, 2012 7:49 am

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
Last edited by ayaka on Fri Apr 24, 2015 4:00 pm, edited 2 times in total.
Reason: added code tags

steve
Site Admin
Posts: 81651
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: compile failed in debian squeeze x64

Post by steve » Wed Jun 13, 2012 12:45 pm

Which version of FFMpeg do you have installed?
Could you post the lines from immediately before the error lines.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ayaka
Posts: 8
Joined: Tue Jun 12, 2012 3:23 am
Operating System: Please select

Re: compile failed in debian squeeze x64

Post by ayaka » Fri Jun 15, 2012 1:34 pm

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:

steve
Site Admin
Posts: 81651
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: compile failed in debian squeeze x64

Post by steve » Fri Jun 15, 2012 4:39 pm

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.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

ayaka
Posts: 8
Joined: Tue Jun 12, 2012 3:23 am
Operating System: Please select

Re: compile failed in debian squeeze x64

Post by ayaka » Fri Jun 15, 2012 4:48 pm

I see, thank you.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: compile failed in debian squeeze x64

Post by Gale Andrews » Sat Jun 16, 2012 3:12 am

0.8.x should compile. The 0.8 version current when 2.0.0 was released in March compiled with Audacity.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply