Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to fix CMake Error at cmake/Modules/FindITPP.cmake:62 (MESSAGE): Could not find ITPP library #28

Open
crow71 opened this issue May 18, 2018 · 9 comments

Comments

@crow71
Copy link

crow71 commented May 18, 2018

root@kali:# git clone https://github.com/Evrytania/LTE-Cell-Scanner.git
Cloning into 'LTE-Cell-Scanner'...
remote: Counting objects: 475, done.
remote: Total 475 (delta 0), reused 0 (delta 0), pack-reused 475
Receiving objects: 100% (475/475), 33.98 MiB | 2.36 MiB/s, done.
Resolving deltas: 100% (324/324), done.
root@kali:
# cd LTE-Cell-Scanner
root@kali:/LTE-Cell-Scanner# mkdir build
root@kali:
/LTE-Cell-Scanner# cd build
root@kali:~/LTE-Cell-Scanner/build# cmake ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Boost version: 1.62.0
-- Found the following Boost libraries:
-- thread
-- system
-- chrono
-- date_time
-- atomic
CMake Error at cmake/Modules/FindITPP.cmake:62 (MESSAGE):
Could not find ITPP library
Call Stack (most recent call first):
CMakeLists.txt:27 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!
See also "/root/LTE-Cell-Scanner/build/CMakeFiles/CMakeOutput.log".

@HQuickly79
Copy link

Hey, I'm not sure if I should really write this here, but took me ages to figure out how to fix a similar problem with LAPACK missing - even after adding my own FindLAPACK.cmake file from: https://raw.githubusercontent.com/libigl/eigen/master/cmake/FindLAPACK.cmake and adding /lib/usr/x86_64-linux-gnu to the find path (and after having the same problems with ITPP)

My fix was to run:
apt install liblapack-dev

Sorry if that seems obvious, but couldn't find it anywhere!

@zxy110
Copy link

zxy110 commented Jun 21, 2018

It's just because you don't have the Itpp library, you can download it from

https://sourceforge.net/projects/itpp/files/

and install itpp

then it can work

@solsticedhiver
Copy link

You need to patch cmake modules, at least on ubuntu 18.10

diff --git a/cmake/Modules/FindITPP.cmake b/cmake/Modules/FindITPP.cmake
index 4f3b417..7ae96b9 100644
--- a/cmake/Modules/FindITPP.cmake
+++ b/cmake/Modules/FindITPP.cmake
@@ -24,6 +24,7 @@ FIND_LIBRARY(ITPP_LIBRARY_NORMAL
   /usr/lib64
   /usr/lib
   /usr/local/lib
+  /usr/lib/x86_64-linux-gnu
   NO_DEFAULT_PATH
 )
 
diff --git a/cmake/Modules/FindRTLSDR.cmake b/cmake/Modules/FindRTLSDR.cmake
index 169a4ae..0f8c3c2 100644
--- a/cmake/Modules/FindRTLSDR.cmake
+++ b/cmake/Modules/FindRTLSDR.cmake
@@ -24,6 +24,7 @@ FIND_LIBRARY(RTLSDR_LIBRARY
   /usr/lib64
   /usr/lib
   /usr/local/lib
+  /usr/lib/x86_64-linux-gnu
   NO_DEFAULT_PATH
 )
 

@ladams00
Copy link

Or use "/usr/lib/arm-linux-gnueabihf" as a search path for use on Raspbian 👍

@codyc1515
Copy link

Worked for me.

@mmiller7
Copy link

mmiller7 commented Mar 5, 2021

Or use "/usr/lib/arm-linux-gnueabihf" as a search path for use on Raspbian +1

How?

@CecBazinga
Copy link

@solsticedhiver
Sorry i did not understand what should i do from inside the ../LTE-Cell-Scanner/build directory: could you explain your solution to me please?

@solsticedhiver
Copy link

solsticedhiver commented Aug 16, 2022

@solsticedhiver Sorry i did not understand what should i do from inside the ../LTE-Cell-Scanner/build directory: could you explain your solution to me please?

On ubuntu, the ittp and rtlsdr library are installed in the unusual place /usr/lib/x86_64-linux-gnu

So the custom made cmake module provided by LTE-Cell-Scanner to find the previously mentionned library, fails, because it does not look in the right place (aka /usr/lib/x86_64-linux-gnu)

By applying a patch (this is the text displayed in my previous post), you fix that, by adding that directory so that cmake look there too.

If you don't know about patch or how to patch, you can simply edit with an editor the files cmake/Modules/FindITPP.cmake and cmake/Modules/FindRTLSDR.cmake and add the /usr/lib/86_64-linux-gnu directory in the FIND_LIBRARY function)
Just do so that it looks like in the text displayed above (don't mind the +++ and don't add them)

I am wondering why I was never notified of your comment. It is pure luck that I found it, because I came back here by chance.

@cyb3rw0lf
Copy link

if compiling for linux VM in apple silicon you need to add the following:
/usr/lib/aarch64-linux-gnu

in the FIND_LIBRARY function of these files:

  • cmake/Modules/FindFFTW.cmake
  • cmake/Modules/FindRTLSDR.cmake
  • cmake/Modules/FindITPP.cmake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants