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

Paraview 4 with Redhat...is it possible?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   February 21, 2014, 10:05
Unhappy Paraview 4 with Redhat...is it possible?
  #1
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi to all,
I'm trying to build paraview with the command
Code:
./makeParaView4
but I obtain this warning:
Code:
sed: can't read /openfoam/ThirdParty-2.3.0/ParaView-4.1.0/VTK/Utilities/kwsys/kwsysDateStamp.cmake: No such file or directory
and then:
Code:
---------------------
Version information
    qt        4.8.5
    version   4.1.0
    major     4.1
MISMATCH!
    specified 4.1.0
    found     
---------------------
but, more importat, I get these errors:
Code:
[ 84%] Generating moc_pqProxy.cxx
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/pvserver] Error 1
make[1]: *** [CommandLineExecutables/CMakeFiles/pvserver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target PacMan
[ 84%] [ 84%] Building CXX object CoProcessing/Catalyst/CMakeFiles/vtkPVCatalyst.dir/vtkCPInputDataDescription.cxx.o
Generating moc_pqQVTKWidgetEventTranslator.cxx
[ 84%] Building CXX object Plugins/TestPlugin/CMakeFiles/PacMan.dir/PacMan_Plugin.cxx.o
[ 84%] /openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/pvrenderserver] Error 1
make[1]: *** [CommandLineExecutables/CMakeFiles/pvrenderserver.dir/all] Error 2
Generating moc_pqQVTKWidget.cxx
[ 84%] Building CXX object CoProcessing/Catalyst/CMakeFiles/vtkPVCatalyst.dir/vtkCPPipeline.cxx.o
[ 84%] Generating moc_pqRecentlyUsedResourcesList.cxx
[ 84%] Generating moc_pqRenderViewBase.cxx
[ 84%] Generating moc_pqRenderView.cxx
[ 84%] Generating moc_pqRepresentation.cxx
[ 84%] [ 84%] Building CXX object CoProcessing/Catalyst/CMakeFiles/vtkPVCatalyst.dir/vtkCPProcessor.cxx.o
Generating moc_pqRubberBandHelper.cxx
[ 84%] Generating moc_pqScalarBarRepresentation.cxx
Scanning dependencies of target NonOrthogonalSource
[ 84%] [ 84%] Generating moc_pqScalarBarVisibilityAdaptor.cxx
Building CXX object Plugins/NonOrthogonalSource/CMakeFiles/NonOrthogonalSource.dir/vtkShearedCubeSource.cxx.o
[ 84%] Generating moc_pqScalarOpacityFunction.cxx
[ 84%] /openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/pvdataserver] Error 1
Building CXX object Plugins/NonOrthogonalSource/CMakeFiles/NonOrthogonalSource.dir/vtkShearedCubeSourceClientServer.cxx.o
make[1]: *** [CommandLineExecutables/CMakeFiles/pvdataserver.dir/all] Error 2

I have installed qt version 4.8.5.
How do I fix it?
Is it possible?
Thanks in advance.
ferdinando.forno is offline   Reply With Quote

Old   February 22, 2014, 15:46
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings ferdinando.forno,

I haven't tried this myself, but it should be possible.
Have a look into this wiki page for ideas: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8 - section CentOS 5.8, steps 12 and 13.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 24, 2014, 06:49
Default
  #3
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi Bruno,
if I am right the link you have posted is about ParaView 3.12.0. I have tried to modify instructions for ParaView 4.1 with no luck. Other suggestions?
Best regards,

Ferdinando Forno


EDIT:
Even if I try to build paraview from source, process fails.
I installed QT 4.8.5, indeed:
Code:
$ qmake --version
QMake version 2.01a
Using Qt version 4.8.5 in /usr/local/Trolltech/Qt-4.8.5/lib
I ever have problems with libvtkGUISupportqt:
Code:
/openfoam/Software/ParaView-v4.1.0/ParaView-build/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QMetaType::registerTypedef(char const*, int)'
/openfoam/Software/ParaView-v4.1.0/ParaView-build/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/Software/ParaView-v4.1.0/ParaView-build/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
/openfoam/Software/ParaView-v4.1.0/ParaView-build/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/SciberQuestToolKit-TestBOVIO] Error 1
make[1]: *** [Plugins/SciberQuestToolKit/SciberQuest/Testing/CMakeFiles/SciberQuestToolKit-TestBOVIO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....





Quote:
Originally Posted by wyldckat View Post
Greetings ferdinando.forno,

I haven't tried this myself, but it should be possible.
Have a look into this wiki page for ideas: http://openfoamwiki.net/index.php/In...HEL#CentOS_5.8 - section CentOS 5.8, steps 12 and 13.

Best regards,
Bruno

Last edited by ferdinando.forno; February 25, 2014 at 11:22.
ferdinando.forno is offline   Reply With Quote

Old   March 1, 2014, 19:46
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ferdinando,

I've finished writing and testing the following instructions on CentOS 6.5: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5
So it should work on RHEL 6.5 as well.

I didn't try to use Qt 4.8.5, because at that time I forgot that there was already 4.8.5, so I went with 4.8.4.

Let me know if it works for your or if you're using another version of RHEL.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 3, 2014, 07:21
Default
  #5
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi bruno,
I'm trying to follow your guide even if I have RHEL 6.3.
I have a problem with step nine:

Code:
./getGcc gcc-4.8.1 gmp-5.1.2 mpfr-3.1.2 mpc-1.0.1
downloading gmp-5.1.2.tar.bz2 from ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
--2014-03-03 12:07:02--  ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
           => “gmp-5.1.2.tar.bz2”
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:3128... failed: Connection refused.
Connecting to localhost|127.0.0.1|:3128... connected.
Logging in as anonymous ...
RHEL machine is under proxy (pc at office), could this be a problem?
Thanks in advance.
Best regards,

Ferdinando






Quote:
Originally Posted by wyldckat View Post
Hi Ferdinando,

I've finished writing and testing the following instructions on CentOS 6.5: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5
So it should work on RHEL 6.5 as well.

I didn't try to use Qt 4.8.5, because at that time I forgot that there was already 4.8.5, so I went with 4.8.4.

Let me know if it works for your or if you're using another version of RHEL.

Best regards,
Bruno
ferdinando.forno is offline   Reply With Quote

Old   March 3, 2014, 08:13
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ferdinando,

Then you'll need to download the files manually. When you run the getGcc script, it tells you which files it tries to download, for example:
Code:
downloading gmp-5.1.2.tar.bz2 from ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
Download the file:
Code:
ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
manually and place it inside the folder "download", which should be located inside the "ThirdParty-2.3.0" folder.

If the script locks up trying to download a file, use Ctrl+C, download the file manually and place the file inside the folder mentioned above. Then run the script again and it will ask for another file, since the other one is already done.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 05:42
Default
  #7
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi bruno,
I wish to thank you. I have successfully built those packages.
Now I have another problem with ./makeCmake (point 12 of the installation guide).
I got this error:
Code:
Linking CXX executable ../bin/ccmake
/opt/centos/devtoolset-1.0/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.0/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad'
/opt/centos/devtoolset-1.0/root/usr/libexec/gcc/x86_64-redhat-linux/4.7.0/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
or this one
Code:
/openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad'
/openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [bin/ccmake] Error 1
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
depending on gcc version. How can I resolve?
Thanks in advance.
Best regards,

Ferdinando Forno




Quote:
Originally Posted by wyldckat View Post
Hi Ferdinando,

Then you'll need to download the files manually. When you run the getGcc script, it tells you which files it tries to download, for example:
Code:
downloading gmp-5.1.2.tar.bz2 from ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
Download the file:
Code:
ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
manually and place it inside the folder "download", which should be located inside the "ThirdParty-2.3.0" folder.

If the script locks up trying to download a file, use Ctrl+C, download the file manually and place the file inside the folder mentioned above. Then run the script again and it will ask for another file, since the other one is already done.

Best regards,
Bruno
ferdinando.forno is offline   Reply With Quote

Old   March 4, 2014, 06:21
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ferdinando,

I did a quick search online and the problem seems to be related to the GCC version used.
You can use the default GCC installation that RHEL has got, for building CMake and it should work as intended. To do so, run:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
./makeCmake
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 08:43
Default
  #9
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi Bruno,
thanks for you constant support.
I have tried with your export commands but it gives me that error again (log attached)
Any hints?
Thanks in advance,
Ferdinando Forno


Quote:
Originally Posted by wyldckat View Post
Hi Ferdinando,

I did a quick search online and the problem seems to be related to the GCC version used.
You can use the default GCC installation that RHEL has got, for building CMake and it should work as intended. To do so, run:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
./makeCmake
Best regards,
Bruno
Attached Files
File Type: zip logCmake.txt.zip (12.5 KB, 1 views)
ferdinando.forno is offline   Reply With Quote

Old   March 4, 2014, 09:17
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Sorry, I forgot about ld:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LD=/usr/bin/ld
./makeCmake
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 09:53
Default
  #11
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi Bruno,
even with these command, I get that error
I think It switches to thirdParty compiler during building.
In the attached log you can see:
Code:
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc
-- Check for working C compiler: /openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/g++
-- Check for working CXX compiler: /openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/g++ -- works
Is it normal?
Thanks.
Best regards,

Ferdinando


Quote:
Originally Posted by wyldckat View Post
Sorry, I forgot about ld:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LD=/usr/bin/ld
./makeCmake
Attached Files
File Type: zip logCmake2.txt.zip (12.6 KB, 1 views)
ferdinando.forno is offline   Reply With Quote

Old   March 4, 2014, 10:22
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Sorry again, I should have checked the contents of the script "makeCmake". The script has these two lines:
Code:
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
[ -n "$WM_CC" ] && export CC="$WM_CC"
Either comment out those two lines inside the script, or run:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LD=/usr/bin/ld

export WM_CXX=$CXX
export WM_CC=$CC

./makeCmake
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 11:15
Default
  #13
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi,
I have commented out those line and I have run
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LD=/usr/bin/ld
export WM_CXX=$CXX
export WM_CC=$CC
./makeCmake
but during gmake compiling software returns to use ThirdParty compilers:
Code:
Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestMemCheckCommand.cxx.o
/openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad'
/openfoam/ThirdParty-2.3.0/platforms/linux64/gcc-4.8.1/bin/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [bin/ccmake] Error 1
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
while in the beginning it compiles with /usr/bin/gcc-g++-ld:
Code:
Starting build: cmake-2.8.12.1
---------------------------------------------
CMake 2.8.12.1, Copyright 2000-2012 Kitware, Inc.
C compiler on this system is: /usr/bin/gcc 
C++ compiler on this system is: /usr/bin/g++ 
Makefile processor on this system is: gmake
/usr/bin/g++ is GNU compiler
I have attached compiling log.
Best regards,
Ferdinando Forno




Quote:
Originally Posted by wyldckat View Post
Sorry again, I should have checked the contents of the script "makeCmake". The script has these two lines:
Code:
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
[ -n "$WM_CC" ] && export CC="$WM_CC"
Either comment out those two lines inside the script, or run:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LD=/usr/bin/ld

export WM_CXX=$CXX
export WM_CC=$CC

./makeCmake
Attached Files
File Type: zip logCmake3.txt.zip (12.5 KB, 1 views)
ferdinando.forno is offline   Reply With Quote

Old   March 4, 2014, 11:33
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Sometimes things will only work if we use a crowbar
Try this:
Code:
mv $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1 $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1.bak

./makeCmake

mv $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1.bak $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1
This way it will not pick-up the "ld" that was built into gcc-4.8.1, which was built with makeBinutils.
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 11:55
Default
  #15
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
I have no luck:
Code:
/opt/centos/devtoolset-1.0/root/usr/bin/ld: CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o: undefined reference to symbol 'keypad'
/opt/centos/devtoolset-1.0/root/usr/bin/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [bin/ccmake] Error 1
make[1]: *** [Source/CMakeFiles/ccmake.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I'm thinking about to use TNT instead of a crowbar.
What is wrong with RHEL?



Quote:
Originally Posted by wyldckat View Post
Sometimes things will only work if we use a crowbar
Try this:
Code:
mv $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1 $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1.bak

./makeCmake

mv $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1.bak $WM_THIRD_PARTY_DIR/platforms/linux64/gcc-4.8.1
This way it will not pick-up the "ld" that was built into gcc-4.8.1, which was built with makeBinutils.
Attached Files
File Type: zip logCmake4.txt.zip (12.5 KB, 0 views)
ferdinando.forno is offline   Reply With Quote

Old   March 4, 2014, 12:16
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Ah, I don't know how exactly you're loading "devtoolset-1.0" into the shell environment, but make sure that you start a new shell environment without it.
This is because that toolset also uses a more recent GCC+Binutils versions, which is breaking the build with CMake
wyldckat is offline   Reply With Quote

Old   March 4, 2014, 12:53
Default
  #17
New Member
 
Join Date: Sep 2009
Posts: 12
Rep Power: 7
ferdinando.forno is on a distinguished road
Hi Bruno,
even with compilers installed Paraview doesn't build.
Code:
[openfoam@danbtopenfoam ~]$ OF230
[openfoam@danbtopenfoam ~]$ gcc --version
gcc (OpenFOAM) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[openfoam@danbtopenfoam ~]$ g++ --version
g++ (OpenFOAM) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[openfoam@danbtopenfoam ~]$ ld --version
GNU ld (GNU Binutils) 2.23
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
[openfoam@danbtopenfoam ~]$ cmake --version
cmake version 2.8.12.1
[openfoam@danbtopenfoam ~]$ qmake --version
QMake version 2.01a
Using Qt version 4.8.5 in /usr/local/Trolltech/Qt-4.8.5/lib
It gives me this error:
Code:
[ 84%] /openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
[ 84%] make[2]: *** [bin/pvserver] Error 1
make[1]: *** [CommandLineExecutables/CMakeFiles/pvserver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Generating Documentation HTMLs from xmls
[ 84%] Generating moc_pqServerConfigurationCollection.cxx
Generating moc_pqServer.cxx
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/mak/*** [bin/pvdataser-
v4.1.so.1: undefined reference to `QListData::detach_grow(int*, int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaView-4.1.0/lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QListData::detach(int)'
/openfoam/ThirdParty-2.3.0/build/linux64Gcc48/ParaViewm4.1.0*lib/libvtkGUISupportQt-pv4.1.so.1: undefined reference to `QAbstractProxyModel::setItemData(QModelIndex const&, QMap<int, QVariant> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/pvrenderserver] Error 1
make[1]: *** [CommandLineExecutables/CMakeFiles/pvrenderserver.dir/all] Error 2
I have attached complete log.
Any suggestions?
Thanks in advance.
Best regards,

Ferdinando Forno


Hi bruno,
finally I have compiled cmake removing devtoolset-1.0 from PATH.
Now I'm trying to compile Paraview with
Code:
./makeParaView4 PARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=ON
We'll see if it will work.
Thanks for all.
Best regards,
Ferdinando




Quote:
Originally Posted by wyldckat View Post
Ah, I don't know how exactly you're loading "devtoolset-1.0" into the shell environment, but make sure that you start a new shell environment without it.
This is because that toolset also uses a more recent GCC+Binutils versions, which is breaking the build with CMake
Attached Files
File Type: zip makePV4log.txt.zip (93.9 KB, 0 views)

Last edited by ferdinando.forno; March 6, 2014 at 05:32.
ferdinando.forno is offline   Reply With Quote

Old   March 5, 2014, 12:03
Default qt4 compilation problem
  #18
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 16
Rep Power: 8
dfeid is on a distinguished road
I went through what is described here and webpage "Installation/Linux/OpenFOAM-2.3.0/CentOS SL RHEL", but I firstly faced problem with CGAL compilation.
I believe that I overcame this barrier following the instruction from http://www.openfoam.org/download/source.php but I am not sure since I am not familiar with Linux OS
At the continue, I received error from the qt4.8.4 compilation.

Attached you may find the log file from the qt compilation
I 'd appreciate any help on this matter

Thanks in advance
Attached Files
File Type: gz mkqt.log.gz (25.6 KB, 2 views)
dfeid is offline   Reply With Quote

Old   March 5, 2014, 16:09
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings dfeid,

That's a strange error message you've gotten in the log file.

A few questions:
  1. Which Linux Distribution are you using and in which architecture?
  2. What do these commands give you?
    Code:
    gcc --version
    g++ --version
    ld --version
    cmake --version
  3. As for the problem with CGAL, it would be useful to know what exact error you've gotten and what did you exactly do to repair it.

Keep in mind that the instructions were designed to be followed to the letter. If you miss one single command, or even just one letter, whichever one it is, it's likely to fail building the necessary packages .

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 5, 2014, 17:06
Default
  #20
New Member
 
Join Date: Apr 2009
Location: Greece - Hellas
Posts: 16
Rep Power: 8
dfeid is on a distinguished road
Dear Bruno
First of all thanks for your prompt answer

Going at the row of your questions
1. I am using CentOS 6.5 x86_64 Linux distribution
2. The version of the tools is given below:

Code:
[Dimitris@CFD13 ~]$ of230
[Dimitris@CFD13 ~]$ gcc --version
gcc (OpenFOAM) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[Dimitris@CFD13 ~]$ g++ --version
g++ (OpenFOAM) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[Dimitris@CFD13 ~]$ ld --version
GNU ld (GNU Binutils) 2.23
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
[Dimitris@CFD13 ~]$ cmake --version
cmake version 2.8.12.1
3. Regarding with the problem with the CGAL I attach the log file recorded after the first unsuccessful try (I assume that you will you help somehow)

Because I didn't managed to get a solution with this.
I decided to install the binary files following the step 1 from the Source Pack Installation of OpenFOAM webpage giving the followings:

Code:
yum-config-manager --nogpgcheck --add-repo http://dl.atrpms.net/el6-x86_64/atrpms/stable
yum install --nogpgcheck qtwebkit qtwebkit-devel
yum install --nogpgcheck CGAL CGAL-devel
But, as I wrote before, I am not familiar with Linux OS and I don't know if it works

I hope with my writings that you could be able to have a view of the situation

Thanks again
Best regards
Dimitris
Attached Files
File Type: gz makeCGAL.log.gz (3.7 KB, 2 views)

Last edited by dfeid; March 5, 2014 at 17:11. Reason: Forgot to attach file
dfeid is offline   Reply With Quote

Reply

Tags
paraview, qmake, rhel6

Thread Tools
Display Modes

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 On
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 13: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 13:01
Both paraview and paraFoam crash on Redhat Linux WS v4 64bit sek OpenFOAM Paraview & paraFoam 4 August 17, 2006 16:26


All times are GMT -4. The time now is 16:39.