Scons not complains about old libportaudio-dev (<19)

Bug #744459 reported by damores
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Unassigned

Bug Description

I get the following error when trying to compile Mixxx 1.9.0 (release-1.9.x~bzr2720):

%> scons shoutcast=0
[previous output omitted]
g++ -o lin32_build/soundmanager.o -c -pipe -Wall -Wextra -g -O3 -fomit-frame-pointer -ffast-math -funroll-loops -DQT_GUI_LIB -Di686 -D__LINUX__ -D__UNIX__ -DSETTINGS_PATH=\".mixxx/\" -DBPMSCHEME_FILE=\"mixxxbpmscheme.xml\" -DSETTINGS_FILE=\"mixxx.cfg\" -DTRACK_FILE=\"mixxxtrack.xml\" -DUNIX_SHARE_PATH=\"/usr/local/share/mixxx\" -D__PORTAUDIO__ -DQT_TABLET_SUPPORT -DQT_SHARED -D__SNDFILE__ -D__MIDISCRIPT__ -D__VINYLCONTROL__ -I/usr/share/qt4/include -Ilin32_build -Isrc -Ilib/soundtouch-1.4.1 -Ilib/kissfft -Ilib/replaygain -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtWebKit -I/usr/share/qt4/include/QtCore -I/usr/share/qt4/include/QtGui -I/usr/share/qt4/include/QtXml -I/usr/share/qt4/include/QtNetwork -I/usr/share/qt4/include/QtSql -I/usr/share/qt4/include/QtOpenGL -I/usr/share/qt4/include/QtWebKit -I/usr/share/qt4/include/Qt -Ilib/fidlib-0.9.9 -I/usr/include/taglib -I/usr/share/qt4/include/QtScript -Ilib/xwax -Ilib/scratchlib src/soundmanager.cpp
In file included from src/soundmanager.cpp:24:
src/sounddeviceportaudio.h:50: error: ‘PaDeviceIndex’ does not name a type
src/sounddeviceportaudio.h:58: error: ‘PaStreamParameters’ does not name a type
src/sounddeviceportaudio.h:60: error: ‘PaStreamParameters’ does not name a type
src/sounddeviceportaudio.h:71: error: ISO C++ forbids declaration of ‘PaStreamCallbackTimeInfo’ with no type
src/sounddeviceportaudio.h:71: error: expected ‘,’ or ‘...’ before ‘*’ token
src/soundmanager.cpp: In constructor ‘SoundManager::SoundManager(ConfigObject<ConfigValue>*, EngineMaster*)’:
src/soundmanager.cpp:56: warning: unused variable ‘pControlObjectVinylControlSignalQuality1’
src/soundmanager.cpp:57: warning: unused variable ‘pControlObjectVinylControlSignalQuality2’
src/soundmanager.cpp:58: warning: unused variable ‘pControlObjectVinylControlInputStrengthL1’
src/soundmanager.cpp:59: warning: unused variable ‘pControlObjectVinylControlInputStrengthR1’
src/soundmanager.cpp:60: warning: unused variable ‘pControlObjectVinylControlInputStrengthL2’
src/soundmanager.cpp:61: warning: unused variable ‘pControlObjectVinylControlInputStrengthR2’
src/soundmanager.cpp: In member function ‘QList<QString> SoundManager::getHostAPIList() const’:
src/soundmanager.cpp:177: error: ‘PaHostApiIndex’ was not declared in this scope
src/soundmanager.cpp:177: error: expected ‘;’ before ‘i’
src/soundmanager.cpp:177: error: ‘i’ was not declared in this scope
src/soundmanager.cpp:177: error: ‘Pa_GetHostApiCount’ was not declared in this scope
src/soundmanager.cpp:179: error: expected initializer before ‘*’ token
src/soundmanager.cpp:180: error: ‘api’ was not declared in this scope
src/soundmanager.cpp: In member function ‘void SoundManager::queryDevices()’:
src/soundmanager.cpp:311: error: ‘Pa_GetDeviceCount’ was not declared in this scope
src/soundmanager.cpp:338: error: ‘const struct PaDeviceInfo’ has no member named ‘hostApi’
src/soundmanager.cpp:338: error: ‘Pa_GetHostApiInfo’ was not declared in this scope
src/soundmanager.cpp:340: error: ‘const struct PaDeviceInfo’ has no member named ‘defaultSampleRate’
scons: *** [lin32_build/soundmanager.o] Error 1
scons: building terminated because of errors.

Operating system: GNU/Linux (Debian Squeeze 6.0.1)
CPU architecture: Intel(R) Pentium(R) M processor 1.73GHz
Video card: ATI Technologies Inc Radeon Mobility X700 (PCIE)
Audio card: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) HDA Controller

Tags: build
Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 744459] [NEW] Compilation error in soundmanager.cpp
Download full text (4.5 KiB)

Hi damores,

Are you following the guide on our wiki?
http://mixxx.org/wiki/doku.php/compiling_on_linux

<http://mixxx.org/wiki/doku.php/compiling_on_linux>It looks from your
compiler output that you're missing the PortAudio development headers. You
can install these by doing:

sudo apt-get install portaudio19-dev

Cheers,
RJ Ryan

On Mon, Mar 28, 2011 at 2:09 PM, damores <email address hidden> wrote:

> Public bug reported:
>
> I get the following error when trying to compile Mixxx 1.9.0
> (release-1.9.x~bzr2720):
>
> %> scons shoutcast=0
> [previous output omitted]
> g++ -o lin32_build/soundmanager.o -c -pipe -Wall -Wextra -g -O3
> -fomit-frame-pointer -ffast-math -funroll-loops -DQT_GUI_LIB -Di686
> -D__LINUX__ -D__UNIX__ -DSETTINGS_PATH=\".mixxx/\"
> -DBPMSCHEME_FILE=\"mixxxbpmscheme.xml\" -DSETTINGS_FILE=\"mixxx.cfg\"
> -DTRACK_FILE=\"mixxxtrack.xml\" -DUNIX_SHARE_PATH=\"/usr/local/share/mixxx\"
> -D__PORTAUDIO__ -DQT_TABLET_SUPPORT -DQT_SHARED -D__SNDFILE__
> -D__MIDISCRIPT__ -D__VINYLCONTROL__ -I/usr/share/qt4/include -Ilin32_build
> -Isrc -Ilib/soundtouch-1.4.1 -Ilib/kissfft -Ilib/replaygain
> -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
> -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml
> -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql
> -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtXmlPatterns
> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtWebKit
> -I/usr/share/qt4/include/QtCore -I/usr/share/qt4/include/QtGui
> -I/usr/share/qt4/include/QtXml -I/usr/share/qt4/include/QtNetwork
> -I/usr/share/qt4/include/QtSql -I/usr/share/qt4/include/QtOpenGL
> -I/usr/share/qt4/include/QtWebKit -I/usr/share/qt4/include/Qt
> -Ilib/fidlib-0.9.9 -I/usr/include/taglib -I/usr/share/qt4/include/QtScript
> -Ilib/xwax -Ilib/scratchlib src/soundmanager.cpp
> In file included from src/soundmanager.cpp:24:
> src/sounddeviceportaudio.h:50: error: ‘PaDeviceIndex’ does not name a type
> src/sounddeviceportaudio.h:58: error: ‘PaStreamParameters’ does not name a
> type
> src/sounddeviceportaudio.h:60: error: ‘PaStreamParameters’ does not name a
> type
> src/sounddeviceportaudio.h:71: error: ISO C++ forbids declaration of
> ‘PaStreamCallbackTimeInfo’ with no type
> src/sounddeviceportaudio.h:71: error: expected ‘,’ or ‘...’ before ‘*’
> token
> src/soundmanager.cpp: In constructor
> ‘SoundManager::SoundManager(ConfigObject<ConfigValue>*, EngineMaster*)’:
> src/soundmanager.cpp:56: warning: unused variable
> ‘pControlObjectVinylControlSignalQuality1’
> src/soundmanager.cpp:57: warning: unused variable
> ‘pControlObjectVinylControlSignalQuality2’
> src/soundmanager.cpp:58: warning: unused variable
> ‘pControlObjectVinylControlInputStrengthL1’
> src/soundmanager.cpp:59: warning: unused variable
> ‘pControlObjectVinylControlInputStrengthR1’
> src/soundmanager.cpp:60: warning: unused variable
> ‘pControlObjectVinylControlInputStrengthL2’
> src/soundmanager.cpp:61: warning: unused variable
> ‘pControlObjectVinylControlInputStrengthR2’
> src/soundmanager.cpp: In member function ‘QList<QString>
> SoundManager::getHostAPIList() const’:
> src/soundmanager.cpp:177: error: ‘PaHostApiIndex’ was not declared in this
> scope
> src/soundm...

Read more...

Revision history for this message
damores (diego-amores) wrote : Re: Compilation error in soundmanager.cpp

Thanks for the quick reply Ryan. Didn't follow the wiki guide, just the README file.

Apparently I had installed libportaudio-dev (which looks like an older version) instead of portaudio19-dev. So scons didn't complain while checking dependencies, but compilation failed aftwerwards.

Anyway, working like a charm now!

Changed in mixxx:
status: New → Invalid
Changed in mixxx:
status: Invalid → Confirmed
importance: Undecided → Low
summary: - Compilation error in soundmanager.cpp
+ Scons not complains about old libportaudio-dev (<19)
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

A lot of people get tripped up by old portaudio so we should detect and complain.

tags: added: build
Revision history for this message
Daniel Schürmann (daschuer) wrote :

We have removed scons in 2.3

Changed in mixxx:
status: Confirmed → Fix Committed
milestone: none → 2.3.0
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/5836

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.