Mixxx compilation ignores PKG_CONFIG_PATH

Bug #1074939 reported by nh2 on 2012-11-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Low
Unassigned

Bug Description

If you try and compile Mixx with custom libraries (e.g. a newer portaudio than is available from you package repositories), e.g.

    PKG_CONFIG_PATH=$HOME/opt/mixxx/lib/pkgconfig scons prefix=$HOME/opt/mixxx

then the compilation doesn't find it; scons seems to completely ignore the PKG_CONFIG_PATH environment variable.

That makes testing out new versions of Mixxx very hard.

RJ Skerry-Ryan (rryan) on 2012-11-04
Changed in mixxx:
status: New → Confirmed
RJ Skerry-Ryan (rryan) wrote :

The problem is Mixxx doesn't really use pkg-config except for a few libraries here and there. So it's not that your version is not getting picked up for portaudio. It's that Mixxx is just assuming portaudio headers are on the include path and -lportaudio is in the link path.

For a workaround you can define your CFLAGS/CXXFLAGS/LDFLAGS to point to point to the new version of portaudio.

Changed in mixxx:
importance: Undecided → Low

Thanks, that worked!

I used:

export PKG_CONFIG_PATH=$HOME/opt/mixxx/lib/pkgconfig
export INCLUDE_PATH=$HOME/opt/mixxx/include
export LDFLAGS=-L$HOME/opt/mixxx/lib/
export CXXFLAGS=-I$HOME/opt/mixxx/include

scons useenv=yes

I think this should be mentioned at least in
http://www.mixxx.org/wiki/doku.php/compiling_on_linux.

Niklas

RJ Skerry-Ryan (rryan) on 2014-03-29
tags: added: build
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers