soedinglab / CCMpred

Protein Residue-Residue Contacts from Correlated Mutations predicted quickly and accurately.
http://www.ncbi.nlm.nih.gov/pubmed/25064567
GNU Affero General Public License v3.0
106 stars 26 forks source link

ERROR:CMake Error at CMakeLists.txt:124 (add_executable): #23

Open zhichunlizzx opened 5 years ago

zhichunlizzx commented 5 years ago

I had some problems installing ccmpred

-- Configuring done CMake Error at CMakeLists.txt:124 (add_executable): Target "ccmpred" links to target "OpenMP::OpenMP_CXX" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

-- Generating done -- Build files have been written to: /tmp/tmp.MjnOBYYduk Scanning dependencies of target conjugrad

zhichunlizzx commented 5 years ago

full output of 'cmake' is:

-- The C compiler identification is GNU 7.4.0 -- The CXX compiler identification is GNU 7.4.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 -- MsgPack was not found. Make sure MSGPACK_LIBRARY and MSGPACK_INCLUDE_DIR are set. -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Could NOT find LibJansson (missing: JANSSON_LIBRARY JANSSON_INCLUDE_DIR) -- Found LibUUID: /usr/lib/x86_64-linux-gnu/libuuid.so
-- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp
-- Found Curses: /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE
CMake Warning (dev) in lib/libconjugrad/CMakeLists.txt: A logical block opening on the line

/home/zzx/soedinglab/CCMpred/lib/libconjugrad/CMakeLists.txt:42 (if)

closes on the line

/home/zzx/soedinglab/CCMpred/lib/libconjugrad/CMakeLists.txt:51 (endif)

with mis-matching arguments. This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done CMake Error at CMakeLists.txt:124 (add_executable): Target "ccmpred" links to target "OpenMP::OpenMP_CXX" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

croth1 commented 5 years ago

Thanks for reporting. This looks like a typo in libconjugrad:

if(WITH_CUDA)
    find_package(CUDA)
    check_language(CUDA)
    enable_language(CUDA)

    #list(APPEND SOURCES src/conjugrad_cuda.c src/help_functions.cu src/conjugrad_kernels.cu)
    list(APPEND SOURCES src/conjugrad_cuda.c src/conjugrad_kernels.cu)

    include_directories(${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
endif(CUDA_FOUND)

ping @sseemayer

sseemayer commented 5 years ago

Huh, I wonder why this was working for me in the first place. Thanks for spotting the issue @croth1 and please try again after updating the CCMpred and libconjugrad repos @zhichunlizzx .

sseemayer commented 5 years ago

I forgot to mention that the commit of relevance for this is 688e4ba1734bde553e7299ce058b08fae49bb248 together with this commit in libconjugrad

zhichunlizzx commented 5 years ago

@sseemayer Thanks for your reply,but,the problem still exist after to update。