discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] patch to make FindQwt.cmake work on OpenSuse 12.1


From: Patrik Tast
Subject: Re: [Discuss-gnuradio] patch to make FindQwt.cmake work on OpenSuse 12.1
Date: Mon, 14 May 2012 15:19:34 +0300

Hi,

File in question for reference:
http://gnuradio.org/cgit/gnuradio.git/tree/cmake/Modules/FindQwt.cmake


Could the *find that dependency* be automatized using locate and grep instead of hard-coding where to look in? I'm using latest qwt for other delvel projects also. A quick lookup (using Fedora) could look like this:

$ locate libqwt.so
/usr/local/qwt-6.0.2-svn/lib/libqwt.so
/usr/local/qwt-6.0.2-svn/lib/libqwt.so.6
/usr/local/qwt-6.0.2-svn/lib/libqwt.so.6.0
/usr/local/qwt-6.0.2-svn/lib/libqwt.so.6.0.2

$ locate qwt_plot.h
/usr/local/qwt-6.0.2-svn/include/qwt_plot.h


Patrik

----- Original Message ----- From: "Josh Blum" <address@hidden>
To: <address@hidden>
Sent: Sunday, May 13, 2012 20:56
Subject: Re: [Discuss-gnuradio] patch to make FindQwt.cmake work on OpenSuse 12.1




On 05/13/2012 08:49 AM, Tom Rondeau wrote:
On Sat, May 12, 2012 at 5:07 PM, Kire Pudsje <address@hidden> wrote:
I tried to install gnuradio from git on my machine. The only problem I
encountered is that the qwt library could not be found (ie. gr-qtgui
was disabled). Attached is a patch, to solve this problem. It includes
the /usr/lib64 directory and qwt5 library.

Hi Kire,

I have a bit of heartburn over constantly adding new directories to
look for QWT libraries. It seems like we would just be introducing a
new directory for every platform we want to work on.

The alternative way is to handle it by passing the directories to
cmake via the command line:

cmake -DQWT_INCLUDE_DIRS=/usr/include/qwt5

Since the library is in /usr/lib64, you don't need to tell cmake this,
since it's a standard library path already.



Theres not PC file for qwt it seems. So we dont have the advantage of
knowing the correct library and include paths. So a list is somewhat
necessary. There there are qwt5 and qwt4 specific directories, but maybe
on some systems.

/usr/lib64 may be the install library path for all x64 redhat systems,
but its missing from the list. Has anyone configured gnuradio with qwt
on fedora x64 for example (without specifying manually).

I would recommend replacing the lists there with the paths actually used
by fedora* and ubuntu* systems. The other deb and rpm distros will
probably fall into one of those two categories.

My ubuntu x64 11.10 is using /usr/include/qwt-qt4/
/usr/lib/libqwt-qt4.so, but thats already in there.

File in question for reference:
http://gnuradio.org/cgit/gnuradio.git/tree/cmake/Modules/FindQwt.cmake

Dont think /sw is a common install prefix.

-Josh

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]