CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 5.0: makeParaView error: Could NOT find OpenGL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2017, 19:06
Default OpenFOAM 5.0: makeParaView error: Could NOT find OpenGL
  #1
New Member
 
Noah Yao
Join Date: Feb 2017
Posts: 13
Rep Power: 9
yaoyn is on a distinguished road
The command executed was following

Code:
./makeParaView -qmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/qt-4.8.6/bin/qmake -mpi -python -cmake $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/cmake-3.9.1/bin/cmake VTK_RENDERING_BACKEND=OpenGL
And the error I got from CMakeError.log was

PHP Code:
Run Build Command:"/usr/bin/gmake" "cmTC_b1aa1/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_b1aa1.dir/build.make CMakeFiles/cmTC_b1aa1.dir/build
gmake
[1]: Entering directory `/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b1aa1.dir/CheckFunctionExists.c.o
/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64/gcc-4.8.5/bin/gcc   -w -w -Wall -Winline -W -Wformat-security -Wpointer-arith -Wdisabled-optimization -Wno-unknown-pragmas -Wdeclaration-after-statement -fstrict-aliasing -DCHECK_FUNCTION_EXISTS=jbg_newlen   -o CMakeFiles/cmTC_b1aa1.dir/CheckFunctionExists.c.o   -c /home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc/cmake-3.9.1/share/cmake-3.9/Modules/CheckFunctionExists.c
Linking C executable cmTC_b1aa1
/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc/cmake-3.9.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b1aa1.dir/link.txt --verbose=1
/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64/gcc-4.8.5/bin/gcc    -w -w -Wall -Winline -W -Wformat-security -Wpointer-arith -Wdisabled-optimization -Wno-unknown-pragmas -Wdeclaration-after-statement -fstrict-aliasing -DCHECK_FUNCTION_EXISTS=jbg_newlen    -rdynamic CMakeFiles/cmTC_b1aa1.dir/CheckFunctionExists.c.o  -o cmTC_b1aa1 
CMakeFiles/cmTC_b1aa1.dir/CheckFunctionExists.c.o: In function 
`main':
CheckFunctionExists.c:(.text+0x10): undefined reference to `jbg_newlen'
collect2errorld returned 1 exit status
gmake
[1]: *** [cmTC_b1aa1Error 1
gmake
[1]: Leaving directory `/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_b1aa1/fast] Error 2 

The error from ./makeParaView log was
PHP Code:
-- Looking for jbg_newlen
-- Looking for jbg_newlen not found
CMake Error at 
/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc/cmake-3.9.1/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  
Could NOT find OpenGL (missingOPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
  /
home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc/cmake-3.9.1/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  /
home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/platforms/linux64Gcc/cmake-3.9.1/share/cmake-3.9/Modules/FindOpenGL.cmake:170 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  
VTK/CMake/vtkOpenGL.cmake:77 (find_package)
  
VTK/Rendering/OpenGL/CMakeLists.txt:169 (include)


-- 
Configuring incompleteerrors occurred!
See also "/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeOutput.log".
See also "/home/groups/ccriddle/software/OpenFOAM/ThirdParty-5.0/build/linux64Gcc/ParaView-5.4.0/CMakeFiles/CMakeError.log"
yaoyn is offline   Reply With Quote

Old   August 25, 2017, 14:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which Linux Distribution and version are you using?
  2. Is the Linux Distribution installed in a real machine or inside a virtual machine?
  3. Have you install the Graphics Card/GPU drivers in that machine? If not, do you know which graphics card/GPU your machine has got?
__________________
wyldckat is offline   Reply With Quote

Old   March 26, 2018, 15:34
Default
  #3
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
I too have the same issue on a physical machine with RHEL 6.5. I do have libGL installed:

CMake Error at ...FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)

$ locate libGL
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2.0
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3.1
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2.0
/usr/lib64/libGLU.so.1
/usr/lib64/libGLU.so.1.3.1
feacluster is offline   Reply With Quote

Old   March 26, 2018, 17:00
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
  1. I believe the CMake code is looking for the files ending in ".so", therefore you will either need to create symbolic links for them, so that "libGL.so" points to "libGL.so.1"... or add the following argument to the line where you wrote makeParaView:
    Code:
    OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so.1  OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so.a
    For example:
    Code:
    ./makeParaView  OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so.1  OPENGL_glu_LIBRARY:FILEPATH=/usr/lib64/libGLU.so.a
  2. In case it still doesn't work, it might complain about the missing "OPENGL_INCLUDE_DIR", in which case you can add this argument:
    Code:
    OPENGL_INCLUDE_DIR:PATH=/usr/include
    But this specific path is assuming that the directory "/usr/include/GL" exists.
__________________
wyldckat is offline   Reply With Quote

Old   March 26, 2018, 17:27
Default
  #5
New Member
 
Faraz
Join Date: Mar 2018
Posts: 25
Rep Power: 8
feacluster is on a distinguished road
Many thanks, that helped me get past the OpenGL errors! I now receive this error though:

X11_Xt_LIB could not be found. Required for VTK X lib.

I checked and I do have libXt.so.6 in /urs/lib64 . So I tried building with:

X11_Xt_LIB:FILEPATH=/usr/lib64/libXt.so.6

But it still gave the same Xt lib error.
feacluster is offline   Reply With Quote

Old   March 26, 2018, 17:32
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
You need the development files for the Xt library. From here: https://openfoamwiki.net/index.php/I...HEL#CentOS_6.9 - you can find the list of packages that are expected to be necessary to build both OpenFOAM and ParaView. The package "libXt-devel" is the related package.
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 13:56.