Mixxx compilation ignores PKG_CONFIG_PATH

Bug #1074939 reported by nh2
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Confirmed
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.

Tags: build
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: New → Confirmed
Revision history for this message
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
Revision history for this message
nh2 (nh2) wrote : Re: [Bug 1074939] Re: Mixxx compilation ignores PKG_CONFIG_PATH

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)
tags: added: build
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/6688

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.