On 07/28/2012 11:59 PM, David Henningsson wrote:
> 4) Run
> sudo make install
> ...to install the new version. Once you have finished testing, run
> sudo make uninstall
> ...to revert to the version that comes with Ubuntu.
On my system (Kubuntu 64-bit), this resulted in version 1.1.6 of the
FluidSynth binary using the 1.1.5 libraries.  Removing the Ubuntu
FluidSynth packages and then installing the 1.1.6 RC results in the
1.1.6 binary being unable to find its libraries altogether.  I'm
guessing this only affects 64-bit users (looks like a multiarch issue). 
/Disclaimer: /I have no idea how many bad things I did to make this
work, but here is what I did to get FluidSynth 1.1.6 RC working on my
system:

 1. Uninstall Ubuntu's FluidSynth packages while ignoring dependencies
    (so that it won't try to uninstall half of my audio software as well):

    sudo dpkg -r --force-depends fluidsynth libfluidsynth-dev libfluidsynth1

    /Note: /this will cause your package manager to report broken
    packages, so it is a good idea to do this only temporarily while
    testing the new RC.  The Ubuntu packages can be properly reinstalled
    later by issuing the command:

    sudo apt-get install fluidsynth libfluidsynth-dev libfluidsynth1

 2. Build the FluidSynth RC.  From the FluidSynth source directory:

    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr ..
    make
    sudo make install

 3. Since I am running a 64-bit OS, the install process puts the
    FluidSynth libraries in */usr/lib64*, but they need to be in
    */usr/lib/x86_64-linux-gnu* instead.  I just copied them there using
    Dolphin (file manager) as root.

FluidSynth 1.1.6 and Qsynth, etc. should now work and access the correct
library version.  There's probably a better, more sane way to do what I
just did in the steps above, but this is the only way I've been able to
figure it out so far.  I also had a problem with OSS support causing
make to abort, so I edited the *CMakeLists.txt* file in the source
directory by changing line 328 from:

set ( OSS_SUPPORT ${OSS_FOUND} )

...to:

set ( OSS_SUPPORT 0 )

...and then I was able to compile.

After testing, you will need to manually remove the library files you
copied to */usr/lib/x86_64-linux-gnu* and "sudo make uninstall" from the
FluidSynth build directory should remove the rest.  I say "should"
because it actually leaves the */usr/lib64/libfluidsynth.so* and
*/usr/lib64/libfluidsynth.so.1* symlinks behind, so you will have to
remove those manually as well.

-~Chris

_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to