Harvard-REACT / WSR-Toolbox-cpp

Core C++ code repo for WSR toolbox with Cython wrapper.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Cannot create ./test_ files using cmake ... #28

Closed alexsloot00 closed 1 year ago

alexsloot00 commented 1 year ago

In directory wsr_build running

`cmake ..`
gives the following warnings:
`-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.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")  
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Configuring done
WARNING: Target "test_wsr" requests linking to directory "/home/nexusr/Downloads/boost_1_68_0/stage/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "test_wsr_two_antenna_rotor" requests linking to directory "/home/nexusr/Downloads/boost_1_68_0/stage/lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "test_csi_data" requests linking to directory "/home/nexusr/Downloads/boost_1_68_0/stage/lib".  Targets may link only to libraries.  CMake is dropping the item.
-- Generating done
-- Build files have been written to: /home/nexusr/WSR_Project/WSR-Toolbox-cpp/wsr_build`
so, ./test_wsr, ./test_csi_data and ./test_wsr_two_antenna_rotor are not created.
alexsloot00 commented 1 year ago

I believe running the 2 lines afterwards, e.g. cpuCores= "cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}' " make -j $cpuCores do solve the problem and the ./test files exist and can be run.

However, visualization does not work in viz_data.sh python3.8 is used, but only python3.7 has been installed. so install python3.8 or change 3.8 to 3.7 in the script should work

ninja-hu commented 1 year ago

Yes, you need to run make after running cmake to build the code. Since the ./test files exist, and you are able to run it, I'll close this bug.

If the issue for visualization persists even after changing the python version, please open a separate bug for it.