Re: [LAD] Autotools and missing headers.

From: Gabriel M. Beddingfield <gabriel@email-addr-hidden>
Date: Fri Jun 19 2009 - 14:54:36 EEST

Hi Ulrich,

Ulrich Lorenz Schlüter wrote:
> I try to develop some Autotools scripts for my project and I'm getting
> following make/compile errors:

FWIW, Autotools is a pretty good thing, but it's tricky to learn... and not a
fun process. (Well, M4 macros are *kind* of fun... but that's about it.)

There are lots of alternatives, including:

     * waf -- If you know the Python programming language,
       this may be a good choice. I've heard good things
       about waf.

     * CMake -- This is what the KDE project now uses.

     * qmake -- If you're doing a Qt project, this is
       a pretty good option.

     * scons -- Like waf, it's based on Python. A lot
       of people like it, and several audio projects
       (like Ardour and Hydrogen) use it. However, I don't
       personally recommend this system.

> In file included from and.cpp:1:
> /usr/include/lv2plugin.hpp:34:25: error: lv2_uri_map.h: No such file or
> directory

First of all, do you have the file lv2_uri_map.h on your system? What is the
path to the file?

Suppose it is '/usr/include/lv2/lv2_uri_map.h' In that case, you have a couple
options:

1. Change lv2plugin.hpp so that:
        #include <lv2_uri_map.h>
    becomes:
        #include <lv2/lv2_uri_map.h>

2. If using gcc or g++, make sure that the compiler
    is run with -I/usr/include/lv2. I.e.:
        g++ -c -g -O2 -I/usr/include/lv2 -o foo.o foo.cpp

With autoconf, this is done by adding the value to CPPFLAGS (or CXXFLAGS if you
only want it to affect C++ programs). So, after you detect where the directory
with the headers is... you add it like this:

    CPPFLAGS="$CPPFLAGS -I/usr/include/lv2"

HTH,
Gabriel
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri Jun 19 16:15:02 2009

This archive was generated by hypermail 2.1.8 : Fri Jun 19 2009 - 16:15:02 EEST