Skip to content

Building on OSX fails because cmake defaults to AppleClang despite macports mp-clang-9.0 being the active compiler. #33

Description

@playaspec

I believe it's related to this discussion:

https://trac.macports.org/ticket/53201

I also had some issues with cmake detecting FFTW, ITPP, and RTLSDR libraries, but resolved those by adding the macports paths to their module files. I suspect that if the compiler issue were sorted out, these hacks would have been unnecessary, but I can't say for sure until I get past this. I will fork, produce patches, and submit a pull request once I've completely solved and successfully built LTE-Cell-Scanner.

The output of cmake .. from the build directory looks like this:

build playaspec$ cmake ..
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: /opt/local/include (found version "1.71.0") found components:  thread system chrono date_time atomic
-- Found ITPP: /opt/local/lib/libitpp.dylib
ITPP_DIR set to
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /opt/local/lib/libopenblas.dylib
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Found FFTW: /opt/local/lib/libfftw3.dylib
-- Found RTLSDR: /opt/local/lib/librtlsdr.dylib
-- Found Curses: /opt/local/lib/libcurses.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/playaspec/Documents/_Projects/programming/LTE-Cell-Scanner/build

Needless to say, make fails miserably, and I'm just not well versed enough in the intricacies of cmake to

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions