Installation problem with libQt5OpenGL.so library.

Asked by A Dinesh

Hi all,

I had sucesfully compiled the source and installed yade on my system. I am using Ubuntu 16.04, with python 2.7, ubuntu distribution. After installation I tried to run the binary from install folder.

```
--------------------------------------
 dinesh@Personal /home/dinesh/myYade/install/bin $
| Personal desktop => ls
yade-2018-10-19.git-aa4802e yade-2018-10-19.git-aa4802e-batch
```

```
--------------------------------------
 dinesh@Personal /home/dinesh/myYade/install/bin $
| Personal desktop => ./yade-2018-10-19.git-aa4802e
Welcome to Yade 2018-10-19.git-aa4802e
Traceback (most recent call last):
  File "./yade-2018-10-19.git-aa4802e", line 129, in <module>
    import yade
  File "/home/dinesh/myYade/install/lib/x86_64-linux-gnu/yade-2018-10-19.git-aa4802e/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5: undefined symbol: _Z12qTriangulateRK11QVectorPathRK10QTransformd
```

I don't know what's wrong with it. Some one please help.

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
A Dinesh
Solved:
Last query:
Last reply:
Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#1

I saw some answers about compiling it without the opengl extension. But can we make it work with it?

Revision history for this message
Robert Caulk (rcaulk) said :
#2

Try running yade as sudo. If it works, you need to modify permissions on your build libraries.

If it doesn't work. Reinstall/update libqt5. Remove your build tree. Re-cmake. Re-make install. Copy cmake output here.

Cheers,

Robert

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#3

Okay. I reinstalled qt5. I need to reinstall yade now, but for now here is the cmakw output

```

--------------------------------------
 dinesh@Personal /home/dinesh/myYade/build $
| Personal desktop => cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is GNU 7.2.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
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Try OpenMP C flag = [-fopenmp=libomp]
-- 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=libomp
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.7")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Version is set to 2018-10-19.git-aa4802e
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- Found GL2PS: /usr/lib/libgl2ps.so
-- Found CGAL: /usr/include, /usr/lib/x86_64-linux-gnu/libCGAL.so
-- Found NumPy: version "1.13.1" /usr/local/lib/python2.7/dist-packages/numpy/core/include
-- Found Loki: /usr/include
-- Looking for pthread.h
-- Looking for 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
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- thread
-- filesystem
-- iostreams
-- regex
-- serialization
-- system
-- date_time
-- chrono
-- atomic
-- Boost_VERSION: 105800
-- Boost_LIB_VERSION: 1_58
-- Boost_INCLUDE_DIRS: /usr/include
-- Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libpthread.so
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /home/dinesh/Documents/Paraview/lib/libz.so (found version "1.2.8")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.12")
-- Found Eigen3, version: 3.2.92
-- Disable vectorization
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- Found VTK
-- Found OpenMP
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found GTS
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- USE QT5
-- Found QGLVIEWER-qt5: /usr/include/QGLViewer
-- Found GUI-Qt5-LIBS
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found GMP: /usr/include/x86_64-linux-gnu
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found CGAL
-- SuiteSparse version 4.4.6 found, CHOLMOD direct solver for CPU activated.
-- Found Cholmod: /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found OpenBlas: /usr/lib/libopenblas.so
-- Found Metis: /usr/include
-- Found Cholmod in /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found OpenBlas in /usr/lib/libopenblas.so
-- Found Metis in /usr/lib/x86_64-linux-gnu/libmetis.so
-- Found GL2PS
LBMFLOW is still experimental, building and running LBM engine are at your own risk!
Yade will be installed to /home/dinesh/myYade/install
-- Suffix is set to -2018-10-19.git-aa4802e
-- LIBRARY_OUTPUT_PATH is set to lib/x86_64-linux-gnu
-- runtimePREFIX is set to /home/dinesh/myYade/install
-- Found gts: /usr/lib/python2.7/dist-packages/gts
-- Use system gts version
-- Found minieigen: /usr/lib/python2.7/dist-packages/minieigen.so
-- Found Tkinter: /usr/lib/python2.7/lib-tk/Tkinter.pyc
-- VTK version >5 and <8 is found
-- ===========================================================
-- Yade configured with following features: Odeint VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW LINSOLV TWOPHASEFLOW GL2PS LBMFLOW
-- Disabled features: CHOLMOD_GPU SPH DEFORM LIQMIGRATION MASK_ARBITRARY PROFILING PotentialParticles PotentialBlocks
-- Optimized build
-- ===========================================================
-- Configuring done
CMake Warning at CMakeLists.txt:577 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target boot because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at CMakeLists.txt:569 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target yade because files in
  some directories may conflict with libraries in implicit directories:

    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at py/CMakeLists.txt:71 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target _customConverters
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at py/CMakeLists.txt:66 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target wrapper because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at py/CMakeLists.txt:47 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target _packPredicates
  because files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at py/CMakeLists.txt:57 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target _packSpheres because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

CMake Warning at py/CMakeLists.txt:35 (ADD_LIBRARY):
  Cannot generate a safe runtime search path for target _utils because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib
    runtime library [libpython2.7.so.1.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/dinesh/Documents/Paraview/lib

  Some of these libraries may not be found correctly.

-- Generating done
-- Build files have been written to: /home/dinesh/myYade/build
```

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#4

I have paraview installed in Documnets folder. Because I had it to update to a latest version. Do you think this creates any problem?

Revision history for this message
Robert Caulk (rcaulk) said :
#5

No sense in reinstalling until you get rid of the errors at the end of cmake :-).

>>Do you think this creates any problem?

Well, I want to say no, but it sure appears to be a problem. I would remove Paraview entirely from the computer and try cmake again.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#6

 > runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/dinesh/Documents/Paraview/lib

I would guess you not only installed paraview in a custom path but you also built/installed third party libs in the same path, then declared this path system-wide somehow (e.g. by tricks in ~/.bashrc). Otherwise cmake would not find the wrong library versions.
I would rename Paraview folder to something else, then recompile. If it works it is your home folder which needs fix, since the problem may occur not only with yade.
Bruno

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#7

Thanks for the answers. I removed paraview from path and did a reinstall. Now I get different error.

```
 --------------------------------------
 dinesh@Personal /home/dinesh/myYade/install $
| Personal desktop => ./bin/yade-2018-10-19.git-aa4802e
Welcome to Yade 2018-10-19.git-aa4802e
Traceback (most recent call last):
  File "./bin/yade-2018-10-19.git-aa4802e", line 129, in <module>
    import yade
  File "/home/dinesh/myYade/install/lib/x86_64-linux-gnu/yade-2018-10-19.git-aa4802e/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /home/dinesh/myYade/install/lib/x86_64-linux-gnu/yade-2018-10-19.git-aa4802e/libyade.so: undefined symbol: _ZNK5boost9re_detail31cpp_regex_traits_implementationIcE9transformB5cxx11EPKcS4_

```

My cmake output is

```
 --------------------------------------
 dinesh@Personal /home/dinesh/myYade/build3 $
| Personal desktop => cmake -DCMAKE_INSTALL_PREFIX=../install ../trunk
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is GNU 7.2.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
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Try OpenMP C flag = [-fopenmp=libomp]
-- 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=libomp
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found version "4.8.7")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Version is set to 2018-10-19.git-aa4802e
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- Found GL2PS: /usr/lib/libgl2ps.so
-- Found CGAL: /usr/include, /usr/lib/x86_64-linux-gnu/libCGAL.so
-- Found NumPy: version "1.13.1" /usr/local/lib/python2.7/dist-packages/numpy/core/include
-- Found Loki: /usr/include
-- Looking for pthread.h
-- Looking for 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
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
-- thread
-- filesystem
-- iostreams
-- regex
-- serialization
-- system
-- date_time
-- chrono
-- atomic
-- Boost_VERSION: 105800
-- Boost_LIB_VERSION: 1_58
-- Boost_INCLUDE_DIRS: /usr/include
-- Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libboost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.so/usr/lib/x86_64-linux-gnu/libboost_chrono.so/usr/lib/x86_64-linux-gnu/libboost_atomic.so/usr/lib/x86_64-linux-gnu/libpthread.so
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.12")
-- Found Eigen3, version: 3.2.92
-- Disable vectorization
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- Found VTK
-- Found OpenMP
-- GTS using gts-config /usr/bin/gts-config
-- Using GTS from /usr
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Found GTS
-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- USE QT5
-- Found QGLVIEWER-qt5: /usr/include/QGLViewer
-- Found GUI-Qt5-LIBS
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found GMP: /usr/include/x86_64-linux-gnu
-- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so /usr/lib/x86_64-linux-gnu/libgmpxx.so
-- Found CGAL
-- SuiteSparse version 4.4.6 found, CHOLMOD direct solver for CPU activated.
-- Found Cholmod: /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found OpenBlas: /usr/lib/libopenblas.so
-- Found Metis: /usr/include
-- Found Cholmod in /usr/lib/x86_64-linux-gnu/libcholmod.so
-- Found OpenBlas in /usr/lib/libopenblas.so
-- Found Metis in /usr/lib/x86_64-linux-gnu/libmetis.so
-- Found GL2PS
LBMFLOW is still experimental, building and running LBM engine are at your own risk!
Yade will be installed to /home/dinesh/myYade/install
-- Suffix is set to -2018-10-19.git-aa4802e
-- LIBRARY_OUTPUT_PATH is set to lib/x86_64-linux-gnu
-- runtimePREFIX is set to /home/dinesh/myYade/install
-- Found gts: /usr/lib/python2.7/dist-packages/gts
-- Use system gts version
-- Found minieigen: /usr/lib/python2.7/dist-packages/minieigen.so
-- Found Tkinter: /usr/lib/python2.7/lib-tk/Tkinter.pyc
-- VTK version >5 and <8 is found
-- ===========================================================
-- Yade configured with following features: Odeint VTK OpenMP GTS GUI-Qt5 CGAL PFVFLOW LINSOLV TWOPHASEFLOW GL2PS LBMFLOW
-- Disabled features: CHOLMOD_GPU SPH DEFORM LIQMIGRATION MASK_ARBITRARY PROFILING PotentialParticles PotentialBlocks
-- Optimized build
-- ===========================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dinesh/myYade/build3

 ```

Revision history for this message
Robert Caulk (rcaulk) said :
#8

Let's take a step back.

Why do you need to compile from sources? Is it not enough to simply install the packaged version with

sudo apt-get install yade

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#9

>> sudo apt-get install yade

I even did that too. But want to integrate my research so I wanted to build it from source. I can do this later.

I have problem with yade too. When I am trying to view the simulation, I did F11, but I don't see any viewer. The terminal will
just become full screen.

And also to run a python script (bouncing ball exmaple), I tried

```
python bouncing_ball.py
```
I get 'O' is not defined error. I understand this. Yade interpreter by default creates a world O.
But I don't know how to run throught a script.

Revision history for this message
Robert Caulk (rcaulk) said :
#10

So you are able to install Yade successfully with sudo apt-get install yade? You can test this by typing "yade --checks" into your terminal.

I am happy to help you with your additional questions. But for organization in Yade's knowledge base, we ask that you separate questions into separate threads. In other words, you need to open a new thread for each of your disparate questions.

Please read through our How To Ask Document [1] if you hope to receive the most effective responses possible.

[1]https://yade-dem.org/wiki/Howtoask

Revision history for this message
A Dinesh (adepu-dinesh-a) said :
#11

Thanks for the responses. I will reopen it when I want to build from source.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#12

> libyade.so: undefined symbol: _ZNK5boost9re_detail31cpp_regex_traits_implementationIcE9transformB5cxx11EPKcS4_

Please make sure you are speaking of a fresh build. Not rebuilt from the same folder after some changes.
To be sure make a new dir 'buildX' and append SUFFIX to yade built (-DSUFFIX="buildX").
Bruno

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#13

Please answer the requests for more information. Namely #10: test this by typing "yade --checks" into your terminal." (with packaged version)