[Gmsh] cmake does not find blas/lapack and other libraries

Juan A. Cordero Varelaq bioinformatica-ibis at us.es
Tue Sep 12 12:14:10 CEST 2017


Hi,

I have experienced some problems during building of gmsh, as shown in 
the attachment:

  * When it says */Looking for pthread_create in pthreads - not found/*,
    is it ok if it says */Looking for pthread_create in pthread -
    found/*. In other words, is /pthread/ equivalent to /pthread*s*/?
  * */A library with BLAS API not found. Please specify library
    location./* Both Blas and Lapack are installed, and their location
    is set in the $LIBRARY_PATH variable. I can't understand why if I
    set *-DCMAKE_PREFIX_PATH:string=$LIBRARY_PATH* it does not find the
    right libs.
  * /*Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)*/. I
    cannot understand this since /usr/lib64/libjpeg.so.62.1.0 exists indeed.

I will really appreciate any hint on solving such issues.

Thanks a lot in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170912/f8dfab0e/attachment.html>
-------------- next part --------------
$ cmake -DCMAKE_PREFIX_PATH:string=$LIBRARY_PATH -DCMAKE_INSTALL_PREFIX=/home/soft/pkgs -DENABLE_3M=ON -DENABLE_GRAPHICS=ON ..
-- The CXX compiler identification is GNU 6.3.0
-- The C compiler identification is GNU 6.3.0
-- Check for working CXX compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/c++
-- Check for working CXX compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gcc

-- Check for working C compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Performing Test STDCXX11
-- Performing Test STDCXX11 - Success
-- Found C++11
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gfortran
-- Check for working Fortran compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gfortran supports Fortran 90
-- Checking whether /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gfortran supports Fortran 90 -- yes
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- A library with BLAS API not found. Please specify library location.
-- Warning: Could not find Blas or Lapack: most meshing algorithms will not be functional
-- Found Mesh
-- Found Solver
-- Found Post
-- Found Plugins
-- Found Parser
-- Found Fltk
-- Using fltk-config script for Fltk 1.3
-- Found NativeFileChooser
-- Found ONELAB
-- Found ONELABMetamodel
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
-- Found Zlib
-- Found PNG: /usr/lib64/libpng.so (found version "1.5.13") 
-- Found Png
-- Found Mpeg
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so  
-- Found OpenGL
-- System ANN not found: using contrib/ANN instead
-- Found Ann
-- Found Bfgs
-- Found Cairo
-- Found DIntegration
-- Found OptHom
-- Found Kbipack
-- Found GMP
-- Found MathEx
-- Found Metis
-- Note: By including Metis you have to comply with Metis' special licensing requirements stated in contrib/Metis/README.txt.
-- Found Chaco
-- Found TetGen/BR
-- Found Voro3D
-- Found Blossom
-- Found Netgen
-- Found Bamg
-- System MMG3D not found: using contrib/mmg3d instead
-- Found Mmg3d
-- Found Tetgen1.5
-- Note: By including Tetgen you have to comply with Tetgen's special licensing requirements stated in contrib/Tetgen1.5/LICENSE.
-- System GMM not found: using contrib/gmm instead
-- Found Gmm
-- Found OpenCASCADE version 6.8.0 in /usr/include/oce
CMake Warning at CMakeLists.txt:1125 (message):
  Gmsh requires OpenCASCADE >= 6.9.1


CMake Warning at CMakeLists.txt:1126 (message):
  Use CMAKE_PREFIX_PATH or the CASROOT environment variable to explicitely
  specify the installation path of OpenCASCADE


-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of intptr_t
-- Check size of intptr_t - done
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Found Dlopen
-- Looking for linux/joystick.h
-- Looking for linux/joystick.h - found
-- Found LinuxJoystick
-- Performing Test WALL
-- Performing Test WALL - Success
-- Performing Test WCAST
-- Performing Test WCAST - Failed
-- Performing Test WDEPREC
-- Performing Test WDEPREC - Success
-- Performing Test WIND
-- Performing Test WIND - Success
-- Performing Test NOWARN
-- Performing Test NOWARN - Success
-- Performing Test NOOPT
-- Performing Test NOOPT - Success
-- 
-- Gmsh 3.0.4 has been configured for Linux
-- 
--  * Build options: Ann Bamg Bfgs Blossom C++11 Cairo Chaco DIntegration Dlopen Fltk GMP Gmm Kbipack LinuxJoystick MathEx Mesh Metis Mmg3d Mpeg NativeFileChooser Netgen ONELAB ONELABMetamodel OpenGL OptHom Parser Plugins Png Post Solver TetGen/BR Tetgen1.5 Voro3D Zlib
--  * Build type: RelWithDebInfo
--  * C compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/gcc
--  * C++ compiler: /usr/local/easybuild/.local/easybuild/software/GCCcore/6.3.0/bin/c++
--  * Install prefix: /home/soft/pkgs
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /root/src/gmsh-3.0.4-source/build


More information about the gmsh mailing list