fastlib / fCWT

The fast Continuous Wavelet Transform (fCWT) is a library for fast calculation of CWT.
Apache License 2.0
283 stars 54 forks source link

libomp ubuntu build issues #50

Closed ShubhamPandey28 closed 1 year ago

ShubhamPandey28 commented 1 year ago

While building fcwt, I encountered OPENMP issues, I installed libomp-dev using apt but is shows fopenmp version 4.5 in every tag present on the ubuntu libomp package list

#9 0.144 Cloning into 'fCWT'...                                                                                               
#9 2.066 Build type is Release                                                                                                
#9 2.101 -- The C compiler identification is GNU 11.4.0                                                                       
#9 2.143 -- The CXX compiler identification is GNU 11.4.0
#9 2.148 -- Detecting C compiler ABI info
#9 2.203 -- Detecting C compiler ABI info - done
#9 2.208 -- Check for working C compiler: /usr/bin/cc - skipped
#9 2.208 -- Detecting C compile features
#9 2.208 -- Detecting C compile features - done
#9 2.210 -- Detecting CXX compiler ABI info
#9 2.272 -- Detecting CXX compiler ABI info - done
#9 2.277 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#9 2.277 -- Detecting CXX compile features
#9 2.278 -- Detecting CXX compile features - done
#9 2.278 Building of shared library is enabled.
#9 2.410 -- Found OpenMP_C: -fopenmp (found version "4.5") 
#9 2.410 CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
#9 2.410   Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
#9 2.410 Call Stack (most recent call first):
#9 2.410   /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
#9 2.410   /usr/share/cmake-3.22/Modules/FindOpenMP.cmake:544 (find_package_handle_standard_args)
#9 2.410   CMakeLists.txt:141 (find_package)
#9 2.410 
#9 2.410 
#9 2.410 -- Configuring incomplete, errors occurred!
#9 2.410 See also "/app/fCWT/build/CMakeFiles/CMakeOutput.log".
#9 2.410 See also "/app/fCWT/build/CMakeFiles/CMakeError.log".
------
executor failed running [/bin/sh -c git clone https://github.com/fastlib/fCWT.git &&     cd fCWT &&     mkdir -p build && cd build &&     cmake .. && make && make install]: exit code: 1

(using ubuntu:latest) How should I go about fixing this?