[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-discuss
Subject: Re: [Discuss-gnuradio] Linking Armadillo and LAPACK to gnuradio
From: Richard Mcallister <rjm96 () bu ! edu>
Date: 2017-02-24 20:36:26
Message-ID: CALNG9qn-C7_Q1yN91yfXUW-rjs1mCWqH7GnL1gt=gpQarFLrgg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Sorry, I didn't realize I hit reply not reply all
Thanks! I'll add it in and see what happens.
On Fri, Feb 24, 2017 at 3:30 PM, Marcus Müller <marcus.mueller@ettus.com>
wrote:
> yep, simply copy over to cmake/Modules. That way, CMake will find it when
> you look for Armadillo
>
> Cheers,
>
> Marcus
>
> PS: I think this might be useful in the future, so please try to keep the
> mailing list in CC:
>
> On 24.02.2017 21:25, Richard Mcallister wrote:
>
> FindArmadillo.cmake in cmake/Modules? I haven't included it, so I just
> place the file in cmake/Modules? Or how I should include it in my OOT
> module?
>
> On Fri, Feb 24, 2017 at 3:22 PM, Marcus Müller <marcus.mueller@ettus.com>
> wrote:
>
> > Ah sorry, forgot to mention the key point: you've got the
> > FindArmadillo.cmake from gr-specest?
> >
> >
> > On 24.02.2017 21:18, Richard Mcallister wrote:
> >
> > Hey Marcus,
> >
> > I added the following lines to my CMakeLists.txt, following from what
> > gr-specest had:
> > find_package(BLAS REQUIRED)
> > find_package(LAPACK REQUIRED)
> > find_package(Armadillo)
> > include(Armadillo)
> >
> > And when i run 'make' it results in:
> > -- A library with BLAS API found.
> > -- A library with BLAS API found.
> > -- A library with LAPACK API found.
> > CMake Error at CMakeLists.txt:125 (include):
> > include could not find load file:
> >
> > Armadillo
> > (The other lines are just the standard outputs in the console)
> > Line 125 is include(Armadillo). I guess thats where error is, although
> > pybombs tells me armadillo is installed. Is there a way to manually link it?
> >
> > Thanks,
> > Rich
> >
> >
> >
> > On Fri, Feb 24, 2017 at 2:54 PM, Marcus Müller <marcus.mueller@ettus.com>
> > wrote:
> >
> > > I remember we had quite a struggle for a moment, but fixed that for
> > > gr-specest. See https://github.com/kit-cel/gr-specest.
> > >
> > > Best regards,
> > >
> > > Marcus
> > >
> > > On 24.02.2017 20:31, Richard Mcallister wrote:
> > >
> > > Hey all,
> > >
> > > This might be more of an error with cmake or armadillo, but I've been
> > > trying to use armadillo in an OOT module. I've called make and built the
> > > module, no issues with missing libraries or anything. Pybombs tells me that
> > > armadillo is installed, along with blas and lapack. I'm using the latest
> > > gnuradio update, and I'm on Ubuntu 16.04
> > >
> > > However, when I run 'ctest -V -R'
> > > Test timeout computed to be: 9.99988e+06
> > > 3: Traceback (most recent call last):
> > > 3: File "/home/rich/Desktop/repos3/gr-vlp2/python/qa_amp2d_ff.py",
> > > line 24, in <module>
> > > 3: import vlp2_swig as vlp2
> > > 3: File "/home/rich/Desktop/repos3/gr-vlp2/build/swig/vlp2_swig.py",
> > > line 28, in <module>
> > > 3: _vlp2_swig = swig_import_helper()
> > > 3: File "/home/rich/Desktop/repos3/gr-vlp2/build/swig/vlp2_swig.py",
> > > line 24, in swig_import_helper
> > > 3: _mod = imp.load_module('_vlp2_swig', fp, pathname, description)
> > > 3: ImportError: /home/rich/Desktop/repos3/gr-v
> > > lp2/build/lib/libgnuradio-vlp2.so: undefined symbol: wrapper_sgelsd_
> > >
> > > All of the tests in the OOT modules fail (except test_vlp2), including
> > > blocks that don't use armadillo. I've looked at gr-specest and added the
> > > following lines to my CMakeLists.txt:
> > > find_package(BLAS REQUIRED)
> > > find_package(LAPACK REQUIRED)
> > > find_package(Armadillo)
> > >
> > > and still get the same issues. I'm pretty sure cmake is missing
> > > something, I'm just not sure what. Has anyone else had issues with this
> > > before?
> > >
> > >
> > > Thanks,
> > > Rich
> > >
> > >
> > > _______________________________________________
> > > Discuss-gnuradio mailing \
> > > listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> > >
> > > _______________________________________________ Discuss-gnuradio
> > > mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/
> > > listinfo/discuss-gnuradio
> >
> >
[Attachment #5 (text/html)]
<div dir="ltr"><div>Sorry, I didn't realize I hit reply not reply \
all<br><br></div>Thanks! I'll add it in and see what happens. \
<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb \
24, 2017 at 3:30 PM, Marcus Müller <span dir="ltr"><<a \
href="mailto:marcus.mueller@ettus.com" \
target="_blank">marcus.mueller@ettus.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>yep, simply copy over to cmake/Modules. That way, CMake will find
it when you look for Armadillo</p>
<p>Cheers,</p>
<p>Marcus</p>
<p>PS: I think this might be useful in the future, so please try to
keep the mailing list in CC:<br>
</p><div><div class="m_-5934897705250131514h5">
<br>
<div class="m_-5934897705250131514m_-6101732270161495915moz-cite-prefix">On \
24.02.2017 21:25, Richard Mcallister wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">FindArmadillo.cmake in cmake/Modules? I haven't
included it, so I just place the file in cmake/Modules? Or how I
should include it in my OOT module?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 24, 2017 at 3:22 PM, Marcus
Müller <span dir="ltr"><<a href="mailto:marcus.mueller@ettus.com" \
target="_blank">marcus.mueller@ettus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> <div bgcolor="#FFFFFF" text="#000000">
<p>Ah sorry, forgot to mention the key point: you've got
the FindArmadillo.cmake from gr-specest?</p>
<div>
<div class="m_-5934897705250131514m_-6101732270161495915h5">
<p><br>
</p>
<div \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727moz-cite-prefix">On
24.02.2017 21:18, Richard Mcallister wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hey Marcus,<br>
<br>
</div>
I added the following lines to my
CMakeLists.txt, following from what
gr-specest had:<br>
find_package(BLAS REQUIRED)<br>
find_package(LAPACK REQUIRED)<br>
find_package(Armadillo)<br>
include(Armadillo)<br>
<br>
</div>
And when i run 'make' it results in:<br>
-- A library with BLAS API found.<br>
-- A library with BLAS API found.<br>
-- A library with LAPACK API found.<br>
CMake Error at CMakeLists.txt:125 (include):<br>
include could not find load file:<br>
<br>
Armadillo<br>
</div>
<div>(The other lines are just the standard
outputs in the console)<br>
</div>
Line 125 is include(Armadillo). I guess thats
where error is, although pybombs tells me
armadillo is installed. Is there a way to
manually link it?<br>
<br>
</div>
Thanks,<br>
</div>
Rich<br>
<div>
<div>
<div><br>
<div><br>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 24, 2017 at
2:54 PM, Marcus Müller <span dir="ltr"><<a \
href="mailto:marcus.mueller@ettus.com" \
target="_blank">marcus.mueller@ettus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> <div bgcolor="#FFFFFF" \
text="#000000"> <p>I remember we had quite a struggle for a
moment, but fixed that for gr-specest. See
<a \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727m_2727735801715497760moz-txt-link-freetext" \
href="https://github.com/kit-cel/gr-specest" \
target="_blank">https://github.com/kit-cel/gr-<wbr>specest</a>. <br>
</p>
<p>Best regards,</p>
<p>Marcus<br>
</p>
<div>
<div \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727h5"> \
<br>
<div \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727m_2727735801715497760moz-cite-prefix">On
24.02.2017 20:31, Richard Mcallister
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727h5"> <div \
dir="ltr"> <div>
<div>
<div>
<div>
<div>Hey all,<br>
<br>
</div>
This might be more of an
error with cmake or
armadillo, but I've been
trying to use armadillo in
an OOT module. I've called
make and built the module,
no issues with missing
libraries or anything.
Pybombs tells me that
armadillo is installed,
along with blas and lapack.
I'm using the latest
gnuradio update, and I'm on
Ubuntu 16.04<br>
<br>
</div>
However, when I run 'ctest -V
-R'<br>
Test timeout computed to be:
9.99988e+06<br>
3: Traceback (most recent call
last):<br>
3: File
\
"/home/rich/Desktop/repos3/gr-<wbr>vlp2/python/qa_amp2d_ff.py", line 24, \
in <module><br> 3: import vlp2_swig as
vlp2<br>
3: File
\
"/home/rich/Desktop/repos3/gr-<wbr>vlp2/build/swig/vlp2_swig.py", line 28, \
in <module><br> 3: _vlp2_swig =
swig_import_helper()<br>
3: File
\
"/home/rich/Desktop/repos3/gr-<wbr>vlp2/build/swig/vlp2_swig.py",
line 24, in swig_import_helper<br>
3: _mod =
imp.load_module('_vlp2_swig',
fp, pathname, description)<br>
3: ImportError:
\
/home/rich/Desktop/repos3/gr-v<wbr>lp2/build/lib/libgnuradio-vlp2<wbr>.so: undefined \
symbol: wrapper_sgelsd_<br>
<br>
</div>
All of the tests in the OOT
modules fail (except test_vlp2),
including blocks that don't use
armadillo. I've looked at
gr-specest and added the
following lines to my
CMakeLists.txt:<br>
find_package(BLAS REQUIRED)<br>
find_package(LAPACK REQUIRED)<br>
find_package(Armadillo)<br>
<br>
</div>
<div>and still get the same
issues. I'm pretty sure cmake is
missing something, I'm just not
sure what. Has anyone else had
issues with this before?<br>
</div>
<div><br>
<br>
</div>
Thanks,<br>
</div>
Rich<br>
</div>
<br>
<fieldset \
class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727m_2727735801715497760mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
\
<pre>______________________________<wbr>_________________ Discuss-gnuradio mailing \
list <a class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727m_2727735801715497760moz-txt-link-abbreviated" \
href="mailto:Discuss-gnuradio@gnu.org" target="_blank">Discuss-gnuradio@gnu.org</a> \
<a class="m_-5934897705250131514m_-6101732270161495915m_-7656573616649228727m_2727735801715497760moz-txt-link-freetext" \
href="https://lists.gnu.org/mailman/listinfo/discuss-gnuradio" \
target="_blank">https://lists.gnu.org/mailman/<wbr>listinfo/discuss-gnuradio</a> \
</pre> </blockquote>
</div>
______________________________<wbr>_________________
Discuss-gnuradio mailing list
<a href="mailto:Discuss-gnuradio@gnu.org" \
target="_blank">Discuss-gnuradio@gnu.org</a>
<a href="https://lists.gnu.org/mailman/listinfo/discuss-gnuradio" rel="noreferrer" \
target="_blank">https://lists.gnu.org/mailman/<wbr>listinfo/discuss-gnuradio</a>
</blockquote></div>
</div>
</blockquote>
</div></div></div></blockquote></div>
</div>
</blockquote>
</div></div></div></blockquote></div><br></div></div></div></div></div>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic