* [gentoo-user] Cmake problem - please help
@ 2017-11-23 17:01 Helmut Jarausch
2017-11-23 17:07 ` Hung Dang
2017-11-23 18:46 ` R0b0t1
0 siblings, 2 replies; 5+ messages in thread
From: Helmut Jarausch @ 2017-11-23 17:01 UTC (permalink / raw
To: gentoo-user
Hi,
cmake is still a mystery to me.
I like to add a (non-Gentoo) package to my local overlay.
This package is configured and built by 'cmake'
It needs and finds a package 'mumps' (from the Science Overlay)
but linkage fails since the 'mumps' library needs another library
(scalapack)
So, how can I "tell" 'cmake' to link to libscalapack (there is a
/usr/lib64/pkgconfig/refscalapack.pc file on my machine)
But 'sci-libs/mumps' doesn't install a pkg-config file.
I have done 'grep' through all CMakeLists.txt files,
but I have no idea where the 'mumps' library is included.
I'd be grateful to any hints and links (for 'cmake' dummies)
Helmut
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Cmake problem - please help
2017-11-23 17:01 [gentoo-user] Cmake problem - please help Helmut Jarausch
@ 2017-11-23 17:07 ` Hung Dang
2017-11-23 17:14 ` Helmut Jarausch
2017-11-23 18:46 ` R0b0t1
1 sibling, 1 reply; 5+ messages in thread
From: Hung Dang @ 2017-11-23 17:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
Is this possible to install your packages locally in your home folder? This
approach works better if you have to work on different machines.
HTH
Hung
On Thu, Nov 23, 2017 at 12:01 PM, Helmut Jarausch <jarausch@skynet.be>
wrote:
> Hi,
>
> cmake is still a mystery to me.
>
> I like to add a (non-Gentoo) package to my local overlay.
> This package is configured and built by 'cmake'
>
> It needs and finds a package 'mumps' (from the Science Overlay)
> but linkage fails since the 'mumps' library needs another library
> (scalapack)
>
> So, how can I "tell" 'cmake' to link to libscalapack (there is a
> /usr/lib64/pkgconfig/refscalapack.pc file on my machine)
>
> But 'sci-libs/mumps' doesn't install a pkg-config file.
>
> I have done 'grep' through all CMakeLists.txt files,
> but I have no idea where the 'mumps' library is included.
>
> I'd be grateful to any hints and links (for 'cmake' dummies)
>
> Helmut
>
>
[-- Attachment #2: Type: text/html, Size: 1464 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Cmake problem - please help
2017-11-23 17:07 ` Hung Dang
@ 2017-11-23 17:14 ` Helmut Jarausch
2017-11-23 17:31 ` Hung Dang
0 siblings, 1 reply; 5+ messages in thread
From: Helmut Jarausch @ 2017-11-23 17:14 UTC (permalink / raw
To: gentoo-user
On 11/23/2017 06:07:39 PM, Hung Dang wrote:
> Is this possible to install your packages locally in your home
> folder? This
> approach works better if you have to work on different machines.
>
> HTH
> Hung
Yes, but how does this help. Cmake doesn't link to libscalapack and
therefore fails.
>
> On Thu, Nov 23, 2017 at 12:01 PM, Helmut Jarausch
> <_\bj_\ba_\br_\ba_\bu_\bs_\bc_\bh_\b@_\bs_\bk_\by_\bn_\be_\bt_\b._\bb_\be>
> wrote:
> Hi,
>
> cmake is still a mystery to me.
>
> I like to add a? (non-Gentoo) package to my local overlay.
> This package is configured and built by 'cmake'
>
> It needs and finds a package 'mumps' (from the Science Overlay)
> but linkage fails since the 'mumps' library needs another library
> (scalapack)
>
> So, how can I "tell" 'cmake' to link to libscalapack
> (there
> is a
> /usr/lib64/pkgconfig/refscalapack.pc file on my machine)
>
> But 'sci-libs/mumps' doesn't install a pkg-config file.
>
> I have done 'grep' through all CMakeLists.txt files,
> but I have no idea where the 'mumps' library is included.
>
> I'd be grateful to any hints and links (for 'cmake' dummies)
>
> Helmut
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Cmake problem - please help
2017-11-23 17:14 ` Helmut Jarausch
@ 2017-11-23 17:31 ` Hung Dang
0 siblings, 0 replies; 5+ messages in thread
From: Hung Dang @ 2017-11-23 17:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1911 bytes --]
Below are approaches that I would suggest if you want to go for the local
solution:
1. Use brewlinux to install mumps. I assume brew will pull all required
dependencies. This approach works well for me in different servers.
2. Compile mumps and it dependencies locally. You need to play around with
cmake or ccmake path setup so that mumps can use locally installed
libraries. This solution allow you to try new compilers and libraries,
however, you will have to maintain your build scripts. I have not tried
mumps before so I cannot give you detail information.
HTH
Hung
On Thu, Nov 23, 2017 at 12:14 PM, Helmut Jarausch <jarausch@skynet.be>
wrote:
> On 11/23/2017 06:07:39 PM, Hung Dang wrote:
>
>> Is this possible to install your packages locally in your home folder?
>> This
>> approach works better if you have to work on different machines.
>>
>> HTH
>> Hung
>>
>
> Yes, but how does this help. Cmake doesn't link to libscalapack and
> therefore fails.
>
>
>> On Thu, Nov 23, 2017 at 12:01 PM, Helmut Jarausch <_ j_ a_ r_ a_ u_ s_
>> c_ h_ @_ s_ k_ y_ n_ e_ t_ ._ b_ e>
>> wrote:
>> Hi,
>>
>> cmake is still a mystery to me.
>>
>> I like to add a? (non-Gentoo) package to my local overlay.
>> This package is configured and built by 'cmake'
>>
>> It needs and finds a package 'mumps' (from the Science Overlay)
>> but linkage fails since the 'mumps' library needs another library
>> (scalapack)
>>
>> So, how can I "tell" 'cmake' to link to libscalapack (there
>> is a
>> /usr/lib64/pkgconfig/refscalapack.pc file on my machine)
>>
>> But 'sci-libs/mumps' doesn't install a pkg-config file.
>>
>> I have done 'grep' through all CMakeLists.txt files,
>> but I have no idea where the 'mumps' library is included.
>>
>> I'd be grateful to any hints and links (for 'cmake' dummies)
>>
>> Helmut
>>
>>
>>
>>
>
>
[-- Attachment #2: Type: text/html, Size: 2845 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Cmake problem - please help
2017-11-23 17:01 [gentoo-user] Cmake problem - please help Helmut Jarausch
2017-11-23 17:07 ` Hung Dang
@ 2017-11-23 18:46 ` R0b0t1
1 sibling, 0 replies; 5+ messages in thread
From: R0b0t1 @ 2017-11-23 18:46 UTC (permalink / raw
To: gentoo-user
Hello,
Firstly, you should file a bug, but that might not get it working as
quickly as you'd like.
On Thu, Nov 23, 2017 at 11:01 AM, Helmut Jarausch <jarausch@skynet.be> wrote:
> Hi,
>
> cmake is still a mystery to me.
>
> I like to add a (non-Gentoo) package to my local overlay.
> This package is configured and built by 'cmake'
>
Which package?
> It needs and finds a package 'mumps' (from the Science Overlay)
> but linkage fails since the 'mumps' library needs another library
> (scalapack)
>
> So, how can I "tell" 'cmake' to link to libscalapack (there is a
> /usr/lib64/pkgconfig/refscalapack.pc file on my machine)
>
> But 'sci-libs/mumps' doesn't install a pkg-config file.
>
> I have done 'grep' through all CMakeLists.txt files,
> but I have no idea where the 'mumps' library is included.
>
The files are named like "FindXXXXX" and look like this:
https://github.com/OpenCMISS/cm/blob/master/cmake_modules/FindMUMPS.cmake.
If you edit them system-wide, you can likely get everything to build
via Portage.
You can also look for a "taget_link_library" directive in the
project's CMakeLists.txt and hardcode a path.
https://cmake.org/cmake/help/v3.0/command/target_link_libraries.html
> I'd be grateful to any hints and links (for 'cmake' dummies)
>
Pretending you want to configure and build your project with CMake is
probably the best option, though I have given you all that you should
need to fix the problem.
https://cmake.org/cmake-tutorial/
I would seriously consider Mr. Dang's solution. It is something I have
had to do quite a bit, especially as CMake is extremely opaque at the
system level. Brewlinux is new to me, I just do everything by hand.
Cheers,
R0b0t1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-23 18:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 17:01 [gentoo-user] Cmake problem - please help Helmut Jarausch
2017-11-23 17:07 ` Hung Dang
2017-11-23 17:14 ` Helmut Jarausch
2017-11-23 17:31 ` Hung Dang
2017-11-23 18:46 ` R0b0t1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox