Need just a bit of help compiling with LADSPA categories and

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

Need just a bit of help compiling with LADSPA categories and

Post by rcrath » Tue Jul 19, 2011 11:24 pm

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.

rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

compiling for LV2 specifics

Post by rcrath » Wed Jul 20, 2011 12:44 am

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.

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Need just a bit of help compiling with LADSPA categories

Post by Edgar » Wed Jul 20, 2011 3:18 pm

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.

rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

Re: Need just a bit of help compiling with LADSPA categories

Post by rcrath » Thu Jul 21, 2011 3:11 am

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?

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Need just a bit of help compiling with LADSPA categories

Post by steve » Thu Jul 21, 2011 5:18 pm

To enable effect categories you need to find the line:

Code: Select all

//#define EFFECT_CATEGORIES
in /src/Experimental.h
uncomment that line so that it reads:

Code: Select all

#define EFFECT_CATEGORIES
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

Re: Need just a bit of help compiling with LADSPA categories

Post by rcrath » Sat Jul 23, 2011 4:42 am

steve wrote:To enable effect categories you need to find the line:

Code: Select all

//#define EFFECT_CATEGORIES
in /src/Experimental.h
uncomment that line so that it reads:

Code: Select all

#define EFFECT_CATEGORIES
I did this

I could not find any line with

Code: Select all

#define USR_SLV2 1
in it so I added

Code: Select all

#define USR_SLV2
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?

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Need just a bit of help compiling with LADSPA categories

Post by Edgar » Sat Jul 23, 2011 4:10 pm

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.

rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

Re: Need just a bit of help compiling with LADSPA categories

Post by rcrath » Sun Jul 24, 2011 12:14 am

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?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Need just a bit of help compiling with LADSPA categories

Post by Gale Andrews » Sun Jul 24, 2011 2:46 am

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

rcrath
Posts: 11
Joined: Tue Jul 19, 2011 11:09 pm
Operating System: Please select

Re: Need just a bit of help compiling with LADSPA categories

Post by rcrath » Tue Aug 02, 2011 4:38 am

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.

Post Reply