bistromath / gr-air-modes

Gnuradio Mode-S/ADS-B radio
This project implements a Mode S receiver for the Gnuradio software-defined radio project. It is designed to receive Mode S transmissions from aircraft and decode them to a human-readable format, including ADS-B information messages such as position and a
GNU General Public License v3.0
438 stars 126 forks source link

PyQt4 not found, not installing GUI application #110

Closed BismaAmjad closed 4 years ago

BismaAmjad commented 4 years ago

I got this error during cmake:

CMake Error at CMakeLists.txt:91 (find_package): Could not find a configuration file for package "Gnuradio" that is compatible with requested version "3.8".

The following configuration files were considered but not accepted: /usr/lib/x86_64-linux-gnu/cmake/gnuradio/GnuradioConfig.cmake, version: 3.9.0.0-git

So I changed the version in CmakeLists.txt to 3.9.0.0, and ran cmake again. The above error was gone however a new error appeared:

-- Build type not specified: defaulting to release. -- Checking for module 'gmp' -- No package 'gmp' found -- Found GMP: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Checking for module 'mpir >= 3.0' -- No package 'mpir' found -- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR) -- Found MPLIB: /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Boost version: 1.65.1 -- Found the following Boost libraries: -- date_time -- program_options -- filesystem -- system -- regex -- thread -- unit_test_framework -- chrono -- atomic -- Found VOLK: Volk::volk
-- User set python executable /usr/bin/python3 -- Found PythonInterp: /usr/bin/python3 (found version "3.6.9") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable exact version "3.6.9") -- Found Git: /usr/bin/git
-- Extracting version information from git describe... -- Using install prefix: /usr/local -- Building for version: 9e2515a5 / 1.0.0git -- -- Checking for module SWIG -- Found SWIG version 3.0.12. -- Found SWIG: /usr/bin/swig3.0
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found version "3.6.9") -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen missing components: dot CMake Warning at res/CMakeLists.txt:28 (find_package): By not providing "FindPyQt4.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "PyQt4", but CMake did not find one.

Could not find a package configuration file provided by "PyQt4" with any of the following names:

PyQt4Config.cmake
pyqt4-config.cmake

Add the installation prefix of "PyQt4" to CMAKE_PREFIX_PATH or set "PyQt4_DIR" to a directory containing one of the above files. If "PyQt4" provides a separate development package or SDK, be sure it has been installed.

-- PyQt4 not found, not installing GUI application -- Configuring done -- Generating done -- Build files have been written to: /home/itu/gr-air-modes/build

I'm using Ubuntu 18.04 and the same error appears for GNU Radio 3.7.13.4.

bistromath commented 4 years ago

Looks like it's working OK. The GUI application isn't supported right now anyway -- does it build if you type "make"?

BismaAmjad commented 4 years ago

The above issue was produced in a remote system that I've been using and for some unknown reason I'm unable to replicate the exact cmake error in that system as the cmake fails to configure this time. However, this is the output error I'm getting on my personal system (GNU version = 3.7.14.0, UH= 3.14.0), and it shows incomplete configuration error for cmake:

dat@dat-OptiPlex-9020:~/gr-air-modes/build$ cmake ../ -- Build type not specified: defaulting to release. Checking for GNU Radio Module: RUNTIME

-- PyQt4 not found, not installing GUI application -- Configuring incomplete, errors occurred! See also "/home/dat/gr-air-modes/build/CMakeFiles/CMakeOutput.log". dat@dat-OptiPlex-9020:~/gr-air-modes/build$ make make: *** No targets specified and no makefile found. Stop.

Since you mentioned that GUI isn't supported anyway so I ignored the PyQt4 error, and from here I used third answer to resolve this error in the cmake 'install TARGETS given no LIBRARY DESTINATION for shared library target' . The error was gone when I ran cmake again, but another error pops up :

dat@dat-OptiPlex-9020:~/gr-air-modes/build$ cmake ../ -- Build type not specified: defaulting to release. Checking for GNU Radio Module: RUNTIME

-- PyQt4 not found, not installing GUI application -- Configuring done CMake Error at /usr/local/lib/cmake/gnuradio/UseSWIG.cmake:203 (add_custom_command): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /usr/local/lib/cmake/gnuradio/UseSWIG.cmake:257 (SWIG_ADD_SOURCE_TO_MODULE) /usr/local/lib/cmake/gnuradio/GrSwig.cmake:189 (SWIG_ADD_MODULE) swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at lib/CMakeLists.txt:25 (add_library): Target "air_modes" links to target "gnuradio::gnuradio-runtime" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

CMake Error at /usr/local/lib/cmake/gnuradio/UseSWIG.cmake:263 (add_library): Target "_air_modes_swig" links to target "gnuradio::gnuradio-runtime" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? Call Stack (most recent call first): /usr/local/lib/cmake/gnuradio/GrSwig.cmake:189 (SWIG_ADD_MODULE) swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrMiscUtils.cmake:209 (add_dependencies): The dependency target "gnuradio::runtime_swig" of target "_air_modes_swig_swig_tag" does not exist. Call Stack (most recent call first): /usr/local/lib/cmake/gnuradio/GrSwig.cmake:169 (GR_GEN_TARGET_DEPS) swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/UseSWIG.cmake:203 (add_custom_command): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): /usr/local/lib/cmake/gnuradio/UseSWIG.cmake:257 (SWIG_ADD_SOURCE_TO_MODULE) /usr/local/lib/cmake/gnuradio/GrSwig.cmake:189 (SWIG_ADD_MODULE) swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

CMake Error at /usr/local/lib/cmake/gnuradio/GrSwig.cmake:178 (include_directories): Error evaluating generator expression:

$<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>

Target "gnuradio::runtime_swig" not found. Call Stack (most recent call first): swig/CMakeLists.txt:39 (GR_SWIG_MAKE)

-- Generating done -- Build files have been written to: /home/dat/gr-air-modes/build dat@dat-OptiPlex-9020:~/gr-air-modes/build$ make [ 4%] Linking CXX shared library libair_modes-....so /usr/bin/ld: cannot find -lgnuradio::gnuradio-runtime collect2: error: ld returned 1 exit status lib/CMakeFiles/air_modes.dir/build.make:146: recipe for target 'lib/libair_modes-....so.1.' failed make[2]: [lib/libair_modes-....so.1.] Error 1 CMakeFiles/Makefile2:135: recipe for target 'lib/CMakeFiles/air_modes.dir/all' failed make[1]: [lib/CMakeFiles/air_modes.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2

Does this seem like the compatibility issue with GNU Radio version?, Does this ADSB module works only for GNU 3.8?

bistromath commented 4 years ago

Currently only 3.8 is supported. As 3.9 matures I'll add support for it in a separate branch.

BismaAmjad commented 4 years ago

Thanks, Installing GNU radio 3.8 solved the issue.

bistromath commented 4 years ago

Look to see where it was installed. Run "sudo make install" and check to see what path it used.

On Tue, Jul 21, 2020 at 1:12 AM bimx notifications@github.com wrote:

Thanks, Installing GNU radio 3.8 solved the issue. But the command is not found when I run modes rx , although everything is installed without errors.

dat@dat-OptiPlex-9020:~/gr-air-modes/install/build/bin$ modes_rx -r 10e6 Command 'modes_rx' not found, but can be installed with: sudo apt install gr-air-modes

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bistromath/gr-air-modes/issues/110#issuecomment-661706494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADBTK4INNKRSVEIR4KVLOTR4VEWDANCNFSM4O2GTRYA .

BismaAmjad commented 4 years ago

Yup. Did exactly like that and fixed it. Thanks a lot.

Zaibi9999999 commented 5 months ago

I have been experiencing the same issue regarding the PyQt4 error (ADS-B) for the past four weeks. Although I installed GNU Radio version 3.8.1.0, it gives me the same error. Can you help me to resolve this error?