Closed benb0jangles closed 3 years ago
I'm not familiar with Apple ecosystem but it seems like your GTK package doesn't provide required pkgconfig files or install them in another place. May be you should install some kind of development package which will provide necessary files?
I could only find: brew install gtk+3
But I could not find: libgtk-3-dev package for mac :(
Could it be just that the glrpt cmake file only goes up to: 'gtk+-3.0>=3.22.0' or that it is just sytax - gtk+3 vs gtk+3.0 ??
Thanks for replying
Solved working on MacOS Sierra 10.12.6: Had to set the PKG_CONFIG_PATH.
install gtk3:
brew install gtk+3
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Check with:
pkg-config gtk+-3.0 --exists && echo Found the library
(no output means the .pc file not found)
pkg-config gtk+-3.0 --libs --print-errors
(error message, or long list of flags =success)
Install these dependencies: gtk+ (3.22.0 or higher) glibc glib2 SoapySDR (install proper modules to get support for your hardware) libjpeg-turbo libconfig gcc (4.8 or higher) / clang (3.1 or higher) make cmake (3.12 or higher)
GLRPT 2.6.0 MacOs:
git clone https://github.com/dvdesolve/glrpt.git
cd glrpt
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install
Run in terminal using:
glrpt
-DCMAKE_INSTALL_PREFIX=/usr ..
gmodule
-- Checking for module 'gtk+-3.0>=3.22.0'
-- Found gtk+-3.0, version 3.24.29
-- Checking for module 'SoapySDR'
-- Found SoapySDR, version 0.8.0
-- Checking for module 'libturbojpeg'
-- Found libturbojpeg, version 2.0.6
-- Checking for module 'libconfig'
-- Found libconfig, version 1.7.2
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/glrpt/build
Install SoapySDR + Devices:
sudo port install SoapySDR SoapyAirspy SoapyAudio SoapyHackRF SoapyRemote SoapyRTLSDR SoapySDRPlay SoapyUHD
I'm getting this error compiling on MacOs:
Command: cmake -DCMAKE_INSTALL_PREFIX=/usr ..
error: ... -- Checking for module 'gtk+-3.0>=3.22.0' -- No package 'gtk+-3.0' found CMake Error at /opt/local/share/cmake-3.19/Modules/FindPkgConfig.cmake:553 (message): A required package was not found Call Stack (most recent call first): /opt/local/share/cmake-3.19/Modules/FindPkgConfig.cmake:741 (_pkg_check_modules_internal) src/CMakeLists.txt:6 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
However, when I run: brew install gtk+3
I get: Warning: gtk+3 3.24.29 is already installed and up-to-date. To reinstall 3.24.29, run: brew reinstall gtk+3
Please, what think happening?