Can't install Ardour because of something

I was trying to build Ardour, but somehow my computer failed me.

Waf: Leaving directory `/home/yamcake3821/ardour/build'
Build failed
 -> task in 'libardour_launchpad_pro' failed with exit status 1 (run with -v to display more information)
 -> task in 'libardour_launchpad_pro' failed with exit status 1 (run with -v to display more information)
 -> task in 'libardour_launchpad_pro' failed with exit status 1 (run with -v to display more information)

Can some of you please help me?

You would need to paste much more information than just those last lines. Use a pastebin to show the last few hundred lines of build out. http://pastebin.com/

Also, which version of Ardour are you trying to compile?
The git master version (9.0-pre) is probably still a bit unstable, so if you’re compiling from the git source you should probably do git checkout 8.10 before running ./waf configure

Well, pastebin states that it has exceeded 512 kilobytes, so I’m using another website.

Oh, thank you I should try that now.

I should also have said run ./waf -j1 so that it is not building in parallel.

There is one error regarding launchpad_pro in your log : “fatal error : libusb.h : no such file”

So you need to install the libusb-dev(el) package first.

../libs/surfaces/launchpad_pro/lppro.h:28:10: fatal error: libusb.h: No such file or directory
   28 | #include <libusb.h>
      |          ^~~~~~~~~~
compilation terminated.

I installed “libusb1-devel” and I still got that error, is there anything else that I did wrong?

What error do you get after running ./waf -j1 ?

Have you reconfigured Ardour after installing the package? If not you have to do that step again; something like

./waf configure --strict --optimize --libjack=weak --ptformat --cxx17

does the configure output now include

Checking for 'libusb-1.0' >= 1.0.16                  : yes

It does now, I hope this time it’ll work. Fingers crossed.

Maybe ./waf configure should check for libusb.h and bug out if it’s not found.
I have been bitten by this myself a couple of times.

OH. MY. GOD. It ran the ./waf command successfully. Thank you guys for helping this whole time!

It is optional. When libusb is not found, ardour builds just fine, except for some control surfaces.

There was however a bug (already fixed): The launchpad and launchkey surfaces were build unconditionally. Now they are only built if libusb is found.

1 Like

Sorry, but just as I thought there’s no more problems left, there is one. When I ran ./waf install , this popped up.

yamcake3821@192:~/ardour$ ./waf install
Waf: Entering directory `/home/yamcake3821/ardour/build'
Waf: Leaving directory `/home/yamcake3821/ardour/build'
Build failed
Traceback (most recent call last):
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Task.py", line 180, in process
    ret=self.run()
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Build.py", line 556, in run
    x.parent.mkdir()
    ~~~~~~~~~~~~~~^^
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Node.py", line 188, in mkdir
    raise Errors.WafError('Could not create the directory %r'%self)
waflib.Errors.WafError: Could not create the directory /usr/local/lib/ardour8

Traceback (most recent call last):
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Task.py", line 180, in process
    ret=self.run()
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Build.py", line 556, in run
    x.parent.mkdir()
    ~~~~~~~~~~~~~~^^
  File "/home/yamcake3821/ardour/.waf3-2.0.26-44bc421a5f6bb452d70d83cbd5abc3fa/waflib/Node.py", line 188, in mkdir
    raise Errors.WafError('Could not create the directory %r'%self)
waflib.Errors.WafError: Could not create the directory /usr/local/lib/ardour8

There’s no problems in running Ardour without installing it, there is when I try to install it.
Please help me.

You need root privileges to install into /usr/local (or almost anywhere outside your home directory).

Try running sudo ./waf install.

(BTW, knowing about the root/normal user distinction and file permissions is essential basic Linux knowledge, at least when you are trying advanced things like compiling and installing third-party software, so I suggest getting educated on these topics. I know this may sound condescending, but you would do yourself a favour.)

or better yet: run it from the source-tree without installing.

./gtk2_ardour/ardev

Uninstalling Ardour, once installed, is not trivial: the usual sudo waf uninstall will only work with the same version, configured in the same way.

1 Like

Thank you. I would try that right now.