kit-cel / simulink-hackrf

Simulink blockset and MATLAB functions to interface with HackRF devices in real-time
GNU General Public License v3.0
44 stars 22 forks source link

errors2 #2

Open i-solodkov opened 7 years ago

i-solodkov commented 7 years ago

sten@sten:~/simulink-hackrf/build$ sudo cmake .. -- The C compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Looking for include file pthread.h -- Looking for include file 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
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message): Could NOT find LIBHACKRF (missing: LIBHACKRF_LIBRARIES LIBHACKRF_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindLIBHACKRF.cmake:53 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/sten/simulink-hackrf/build/CMakeFiles/CMakeOutput.log". See also "/home/sten/simulink-hackrf/build/CMakeFiles/CMakeError.log". sten@sten:~/simulink-hackrf/build$

ivanpadavan commented 6 years ago

To make it work (in ubuntu 16.04) I needed to add matlab/bin directory to $PATH and install libhackrf-dev package.