From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-180872-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67473139083 for <garchives@archives.gentoo.org>; Thu, 23 Nov 2017 17:31:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AD12E0D26; Thu, 23 Nov 2017 17:31:25 +0000 (UTC) Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33148E0CA4 for <gentoo-user@lists.gentoo.org>; Thu, 23 Nov 2017 17:31:25 +0000 (UTC) Received: by mail-ot0-x233.google.com with SMTP id t79so16848235ota.3 for <gentoo-user@lists.gentoo.org>; Thu, 23 Nov 2017 09:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to; bh=4aZUxfXSpPHwDwZVFTB0zfHV/BGS5xfPq06jO66gnRQ=; b=jd0qp8TF1Z2TUTRWcTRb7wOrqme30xce34fp1Goct5BGw6AxDuNQVtwflrZJ7XTx+k 1SRMf9hlg92BR8RBZFUDyGrcpQEtOgRUeBCHcMbu93HYoxHS9dawz4cZA25zy/SzkQrW 6fzXgSTqhUJbrS+2YYFr+Ux8JYqY3O1pRmEDmFozXRe5fFdNr0frw8Ddr/PSJTEBPNRP HI6Y32JZVEZgxXau4SeGeMpSdmWECQmR5PHxDjDFcJj6CYMPBG9BE1I/elJY2kcSkjBR HYnilS1B+VfMywg+OrFYzRpq8nUQ4mIG5XFOExz4HjMEH0+gab+MONNhsOJX94fiiUiz G2IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to; bh=4aZUxfXSpPHwDwZVFTB0zfHV/BGS5xfPq06jO66gnRQ=; b=uYXvFaPtjQr2MHYbJV1tx6pVDpTruWvOzvJeKet1QKkOKHNRQl613BH1AXWRe24peF 8aqomVlFKQGuRxuIIKQ+ZJuguzxBhwY3Ft7f6yCctrmYjhXCVVPmZ8e0xLHPwWzSbUNj UnrxwpQgO2BfSmSPmaaRCXAOp/tVTlmmO1IIhqZTBdRjoWq0rAF7jGR4H0k1pgxyz0Oi rTzdrl78daEmbtuWiRhaU/JoP0IRTV3DET9Kn+rkP6K9WJapHtN1CvRAp7z5uCSpeI1i V0zeYtyZgsBBkOS0Wsopqj754JZxfNiNHqBHjb8zUZ1jj4fiD1A8ZwrZI04teGorr2ss tR1A== X-Gm-Message-State: AJaThX745QA8g1UXl6jk4llaXgIonjuhT04rpFHXiwUxaxR5x0pDlM7Y +HRqkrP2JjCQIDj8ec+zD6HXPpz5t7+tSqud+3ou1g== X-Google-Smtp-Source: AGs4zMaci8ayfLJeVKYnSnmx42c1tO1mONefFxB4FcdJUODBZGzzgyITrDED5B6vgfuKN0rhLXlP2qyJMqLPm+ol7KQ= X-Received: by 10.157.27.141 with SMTP id z13mr7065871otd.269.1511458284010; Thu, 23 Nov 2017 09:31:24 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.168.180.195 with HTTP; Thu, 23 Nov 2017 09:31:23 -0800 (PST) In-Reply-To: <YFOTC6NW.OGSSJIWJ.2CV2OMJT@CFBMLUF7.33WEA2VJ.FYODCURX> References: <BQVRZR7Y.SFA4MP6E.QJ5MAS4V@YMQLOLQY.6SN4FOWZ.G7M37ZFP> <CAJkfh3oETmoo3M=8teqEv31FRyc47yr4dic0D1nwwu+nKTdGZQ@mail.gmail.com> <YFOTC6NW.OGSSJIWJ.2CV2OMJT@CFBMLUF7.33WEA2VJ.FYODCURX> From: Hung Dang <hungptit@gmail.com> Date: Thu, 23 Nov 2017 12:31:23 -0500 Message-ID: <CAJkfh3oOiMB4FtbQ9LBKtekpFs4m=iJSye7Kw5kmCmSbirQbAA@mail.gmail.com> Subject: Re: [gentoo-user] Cmake problem - please help To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="001a113de6121c8313055ea9ce25" X-Archives-Salt: 00a6b7d2-3d50-46de-9e4e-fb2d119a10c4 X-Archives-Hash: 6a72f304168ffbc4f606b3cb2fadc5ce --001a113de6121c8313055ea9ce25 Content-Type: text/plain; charset="UTF-8" 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 >> >> >> >> > > --001a113de6121c8313055ea9ce25 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Below are approaches that I would suggest if you want to g= o for the local solution:<div><br></div><div>1. Use brewlinux to install mu= mps. I assume brew will pull all required dependencies. This approach works= well for me in different servers.</div><div><br></div><div>2. Compile mump= s and it dependencies locally. You need to play around with cmake or ccmake= path setup so that mumps can use locally installed libraries. This solutio= n allow you to try new compilers and libraries, however, you will have to m= aintain your build scripts. I have not tried mumps before so I cannot give = you detail information.=C2=A0</div><div><br></div><div>HTH</div><div>Hung</= div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu,= Nov 23, 2017 at 12:14 PM, Helmut Jarausch <span dir=3D"ltr"><<a href=3D= "mailto:jarausch@skynet.be" target=3D"_blank">jarausch@skynet.be</a>></s= pan> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex= ;border-left:1px #ccc solid;padding-left:1ex"><span class=3D"">On 11/23/201= 7 06:07:39 PM, Hung Dang wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Is this possible to install your packages locally in your home folder? This= <br> approach works better if you have to work on different machines.<br> <br> HTH<br> Hung<br> </blockquote> <br></span> Yes, but how does this help. Cmake doesn't link to libscalapack and the= refore fails.<br> <br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <br> On Thu, Nov 23, 2017 at 12:01 PM, Helmut Jarausch &lt;_ j_ a_ r_ a_ u_ = s_ c_ h_ @_ s_ k_ y_ n_ e_ t_ ._ b_ e&gt;<span class=3D""><br> wrote:<br> =C2=A0 =C2=A0 =C2=A0Hi,<br> <br> =C2=A0 =C2=A0 =C2=A0cmake is still a mystery to me.<br> <br></span> =C2=A0 =C2=A0 =C2=A0I like to add a?=C2=A0 (non-Gentoo) package to my local= overlay.<span class=3D""><br> =C2=A0 =C2=A0 =C2=A0This package is configured and built by 'cmake'= <br> <br> =C2=A0 =C2=A0 =C2=A0It needs and finds a package 'mumps' (from the = Science Overlay)<br> =C2=A0 =C2=A0 =C2=A0but linkage fails since the 'mumps' library nee= ds another library<br> =C2=A0 =C2=A0 =C2=A0(scalapack)<br> <br></span> =C2=A0 =C2=A0 =C2=A0So, how can I &quot;tell&quot; 'cmake' = to link to libscalapack (there<span class=3D""><br> =C2=A0 =C2=A0 =C2=A0is a<br> =C2=A0 =C2=A0 =C2=A0/usr/lib64/pkgconfig/refscala<wbr>pack.pc file on my ma= chine)<br> <br> =C2=A0 =C2=A0 =C2=A0But 'sci-libs/mumps' doesn't install a pkg-= config file.<br> <br> =C2=A0 =C2=A0 =C2=A0I have done 'grep' through all CMakeLists.txt f= iles,<br> =C2=A0 =C2=A0 =C2=A0but I have no idea where the 'mumps' library is= included.<br> <br> =C2=A0 =C2=A0 =C2=A0I'd be grateful to any hints and links (for 'cm= ake' dummies)<br> <br> =C2=A0 =C2=A0 =C2=A0Helmut<br> <br> <br> <br> </span></blockquote> <br> <br> </blockquote></div><br></div> --001a113de6121c8313055ea9ce25--