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

Paraview 4 with Redhat...is it possible?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2014, 17:40
Default
  #21
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
Hi Dimitris,

I strongly suggest that you undo the installation of those other packages, by running (as root):
Code:
yum remove --nogpgcheck qtwebkit qtwebkit-devel
yum remove --nogpgcheck CGAL CGAL-devel
The build problem of CGAL was that the graphic card drivers are not installed, hence there is no "libGL" library available.
Nonetheless, there is a trick to not build the "ImageIO" library in CGAL, which is not needed and is the one to be blamed for the need for "libGL". Follow these steps:
  1. As normal user, go into the "ThirdParty-2.3.0" folder and edit the file "makeCGAL" with a text editor. You can get the path for that folder by running:
    Code:
    echo $WM_THIRD_PARTY_DIR
  2. Find these lines:
    Code:
    cmake \
            -DCMAKE_INSTALL_PREFIX=$CGAL_ARCH_PATH \
            -DCMAKE_BUILD_TYPE=Release \
            $configBoost $configGmpMpfr \
            $CGAL_SOURCE_DIR \
  3. Change to this:
    Code:
    cmake \
            -DCMAKE_INSTALL_PREFIX=$CGAL_ARCH_PATH \
            -DCMAKE_BUILD_TYPE=Release \
            -DWITH_CGAL_ImageIO=OFF \
            $configBoost $configGmpMpfr \
            $CGAL_SOURCE_DIR \
    Basically it's just a matter of adding the line that has the "WITH_CGAL_ImageIO" text.
  4. Go into the command line (with the OpenFOAM 2.3.0 shell environment turned on) and run:
    Code:
    cd $WM_THIRD_PARTY_DIR
  5. Now go back in the instructions to the step #13 and run those and continue from there. It should all go well, at least until you get to step #16.
The problem with step #16 and beyond, is that you need to install the graphics card drivers, otherwise you won't be able to build Qt and ParaView.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 5, 2014, 18:14
Default
  #22
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 21
Rep Power: 17
dfeid is on a distinguished road
Dear Bruno

I 've installed the graphics card drivers to my pc and I have to say it was very laborious process. Given that I started from scratch without any serious background I think or thought that the graphics card drivers installation was closed
I attached a screen dump of Nvidia settings
Could you please tell what do I have to do with this?

Thank once again
Attached Files
File Type: gz snapshot3.jpeg.tar.gz (65.0 KB, 8 views)
dfeid is offline   Reply With Quote

Old   March 5, 2014, 18:42
Default
  #23
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 21
Rep Power: 17
dfeid is on a distinguished road
Hi Bruno

Problem with step 13. See attached file

Best regards
Dimitris
Attached Files
File Type: gz makeCGAL2.log.gz (3.6 KB, 4 views)
dfeid is offline   Reply With Quote

Old   March 6, 2014, 16:13
Default
  #24
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
Hi Dimitris,

Sorry, I didn't look carefully enough to the first log file you had provided. Please edit the file "makeCGAL" again and change the same block of code to this:
Code:
cmake \
        -DCMAKE_INSTALL_PREFIX=$CGAL_ARCH_PATH \
        -DCMAKE_BUILD_TYPE=Release \
        -DWITH_CGAL_ImageIO=OFF \
        -DWITH_CGAL_Qt3=OFF \
        -DWITH_CGAL_Qt4=OFF \
        $configBoost $configGmpMpfr \
        $CGAL_SOURCE_DIR \
As for the problem with "libGL.so": from my experience, this file is automatically installed by the package that handles the installation of the graphics card driver. If you had considerable trouble getting the driver to work in your installation, then my guess is that the installation procedure did not include symbolic links to this sort of library.

Either way, with some luck, ParaView can be built without problems, if its build process is able to find automatically the necessary OpenGL libraries.
If not, then it would be helpful to know which instructions you've followed to install the NVidia drivers (which seem to be working just fine), so that I can try and figure out where the necessary library files are and to write down the commands necessary for creating symbolic links to them.

Best regards,
Bruno
dfeid likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 7, 2014, 13:17
Default
  #25
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 21
Rep Power: 17
dfeid is on a distinguished road
Hi Bruno

I followed the guidelines you gave and I dislodged from step 13 till 16 but I stack to step 17 with the ParaView compilation.
Attached you will find the log file with the compilation errors
I stand especially to the last error which has to do with this message:
Code:
make[2]: *** No rule to make target `/usr/lib64/libGL.so', needed by `lib/libvtkftgl-pv4.1.so.1'.  Stop.                                      
make[1]: *** [VTK/ThirdParty/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2
So giving
Code:
ls -l /usr/lib64/libGL.so
I got the following
Code:
lrwxrwxrwx. 1 root root 14 Jan 21 19:51 /usr/lib64/libGL.so -> libGL.so.1.2.0
And the libGL.so.1.2.0 was in blinking background
Also looking more on this I got
Code:
[Dimitris@CFD13 ThirdParty-2.3.0]$ ls -l /usr/lib64/libGL*
lrwxrwxrwx. 1 root root      16 Feb 19 15:54 /usr/lib64/libGLEW.so.1.5 -> libGLEW.so.1.5.5
-rwxr-xr-x. 1 root root  382160 Oct  5  2010 /usr/lib64/libGLEW.so.1.5.5                  
-rw-r--r--. 1 root root     656 Jan 21 19:42 /usr/lib64/libGL.la                          
lrwxrwxrwx. 1 root root      14 Jan 21 19:51 /usr/lib64/libGL.so -> libGL.so.1.2.0        
lrwxrwxrwx. 1 root root      15 Jan 21 19:42 /usr/lib64/libGL.so.1 -> libGL.so.331.38     
-rwxr-xr-x. 1 root root 1165176 Jan 21 19:42 /usr/lib64/libGL.so.331.38
lrwxrwxrwx. 1 root root      15 Jan 21 19:51 /usr/lib64/libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx. 1 root root      15 Jan 21 18:52 /usr/lib64/libGLU.so.1 -> libGLU.so.1.3.1
-rwxr-xr-x. 1 root root  525792 Dec 13 12:42 /usr/lib64/libGLU.so.1.3.1
And searching for the location of libGL.so.1.2.0 I got
Code:
[Dimitris@CFD13 ThirdParty-2.3.0]$ sudo find / -name libGL.so.1.2.0
/usr/lib/libGL.so.1.2.0
and for libGL.so

Code:
[Dimitris@CFD13 ThirdParty-2.3.0]$ sudo find / -name libGL.so
/home/Dimitris/Gambit2.4.6/Fluent.Inc/gambit2.4.6/lnamd64/so_post/libGL.so
/usr/lib/libGL.so
/usr/lib64/libGL.so
If I understand well the link points to an non-existing file. What's your view on this?
Could it be overcame ?

Looking for your answer.
Best Regards

Dimitris
Attached Files
File Type: gz paraview.log.gz (22.6 KB, 4 views)
wyldckat likes this.
dfeid is offline   Reply With Quote

Old   March 7, 2014, 15:36
Thumbs up
  #26
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
Hi Dimitris,

Nice! Many thanks for the thorough searching and reporting you've done, because this makes it a lot easier to provide the solution!

As root, run:
Code:
unlink /usr/lib64/libGL.so
ln -s  /usr/lib64/libGL.so.1 /usr/lib64/libGL.so
This the symbolic link "/usr/lib64/libGL.so" will point to a link that does point to a valid library. This way, in case you update the NVidia driver, it will keep a valid library link, because the symbolic link "/usr/lib64/libGL.so.1" seems to stay properly linked to the latest library version.

Side note: The file "/usr/lib/libGL.so" is for 32 bit.

Now you can exit from root and try to build ParaView once again!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 8, 2014, 10:43
Default
  #27
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 21
Rep Power: 17
dfeid is on a distinguished road
Hi Bruno

All are working fine!!
Thanks once again.
Your assistance is very precious in general for the forum.
Keep up the good work!!!

Best regards
Dimitris
wyldckat likes this.
dfeid is offline   Reply With Quote

Reply

Tags
paraview, qmake, rhel6


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
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) chrisb2244 OpenFOAM Installation 2 August 21, 2013 14:24
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Building Paraview, Redhat PaulK OpenFOAM Installation 6 October 12, 2009 14:01
[OpenFOAM] Both paraview and paraFoam crash on Redhat Linux WS v4 64bit sek ParaView 4 August 17, 2006 17:26


All times are GMT -4. The time now is 01:32.