Re: [LAD] JackMix [was: LADI]

From: james morris <james@email-addr-hidden-art.net>
Date: Sat Dec 26 2009 - 14:40:55 EET

On 26/12/2009, "Patrick Shirkey" <pshirkey@email-addr-hidden> wrote:

>
>On 12/26/2009 10:18 PM, james morris wrote:
>> On 26/12/2009, "Ralf Mardorf"<ralf.mardorf@email-addr-hidden-dsl.net> wrote:
>>
>>>> http://www.arnoldarts.de/drupal/?q=JackMix
>>>>
>> Any ideas as to how to get it to recognize JACK in /usr/local/lib64/ ?
>>
>
>
>At compile time or runtime?
>
>For compile time you might need to specify --libdir =/usr/lib64

Compile time. --libdir fails also.

I've tried all sorts of variations of passing /usr/local/lib64 to scons,
but it always fails.

ie:
LIBS=/usr/local/lib64 scons
JACKLIBS=/usr/local/lib64 scons
JACK_LIBS=/usr/local/lib64 scons
etc etc etc

pkg-config does work:

musys2@email-addr-hidden:~/SRC/jackmix-0.4.1$ pkg-config --libs jack
-L/usr/local/lib64 -ljack -lpthread -lrt

here's the SConstruct file:

env = Environment( tools=['default', 'pkgconfig', 'qt4muc' ],
toolpath=['admin'] )

env.Replace( LIBS="" )
env.Replace( LIBPATH="" )

env['CXXFLAGS']+="-Wall -Werror -g -fpic"

tests = { }
tests.update( env['PKGCONFIG_TESTS'] )

conf = Configure( env, custom_tests=tests, conf_dir='cache',
log_file='cache/config.log' )

if not conf.CheckHeader( 'stdio.h', language="C" ):
        Exit( 1 )
if not conf.CheckHeader( "iostream", language="C++" ):
        Exit( 1 )

allpresent = 1

allpresent &= conf.CheckForPKGConfig()

pkgs = {
        'jack' : '0.100.0',
        'lash-1.0' : '0.5.1',
        'QtCore' : '4.2',
        'QtGui' : '4.2',
        'QtXml' : '4.2',
        }
for pkg in pkgs:
        name2 =
pkg.replace("+","").replace(".","").replace("-","").upper()
        env['%s_FLAGS' % name2] = conf.GetPKGFlags( pkg, pkgs[pkg] )
        if env['%s_FLAGS'%name2] == 0:
                allpresent &= 0

if not allpresent:
        print "(At least) One of the dependencies is missing. I can't
go on without it..."
        Exit( 1 )

env = conf.Finish()

env.MergeFlags( "-I#" )

env.MergeFlags( env["QTCORE_FLAGS"] )

## target processing is done in the subdirectory
env.SConscript(
dirs=['libcore','libqlash','libgui','backend','libmatrix','libelements','jackmix'],
exports="env" )
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Dec 26 16:15:02 2009

This archive was generated by hypermail 2.1.8 : Sat Dec 26 2009 - 16:15:02 EET