f4exb / cm256cc

Fast GF(256) Cauchy MDS Block Erasure Codec in C++
GNU General Public License v3.0
23 stars 8 forks source link

CMake can not find cm256cc, although it is installed in the root #1

Closed rajibeee closed 6 years ago

rajibeee commented 7 years ago

Please take a look at the code below. Kindly tell me what I am doing wrong. Where do I need to install the cm256cc ?

I installed cm256cc via git clone in the root folder. Also git cloned sdrdaemon in the root. Any help is greatly appreciated.

root@beaglebone:~# ls
Desktop  cm256cc  sdrdaemon
root@beaglebone:~# cd sdrdaemon/
root@beaglebone:~/sdrdaemon# cd build/
root@beaglebone:~/sdrdaemon/build# cmake ..
-- Architecture: armv7l
-- Use g++ NEON SIMD instructions
-- Boost version: 1.55.0
-- checking for module 'libcm256cc'
--   package 'libcm256cc' not found
-- CM256cc not found
-- Could NOT find CM256CC (missing:  CM256CC_LIBRARIES CM256CC_INCLUDE_DIR)
-- checking for module 'libairspy'
--   package 'libairspy' not found
-- libairspy not found
-- checking for module 'libbladerf'
--   package 'libbladerf' not found
-- libbladerf not found
-- checking for module 'libhackrf'
--   package 'libhackrf' not found
-- libhackrf not found
-- Found librtlsdr: /usr/include, /usr/lib/arm-linux-gnueabihf/librtlsdr.so
-- Found libusb: /usr/include/libusb-1.0, /usr/lib/arm-linux-gnueabihf/libusb-1.0.so
-- Found libnanomsg: /usr/include, /usr/lib/arm-linux-gnueabihf/libnanomsg.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CM256CC_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /root/sdrdaemon
   used as include directory in directory /root/sdrdaemon
   used as include directory in directory /root/sdrdaemon
   used as include directory in directory /root/sdrdaemon
   used as include directory in directory /root/sdrdaemon

-- Configuring incomplete, errors occurred!
See also "/root/sdrdaemon/build/CMakeFiles/CMakeOutput.log".
See also "/root/sdrdaemon/build/CMakeFiles/CMakeError.log".

When this did not work, I even git cloned and installed cm256cc in sdrdaemon/build. That is also not helping out.

Atleast let me know where the Library files of cm256cc are , so that I can copy it to where other library files are located.

I also did the following

If you install the library in a custom location say opt/install/cm256cc use the following command line for cmake:

cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/opt/install/cm256cc .. Result:

Library will be installed as /opt/install/cm256cc/lib/libcm256cc.so Include files will be installed in /opt/install/cm256cc/include/cm256cc Binary test programs will be installed in /opt/install/cm256cc/bin

But I can not see anything at /opt

root@beaglebone:~# cd /opt
root@beaglebone:/opt# ls
cloud9  desktop-background.jpg  scripts  source
f4exb commented 7 years ago

Hi,

you should install cm256cc as a separate project. I suggested to use /opt/install/cm256cc as the installation directory of cm256cc but you can place it anywhere you want. In any case do not forget to do make install (or sudo make install depending on where you install it). Maybe that's the reason why you see nothing in /opt

Then you have to specify CM256CC_LIBRARIES and CM256CC_INCLUDE_DIR to cmake as specified in the readme. I see you simply type cmake .. for sure this will not work.

Building with cmake takes a little bit of practice.