Page 1 of 2
Need just a bit of help compiling with LADSPA categories and
Posted: Tue Jul 19, 2011 11:24 pm
by rcrath
Hi,
Pretty inexperience with compiling with options and variables. I think I got the options flag right, but I do not know what to type to define the variables. I found the following information, but I am not sure how to actually do the .configure command:
LV2:
compile with USE_SLV2 defined and libslv2 enabled.
Categories:
USE_LIBLRDF defined and liblrdf enabled
To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE.
I got this far:
Code: Select all
./configure --enable-libslv2=yes --enable-liblrdf=yes
what do I add to this line (assuming it is right) to define USE_SLV2 and USE_LIBLRDF?
Thanks for any help on this...really looking forward to categories (yay!) and trying some of the LV2 plugs.
compiling for LV2 specifics
Posted: Wed Jul 20, 2011 12:44 am
by rcrath
Hi,
I am trying to compile for LADSPA category support and
[email protected] support. What I found was that I have to
LV2:
compile with USE_SLV2 defined and libslv2 enabled.
Categories:
USE_LIBLRDF defined and liblrdf enabled
To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE.
I am guessing that config should look almost like this:
Code: Select all
./configure --enable-liblrdf=yes --enable-libslv2=yes
but I do not know what to type to compile with USE_SLV2 and USE_LIBLRDF defined as I am too much of a noob to know exactly what that means in terms of what to type.
I am compiling from audacity-fullsrc-1.3.13-beta.tar.bz2 on Ubuntu 11.04
Thank you for the help!
I tried posting this earlier, but it did not show up, so sorry if this is a double post.
Re: Need just a bit of help compiling with LADSPA categories
Posted: Wed Jul 20, 2011 3:18 pm
by Edgar
I am not a Linux guru but on Windows I change these in the code, not on the command line for the compiler (I know it can be do there as well but have never done so). Search each #define:
Code: Select all
Find all "USE_SLV2", Subfolders, Find Results 2, "Entire Solution", "*.c; *.cpp; *.h"
D:audioAudacitySVNsrcAudacityApp.cpp(180):# if defined(USE_SLV2)
D:audioAudacitySVNwinconfigwin.h(30):// #define USE_SLV2 1
D:audioAudacitySVNsrceffectsLoadEffects.cpp(70):#ifdef USE_SLV2
D:audioAudacitySVNsrceffectsLoadEffects.cpp(290):#ifdef USE_SLV2
D:audioAudacitySVNsrceffectsLoadEffects.cpp(318):#ifdef USE_SLV2
Matching lines: 5 Matching files: 3 Total files searched: 1146
and make sure the value is set to 1 and not commented out:
// #define USE_SLV2 1
should be
#define USE_SLV2 1
Do the same for the other.
Re: Need just a bit of help compiling with LADSPA categories
Posted: Thu Jul 21, 2011 3:11 am
by rcrath
That did it, thanks. It compiled and ran fine, but when I open audacity, there are no categories and no lv2 plugins. When I open pref/effects, there is no entry for lv2, just ladspa, vamp, and nyquist. Any ideas what I did wrong or what I need to do next?
Re: Need just a bit of help compiling with LADSPA categories
Posted: Thu Jul 21, 2011 5:18 pm
by steve
To enable effect categories you need to find the line:
in
/src/Experimental.h
uncomment that line so that it reads:
Re: Need just a bit of help compiling with LADSPA categories
Posted: Sat Jul 23, 2011 4:42 am
by rcrath
steve wrote:To enable effect categories you need to find the line:
in
/src/Experimental.h
uncomment that line so that it reads:
I did this
I could not find any line with
in it so I added
to the file experimental.h (with no "1" which I am guessing is a windows thing, then ran
Code: Select all
./configure --enable-liblrdf=yes --enable-libslv2=yes --with-midi=yes
Everything compiled fine, and audacity runs, but there is no categorization and no lv2 support that I can see. Any ideas what I am doing wrong?
I did not check midi support. SHould the "--with-midi" flag have an argument [yes] or just be left without one?
Any ideas what I might be doing wrong?
Re: Need just a bit of help compiling with LADSPA categories
Posted: Sat Jul 23, 2011 4:10 pm
by Edgar
Since it appears to be defined in a Windows header:
winconfigwin.h(30):// #define USE_SLV2 1
I suspect you will need to define it on the command line when you compile. I don't do much of this anymore and do not recall if it is done in configure or make. You might get away with adding the above #define in some high-level include file or in any source file where it is used.
Re: Need just a bit of help compiling with LADSPA categories
Posted: Sun Jul 24, 2011 12:14 am
by rcrath
Edgar wrote:Since it appears to be defined in a Windows header:
winconfigwin.h(30):// #define USE_SLV2 1
I suspect you will need to define it on the command line when you compile. I don't do much of this anymore and do not recall if it is done in configure or make. You might get away with adding the above #define in some high-level include file or in any source file where it is used.
I added it to experimental.h, but that did not work
Is there a linux equivalent to configwin.h? I coulod try defining it there instead.
I checked through the help file for configure with no luck. Also the install and readme files in the directories where the lv2 related files are. will look at the man page for make.
I think I am just missing something pretty simple here, because the categories did not compile either, although I found the def for that and uncommented it. Any other ideas?
Re: Need just a bit of help compiling with LADSPA categories
Posted: Sun Jul 24, 2011 2:46 am
by Gale Andrews
As far as I know, you won't be able to compile with LADSPA categories and LV2 support. The configure commands you would have used:
Code: Select all
--with-redland use Redland for reading RDF data
--with-slv2 use SLV2 for loading LV2 plugins
--with-liblrdf use liblrdf for categorisation of LADSPA plugin
were
ripped out in 2009.
Defining EFFECT_CATEGORIES in src/Experimental.h should be sufficient for categorisation of built-in and Nyquist plug-ins, as I tried this only a few months ago. Have you done make clean, ./configure and make dep to be sure?
Gale
Re: Need just a bit of help compiling with LADSPA categories
Posted: Tue Aug 02, 2011 4:38 am
by rcrath
well that solves that with nothing lost but a few hours of wasted time

I was able to workaround by loading the lv2 plugins into lv2rack and using jack, which is what I should have done in the first place. Categories would still be useful though.