Closed ziyuanjun closed 7 years ago
This is the typical error for having the wrong qwt version. Tough it's strange because cmake tells you that you have qwt>6.0.0, which should be correct.
You could give it a try with libqwt-dev
. Probably only the dev version is shipped with the headers? Could make sense. Unfortunately I don't run Ubuntu and can't check by myself easily.
Strange!
After i used the libqwt-dev
(sudo apt-get install libqwt-dev
), I get error when cmake ../
:
-- Build type not specified: defaulting to release. -- Boost version: 1.58.0 -- Found the following Boost libraries: -- filesystem -- system CMake Error at cmake/Modules/FindQwt.cmake:38 (file): file STRINGS file "/usr/include/qwt-qt4/qwt_global.h" cannot be read. Call Stack (most recent call first): CMakeLists.txt:132 (find_package)
CMake Error at cmake/Modules/FindQwt.cmake:42 (string): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:132 (find_package)
-- QWT Version: No Version -- QWT Version must be >= 5.2 and <= 6.2.0, Found No Version Checking for GNU Radio Module: RUNTIME * INCLUDES=/usr/local/include * LIBS=/usr/local/lib/libgnuradio-runtime.so;/usr/local/lib/libgnuradio-pmt.so GNURADIO_RUNTIME_FOUND = TRUE -- -- Checking for module SWIG -- Found SWIG version 3.0.8. -- Configuring incomplete, errors occurred! See also "/home/ziyuan/gr-radar/build/CMakeFiles/CMakeOutput.log". See also "/home/ziyuan/gr-radar/build/CMakeFiles/CMakeError.log".
For what its worth, I'm having a similar issue of "qwt_matrix_raster_data.h: No such file or directory" with a OS X install. GR in general seems to have a some conflicts with requiring different versions of Qt and associated libs such as QWT. I have to keep thrashing port and brew installs (different OS X package managers) of different Qt version to build anything in GR. Once I get GR to build the Pothos build breaks, GRC builds and I can't build gr-radar, etc.
@ziyuanjun , as far as I can tell "qwt_matrix_raster_data.h" is in version: qwt/6.1.3_4/lib/qwt.framework/Versions/6/Headers/qwt_matrix_raster_data.h and not in QWT5.2 as your libqwt-dev listing suggests. From the CMake.txt file I'm seeing:
find_package(**Qt4 4.2.0 COMPONENTS QtCore QtGu**i)
find_package(**Qwt 6.0.0**)
find_package(UHD)
# Search for GNU Radio and its components and versions. Add any
# components required to the list of GR_REQUIRED_COMPONENTS (in all
# caps such as FILTER or FFT) and change the version to the minimum
# API compatible version required.
set(GR_REQUIRED_COMPONENTS RUNTIME)
find_package(Gnuradio "3.7.2" REQUIRED)
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
if(NOT CPPUNIT_FOUND)
message(FATAL_ERROR "CppUnit required to compile blub")
endif()
# populate the environment with QT variables
include(**GrSetupQt4**)
So I guess that is telling me I need to continue to fight with my qt/qwt versioning to get things pointed to the correct version.
when I run
cmake ../
, everything seems OK:Then I run
make
, errors come out:Is there anything my OS missed? I use Ubuntu16.04.