RuntimeError: ('Could not find library version of ', 'freeglut')
Yade crashes at startup for a freeglut version problem on Gricad cluster (wasn't the same issue fixed recently?!). It's compiled with no GUI... @cosurgi : is it really needed to raise a runtime error because we can't find a version??? That's a blocker for no good. Cmake output is below.
Welcome to Yade 2019-08-08.git-775ae74
Using python version: 3.7.3 (default, Mar 25 2019, 20:59:09)
[GCC 7.4.0]
TCP python prompt on localhost:9000, auth cookie `asdeyk'
XMLRPC info provider on http://localhost:21000
Traceback (most recent call last):
File "/home/chareyrb/install/bin/yade-daily", line 387, in <module>
userSession()
File "/home/chareyrb/install/bin/yade-daily", line 210, in userSession
checkVersions()
File "/home/chareyrb/install/bin/yade-daily", line 199, in checkVersions
glutVer = yade.libVersions.getVersion('freeglut')
File "/home/chareyrb/install/lib/yade-daily/py/yade/libVersions.py", line 78, in getVersion
raise RuntimeError("Could not find library version of ",libName)
RuntimeError: ('Could not find library version of ', 'freeglut')
[nix-shell:~/build]$ cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk -DENABLE_GUI=OFF -DCMAKE_CXX_FLAGS="-Wno-int-in-bool-context -I/home/chareyrb/.nix-profile/lib/python3.7/site-packages/mpi4py/include" -DENABLE_OAR=ON -DLocalBoost=1.71.0 -DENABLE_POTENTIAL_PARTICLES=OFF -DENABLE_PFVFLOW=O^C -DSUFFIX=-daily
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin/gcc
-- Check for working C compiler: /nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin/gcc -- 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: /nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin/g++
-- Check for working CXX compiler: /nix/store/ghzg4kg0sjif58smj2lfm2bdvjwim85y-gcc-wrapper-7.4.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Version is set to 2019-08-08.git-775ae74
-- GCC Version >= 4.8. Adding -ftrack-macro-expansion=0
-- GCC Version >= 4.8. Adding -save-temps
-- GCC Version >= 4.9. Adding -fstack-protector-strong
-- Found Eigen3: /nix/store/k61yicvvq8i7f13ck4j2m8g14wqh71kw-eigen-3.3.7/include/eigen3 (Required is at least version "2.91.0")
-- Found PythonInterp: /nix/store/fw0zlsx7cbf4939215pdpw6s614c30ls-python3-3.7.3/bin/python (found version "3.7.3")
-- Found NumPy: version "1.16.1" /home/chareyrb/.nix-profile/lib/python3.7/site-packages/numpy/core/include
-- Log filtering: enabled
-- Enabling boost::log library and DEBUG=OFF. Logging will work nicely, backtraces will not have debug info, files will be small.
Loop on the following python versions and check available dependencies:3.8;3.7;3.6;3.5;3.4;3.3;3.2;3.1;3.0;2.7;2.6
-- Found PythonInterp: /nix/store/fw0zlsx7cbf4939215pdpw6s614c30ls-python3-3.7.3/bin/python3.7 (found version "3.7.3")
Python version 3.7.3 found, try to import dependencies...
-- Boost 1.71.0 found.
-- Found Boost components:
python-py37;thread;filesystem;iostreams;regex;serialization;system;date_time;log
-- Found IPython: /home/chareyrb/.nix-profile/lib/python3.7/site-packages/IPython
-- Found matplotlib: /home/chareyrb/.nix-profile/lib/python3.7/site-packages/matplotlib
-- Found pygraphviz: /nix/store/hif38dsxpv77kjpcxna0s7j4q429c9c8-python3.7-pygraphviz-1.3.1/lib/python3.7/site-packages/pygraphviz
-- Found Xlib: /nix/store/ac7124mql345vq3m0jhl5bmmlx9j954a-python3.7-xlib-0.17/lib/python3.7/site-packages/Xlib
-- Found minieigen: /home/chareyrb/.nix-profile/lib/python3.7/site-packages/minieigen.cpython-37m-x86_64-linux-gnu.so
-- Found future: /home/chareyrb/.nix-profile/lib/python3.7/site-packages/future
-- Found past: /home/chareyrb/.nix-profile/lib/python3.7/site-packages/past
-- Found tkinter: /nix/store/fw0zlsx7cbf4939215pdpw6s614c30ls-python3-3.7.3/lib/python3.7/tkinter
-- Boost_VERSION: 1.71.0
-- Boost_LIB_VERSION:
-- Boost_INCLUDE_DIRS: /nix/store/navnscrbmk6byysighl30wmi5gxrf3hd-boost-1.71/include
-- Boost_LIBRARIES: Boost::threadBoost::filesystemBoost::iostreamsBoost::regexBoost::serializationBoost::systemBoost::date_timeBoost::log
Found all python dependencies with version 3.7.3, will compile yade with that.
-- Found Loki: /nix/store/fx22chcs2hgk7j92x580chfc5h8appnj-loki-0.1.7/include
-- Found BZip2: /nix/store/wlivxbc4ny21gzq9a561bwx9b4p08m4m-bzip2-1.0.6.0.1/lib/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /nix/store/iiymx8j7nlar3gc23lfkcscvr61fng8s-zlib-1.2.11/lib/libz.so (found version "1.2.11")
-- Found Eigen3, version: 3.3.7
-- Disable vectorization
-- Boost Odeint can be enabled, only if Boost>=1.53 is used
-- Found VTK
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found OpenMP
-- GTS using gts-config /nix/store/4hj4cncv431gj1kydk5r3hgqxabmb2gx-gts-0.7.6/bin/gts-config
-- Using GTS from /nix/store/4hj4cncv431gj1kydk5r3hgqxabmb2gx-gts-0.7.6
-- Found PkgConfig: /nix/store/zvxm5v15q3gpg49f482qxy06a28ry8hv-pkg-config-0.29.2/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /nix/store/s4w6y814yhkp9lmry1p7qqfkqk2mc2pz-glib-2.58.2-dev/include/glib-2.0;/nix/store/vfbzpdwyiy0ygmc92af0zgj3m0s6shaw-glib-2.58.2/lib/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found GTS
-- GMP libs: /nix/store/7mrq5v4nnqfkv1ka7a0kdw9mzvqs5w3c-gmp-6.1.2/lib/libgmp.so /nix/store/7mrq5v4nnqfkv1ka7a0kdw9mzvqs5w3c-gmp-6.1.2/lib/libgmpxx.so
-- Found GMP: /nix/store/qqfmwn6p3kdfqgkhg1qp7m3an69xjxv3-gmp-6.1.2-dev/include
-- Found CGAL: /nix/store/772ip0wn7jlm3i9j7dqf6bm1w4cpa5v3-cgal-4.13/include, /nix/store/772ip0wn7jlm3i9j7dqf6bm1w4cpa5v3-cgal-4.13/lib/libCGAL.so
-- GMP libs: /nix/store/7mrq5v4nnqfkv1ka7a0kdw9mzvqs5w3c-gmp-6.1.2/lib/libgmp.so /nix/store/7mrq5v4nnqfkv1ka7a0kdw9mzvqs5w3c-gmp-6.1.2/lib/libgmpxx.so
-- Found CGAL
-- SuiteSparse version 5.4.0 found, CHOLMOD direct solver for CPU activated.
-- Found Cholmod: /nix/store/jlldlkwxkx47hfk93qbk4wlgajcqdljc-suitesparse-5.4.0/lib/libcholmod.so
-- Found OpenBlas: /nix/store/rqm81jp42rrsk5v77gy1mk9djv6sxv56-openblas-0.3.5/lib/libopenblas.so
-- BLAS_INCLUDE_DIR=/nix/store/rqm81jp42rrsk5v77gy1mk9djv6sxv56-openblas-0.3.5/include
-- Found Metis: /nix/store/kspns9qkkapfbriqv0pagzqnagfd0r03-metis-5.1.0/include
-- Found Cholmod in /nix/store/jlldlkwxkx47hfk93qbk4wlgajcqdljc-suitesparse-5.4.0/lib/libcholmod.so
-- Found OpenBlas in /nix/store/rqm81jp42rrsk5v77gy1mk9djv6sxv56-openblas-0.3.5/lib/libopenblas.so
-- Found Metis in /nix/store/kspns9qkkapfbriqv0pagzqnagfd0r03-metis-5.1.0/lib/libmetis.a
-- Found MPI_C: /nix/store/iqmam68r4qcq14ixz248vdr46p9ysysj-openmpi-4.0.0/lib/libmpi.so (found version "3.1")
-- Found MPI_CXX: /nix/store/iqmam68r4qcq14ixz248vdr46p9ysysj-openmpi-4.0.0/lib/libmpi.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
-- MPI found
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- GL2PS NOT found
LBMFLOW is still experimental, building and running LBM engine are at your own risk!
-- CLP not found.
-- BLAS_INCLUDE_DIR=/nix/store/rqm81jp42rrsk5v77gy1mk9djv6sxv56-openblas-0.3.5/include
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Found Threads: TRUE
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /nix/store/rqm81jp42rrsk5v77gy1mk9djv6sxv56-openblas-0.3.5/lib/libopenblas.so
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- CLP NOT found
Yade will be installed to /home/chareyrb/install
-- Suffix is set to -daily
-- LIBRARY_OUTPUT_PATH is set to lib
-- runtimePREFIX is set to /home/chareyrb/install
-- Could NOT find gts (missing: PY_gts)
-- Use embedded version of gts. Please, consider installing the corresponding package
-- VTK version >5 and <8 is found
-- ===========================================================
-- Yade configured with following features: BoostLog VTK OpenMP GTS CGAL PFVFLOW PFVFLOW LINSOLV MPI TWOPHASEFLOW FEMLIKE LBMFLOW THERMAL
-- Disabled features: Odeint GUI CHOLMOD_GPU SPH DEFORM LIQMIGRATION GL2PS MASK_ARBITRARY PROFILING PotentialParticles PotentialBlocks
-- Using MAX_LOG_LEVEL=5, ENABLE_LOGGER=ON
-- Optimized build
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chareyrb/build
Edited by bchareyre