1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Specify 64 Bit Installation Directory

Post a message here if you have questions and/or problems with getting MusE to do what you want.

Specify 64 Bit Installation Directory

Postby tpreitzel » Sun Jun 26, 2011 6:09 am

Robert, et al:

Thanks for the newly reworked MusE for QT4! I've been waiting. ;)

BTW, how does one change the installation directory for the libraries using cmake?

I tried to specify the option -DLIB_SUFFIX=64 to cmake, but the libraries are ALWAYS installed to /usr/lib instead of /usr/lib64 ... Obviously, I'm doing something wrong.

TIA
tpreitzel
 

Re: Specify 64 Bit Installation Directory

Postby Guest » Sun Jun 26, 2011 7:24 am

I've even tried installing libraries to /usr/lib64 using the option, -DLIB_INSTALL_DIR=lib64, but the libraries are still installed to /usr/lib instead of /usr/lib64
Guest
 

Re: Specify 64 Bit Installation Directory

Postby spamatica » Tue Jul 12, 2011 7:51 am

Hi!

Sorry for the delay.
I haven't tested this myself, googling a bit turned up this:
cmake -DLIB_SUFFIX=64 .
from here http://www.mail-archive.com/boost-cmake ... 00588.html

Hope it works for you.

Regards,
Robert
spamatica
Site Admin
 
Posts: 83
Joined: Thu Feb 10, 2011 11:17 am

Re: Specify 64 Bit Installation Directory

Postby tpreitzel » Thu Jan 19, 2012 5:01 am

Robert,

LIB_SUFFIX=64 isn't enough. One has to add the environment variable, CMAKE_INSTALL_LIBDIR=/usr/lib64, in order for muse-2.0 to compile on 64 bit GNU/Linux with the libraries in /usr/lib64 .

For example, cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=Release -DLOCALSTATE_INSTALL_DIR=/var -DSYSCONF_INSTALL_DIR=/etc -DCMAKE_INSTALL_LIBDIR=/usr/lib64 , for Slackware64 ...

I HTH
tpreitzel
 
Posts: 2
Joined: Sun Jun 26, 2011 7:16 am

Re: Specify 64 Bit Installation Directory

Postby spamatica » Mon Jan 23, 2012 11:02 am

Okay thanks for the information. I'll send it along to the mailinglist and see if any other dev has something to add.

Reading my previous reply I don't know what I was thinking... the same as you had tried right?

Regards,
Robert
spamatica
Site Admin
 
Posts: 83
Joined: Thu Feb 10, 2011 11:17 am

Re: Specify 64 Bit Installation Directory

Postby tpreitzel » Sat Jan 28, 2012 11:28 am

spamatica wrote:Okay thanks for the information. I'll send it along to the mailinglist and see if any other dev has something to add.

Reading my previous reply I don't know what I was thinking... the same as you had tried right?

Regards,
Robert


Right.
tpreitzel
 
Posts: 2
Joined: Sun Jun 26, 2011 7:16 am

Re: Specify 64 Bit Installation Directory

Postby terminator356 » Sun Feb 12, 2012 10:57 pm

Hello. Late to the discussion, sorry.

Researched: CMAKE_INSTALL_LIBDIR is apparently accepted (as you've shown),
but not defined so it does not automatically show up in say, ccmake gui.

Here are the lines from the top of our top-level CMakeLists.txt:

# set libdir if not use -DCMAKE_INSTALL_LIBDIR
if (NOT CMAKE_INSTALL_LIBDIR)
SET(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib")
endif (NOT CMAKE_INSTALL_LIBDIR)

So if you say CMAKE_INSTALL_LIBDIR works for you, that's good to know it works. Is it all we can do?
I guess I should put that important piece of information in the README, since users won't see that option (I didn't see it).

Tim.
terminator356
 
Posts: 46
Joined: Sat Oct 29, 2011 5:52 pm

Re: Specify 64 Bit Installation Directory

Postby terminator356 » Mon Feb 13, 2012 8:43 am

Oh, on second glance and a few hours more research ...

CMake build system: Added cached variable LIB_PATH_SUFFIX, may be set to 64 so that installed library path is lib64 or whatever.
It should show up in the cmake guis.
In the SVN release_2_0 branch now.

Here's how I changed our top CMakeLists.txt. If you spot, or have, any problems please let me know !

if (NOT LIB_PATH_SUFFIX)
SET(LIB_PATH_SUFFIX "" CACHE STRING "Suffix for installed library path. Ex. 64 for lib64")
endif (NOT LIB_PATH_SUFFIX)

# set libdir if not use -DCMAKE_INSTALL_LIBDIR
if (NOT CMAKE_INSTALL_LIBDIR)
SET(CMAKE_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_PATH_SUFFIX}")
endif (NOT CMAKE_INSTALL_LIBDIR)

Thanks. Tim.
terminator356
 
Posts: 46
Joined: Sat Oct 29, 2011 5:52 pm


Return to Getting Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron