bugGlobulation 2 - Bugs: bug #24668, Portaudio compile error

 
 

bug #24668: Portaudio compile error

Submitted by:  Jon Neal <reportingsjr>
Submitted on:  Mon 27 Oct 2008 11:15:17 PM UTC  
 
Severity: 3 - NormalStatus: In Progress
Assigned to: NoneOpen/Closed: Closed
Release: mercurialOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 07 Jan 2009 09:45:27 PM UTC, comment #3:

as the scons script now defaults to not use portaudio making clear there is a version check problem i assume it is ok to close this bug report.

Leo Wandersleb <giszmo>
Project Member
Mon 05 Jan 2009 05:21:34 PM UTC, comment #2:

i forgot to mention that a 3rd hack is to get the right portaudio ;)

Leo Wandersleb <giszmo>
Project Member
Mon 05 Jan 2009 05:06:09 PM UTC, comment #1:

this is due to an insufficient check for availability of portaudio. portaudio is needed in a higher version but there is no version check in SConstruct. A hack is to disable portaudio by either uninstalling it or commenting out those lines in your SConstruct-file like so:
#else:
#configfile.add("HAVE_PORTAUDIO ", "Defined when Port Audio support is present and compiled")
#env.Append(LIBS=['portaudio'])

Leo Wandersleb <giszmo>
Project Member
Mon 27 Oct 2008 11:15:17 PM UTC, original submission:

Compile error with libportaudio-dev installed. (whatever is in the ubuntu repos).

src/VoiceRecorder.cpp:92: error: expected ',' or '...' before '*' token
src/VoiceRecorder.cpp:92: error: ISO C++ forbids declaration of 'PaStreamCallbackTimeInfo' with no type
src/VoiceRecorder.cpp: In function 'int PaSpeexEncodeCallback(const void, void, long unsigned int, int)':
src/VoiceRecorder.cpp:94: error: 'userData' was not declared in this scope
src/VoiceRecorder.cpp: In constructor 'VoiceRecorder::VoiceRecorder()':
src/VoiceRecorder.cpp:382: error: invalid conversion from 'int ()(const void, void*, long unsigned int, int)' to 'long unsigned int'
src/VoiceRecorder.cpp:382: error: cannot convert 'VoiceRecorder* const' to 'int ()(void, void, long unsigned int, PaTimestamp, void)' for argument '8' to 'PaError Pa_OpenDefaultStream(PortAudioStream*, int, int, PaSampleFormat, double, long unsigned int, long unsigned int, int ()(void, void, long unsigned int, PaTimestamp, void), void)'
src/VoiceRecorder.cpp:385: error: 'Pa_SetStreamFinishedCallback' was not declared in this scope
scons: *** [src/VoiceRecorder.o] Error 1
scons: building terminated because of errors.

Jon Neal <reportingsjr>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by giszmo (Posted a comment)
  • -unavailable- added by reportingsjr (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Jan 2009 09:45:26 PM UTCgiszmoOpen/ClosedOpen=>Closed
    Mon 05 Jan 2009 05:21:34 PM UTCgiszmoStatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1