Showing posts with label walk away. Show all posts
Showing posts with label walk away. Show all posts

Saturday, October 31, 2009

libtool

While trying to build soundtouch I ran into more problems:
make[1]: Leaving directory `/var/cache/prevu/src/14938/source'
cd build-tree/soundtouch-1.3.1 && libtoolize -c -f -i
libtoolize: unrecognized option `-i'
Try `libtoolize --help' for more information.
make: *** [debian/stamp-autotools-files] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

I researched libtool a bit and find that the version in hardy is quite old compared to Jaunty (1.5.26-1ubuntu1 vs 2.2.6a-1ubuntu1).

At this point I did what works for me; I walked away again and did some thinking. Guessing that perhaps the '-i' was an argument for a later version I'm going to try to build libtool first before trying to build soundtouch again.

I made sure I was using the Jaunty source repository again.
sudo gedit /etc/apt/sources.list

I made sure the additional source at the bottom referenced Jaunty.
# Adding interpid sources for prevu
deb-src http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse

Update prevu.
sudo -E prevu-update


Then I did the usual song and dance.
mkdir libtool
cd libtool
apt-get source libtool
cd libtool-2.6.2a
prevu

Success.

Next I installed the libtool package in the hopes that the '-i' argument was a new feature in the later versions libtool. Next on to building soundtouch again.

[edit: as it turned out, I was right and soundtouch then built correctly]

Note that I had such trouble that I couldn't conclusively determine if I needed to install packages via synaptic or would prevu recognize them from the local repository.

cdbs

As mentioned in the previous post I needed to build soundtouch in order to hopefully build Ardour but got no love from building soundtouch. It turns out I needed a more recent version of cdbs. So to build cdbs before I can build soundtouch before I can build Ardour.

Trouble is that as I tried to build cdbs from the jaunty repository I received an error rather than the expected and familiar unmet dependency. A quick Google search and I wasn't any better off. Therefore I do what I do best; I walked away and thought about it.

Thinking back from what I read I guessed that I might need to build the correct version of cdbs from the oldest release of Ubuntu, in this case intrepid.

I changed my sources.list so that I could get sources from the intrepid sources repository rather than jaunty.
sudo gedit /etc/apt/sources.list

and a changed this:
# Adding interpid sources for prevu
deb-src http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse

to this:
# Adding interpid sources for prevu
deb-src http://archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse

Now I needed to update my sources.
sudo apt-get update

Finally, I updated prevu.
sudo -E update-prevu

Now, I could follow the familiar steps.
mkdir cdbs
cd cdbs
apt-get source cdbs
cd cdbs-0.4.52ubuntu7
prevu

I really didn't think this would work but it did.

So now I've build cdbs with the correct required version so I can now build soundtouch (hopefully) and then build Ardour (also hopefully) without any more trouble.

Prediction: I expect soundtouch will build fine, but I would probably lay even money against Ardour building without some other trouble.

Lastly, I can now test how the prevu-update works. Specifically, do I need to actually install the latest cdbs on my system or can I just update prevu and let it recognize that a more recent version of cdbs is available from my local repository.