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 - Normal Status:  In Progress
Assigned to:  None Open/Closed:  Closed
Release:  mercurial Operating 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:
            #configfile.add("HAVE_PORTAUDIO ", "Defined when Port Audio support is present and compiled")

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 Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-07 giszmo Open/ClosedOpen => Closed
    2009-01-05 giszmo StatusNone => In Progress

    Back to the top

    Powered by Savane 3.5