compile cistem in unbuntu 20.04

3 posts / 0 new
Last post
hzhan3
compile cistem in unbuntu 20.04

Dear all,

I am compiling source code and I did not use MKL, however, when I am doing 'make', it has about mkl.h error.

I did ../configure, and no errors so far.

 

-------

Making all in src                                                                                                                            make[1]: Entering directory '/opt/work/git/cisTEM/build/src'                                                                                 g++ -DPACKAGE_NAME=\"cisTEM\" -DPACKAGE_TARNAME=\"cistem\" -DPACKAGE_VERSION=\"2.0.0-alpha\" -DPACKAGE_STRING=\"cisTEM\ 2.0.0-alpha\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"cistem\" -DVERSION=\"2.0.0-alpha\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -Dwx_is_available=1 -DCISTEM_CURRENT_BRANCH=\"master\" -DCISTEM_VERSION_TEXT=\"2.0.0-alpha-39-d29320d-dirty\" -DCISTEM_TIME_YYMMDDHHMMSS=\"211220160650\" -DCISTEM_TIME_READABLE=\"2021-12-20\ 16:06:50\ -0500\" -I. -I../../src  -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DwxUSE_GUI=0 -DNDEBUG -funroll-loops -O3 -pipe -Wall -fexpensive-optimizations -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DMKL -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -DwxUSE_GUI=0 -DNDEBUG -funroll-loops -O3 -pipe -Wall -fexpensive-optimizations -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c++11 -DMKL -MT programs/unblur/unblur-unblur.o -MD -MP -MF programs/unblur/.deps/unblur-unblur.Tpo -c -o programs/unblur/unblur-unblur.o `test -f 'programs/unblur/unblur.cpp' || echo '../../src/'`programs/unblur/unblur.cppIn file included from ../../src/programs/unblur/unblur.cpp:1:                                                                                ../../src/programs/unblur/../../core/core_headers.h:218:10: fatal error: mkl.h: No such file or directory                                      218 | #include <mkl.h>                                                                                                                           |          ^~~~~~~                                                                                                                     compilation terminated.                                                                                                                      make[1]: *** [Makefile:7113: programs/unblur/unblur-unblur.o] Error 1                                                                        make[1]: Leaving directory '/opt/work/git/cisTEM/build/src'                                                                                  make: *** [Makefile:392: all-recursive] Error 1

Many thanks!

Hong

 

 

himesb
disable mkl

Hi Hong,

 

In your output you have

 

"std=c++11 -DMKL -MT programs/unblur"

 

This indicates the build system expects MKL. Run configure --help to see the option to disable MKL.

Better yet, you should be able to link the mkl libraru even without the intel compiler.

 

hzhan3
Thanks Ben!!! I figure out ..

Thanks Ben!!! I figure out ... and I use the --disable-mkl to disable and I have cisTEM 2.0

Log in or register to post comments