[yoshimi] Re: Strange install path for LV2 plugin on 64bit?

  • From: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Sun, 30 Aug 2015 21:53:35 +0100

On Sun, 12 Jul 2015 14:41:14 +0200
Frank Neumann <beachnase@xxxxxx> wrote:


Hi list,

today I noticed that when installing a freshly built yoshimi-git, the LV2
plugin gets installed to an "unusual" install path where hosts typically
won't find it:

$ sudo make install
[...]
-- Installing: /usr/local/lib/x86_64-linux-gnu/lv2/yoshimi.lv2/yoshimi_lv2.so
-- Up-to-date: /usr/local/lib/x86_64-linux-gnu/lv2/yoshimi.lv2/manifest.ttl
-- Up-to-date: /usr/local/lib/x86_64-linux-gnu/lv2/yoshimi.lv2/yoshimi.ttl

This is happening on LinuxMint 17 (Qiana) on a pure x86_64 system.
I would be happy if the install path is either /usr/local/lib/lv2 or even
/usr/local/lib64/lv2, but this is..weird. I only noticed now by chance
that the LV2 plugin I was using in qtractor was a rather old one (from
December
2014 :-) since that one still happened to be around in the standard
/usr/local/lib/lv2
path.

I find this in src/CMakeLists.txt, line 465:
set(LV2_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/lv2 CACHE PATH "Specifies where
the LV2 libraries should be installed")

but my CMake knowledge is rather thin, so I cannot see from where
CMAKE_INSTALL_LIBDIR
gets set. However, there is a commit 95a4a01cc18c745e06dfdfacd251b8734f51260c
from
Andrew Deryabin (Jan 1st, 2015) that touches these lines:

----
Commit msg: Corrected lv2 lib path detection for i686 arch

-get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
+include(GNUInstallDirs)

-if ("${LIB64}" STREQUAL "TRUE")
- set(LIBSUFFIX 64)
-else()
- set(LIBSUFFIX "")
-endif()
-
-set(LV2_INSTALL_DIR lib${LIBSUFFIX}/lv2 CACHE PATH "Specifies where the LV2
libraries should be installed")
+set(LV2_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/lv2 CACHE PATH "Specifies where
the LV2 libraries should be installed")
----

Maybe this broke things for 64bit (or maybe it's just me? :-)

Thanks,
Frank

PS: Will, congrats on that nice demo video :-)

Thanks :)

I'm a bit slow responding to this. I've been away at the New Forest Folk
Festival, also I was rather hoping Andrew could come up with something - I'm
for a from an expert in Cmake myself!

What I find puzzling is that on debian wheezy, and jessie it installs
to /usr/local/lib/lv2 on both 32 and 64 bit machines.

P.S.
I'm sending this to you directly, as well as posting it as you're not
subscribed to the new list yet - hint :)

--
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.

Yoshimi source code is available from either:
http://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi

Other related posts: