Skip to content

Instantly share code, notes, and snippets.

@smarek
Created December 14, 2017 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarek/8e8d70a91038e367217ca7f30c6784d2 to your computer and use it in GitHub Desktop.
Save smarek/8e8d70a91038e367217ca7f30c6784d2 to your computer and use it in GitHub Desktop.
diff for Ubuntu 16.04 patch for https://github.com/rxseger/LTE-Cell-Scanner.git
diff --git a/cmake/Modules/FindBLADERF.cmake b/cmake/Modules/FindBLADERF.cmake
index 7490bb7..b66c499 100644
--- a/cmake/Modules/FindBLADERF.cmake
+++ b/cmake/Modules/FindBLADERF.cmake
@@ -11,6 +11,7 @@
FIND_PATH(BLADERF_INCLUDE_DIR libbladeRF.h
${LIBBLADERF_DIR}/include
+ /usr/include
/usr/local/include/libbladeRF
)
@@ -18,6 +19,7 @@ FIND_LIBRARY(BLADERF_LIBRARY
NAMES bladeRF
PATHS ${LIBBLADERF_DIR}/libs
"${LIBBLADERF_DIR}\\win32\\lib"
+ /usr/lib/x86_64-linux-gnu/
/usr/pkgs64/lib
/usr/lib64
/usr/lib
diff --git a/cmake/Modules/FindITPP.cmake b/cmake/Modules/FindITPP.cmake
index a26d1b5..3263643 100644
--- a/cmake/Modules/FindITPP.cmake
+++ b/cmake/Modules/FindITPP.cmake
@@ -20,6 +20,7 @@ FIND_LIBRARY(ITPP_LIBRARY_NORMAL
NAMES itpp
PATHS ${ITPP_DIR}/libs
"${ITPP_DIR}\\win32\\lib"
+ /usr/lib/x86_64-linux-gnu/
/usr/pkgs64/lib
/usr/lib64
/usr/lib
@smarek
Copy link
Author

smarek commented Dec 14, 2017

Process

git clone --recursive https://github.com/rxseger/LTE-Cell-Scanner.git
cd LTE-Cell-Scanner
# Put the patch above into said file
patch -p1 < LTE-Cell-Scanner-Ubuntu-16.04.patch
mkdir -p build
cd build
cmake ../ -DUSE_BLADERF=1
make -j
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment