[yoshimi-user] Strange install path for LV2 plugin on 64bit?

  • From: Frank Neumann <beachnase@xxxxxx>
  • To: yoshimi-user@xxxxxxxxxxxxxxxxxxxxx
  • Date: Sun, 12 Jul 2015 14:41:14 +0200


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 :-)


Other related posts: