CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Paraview compilation error: Openfoam-1.6-ext (http://www.cfd-online.com/Forums/openfoam-installation/92293-paraview-compilation-error-openfoam-1-6-ext.html)

turbomachinery September 9, 2011 03:37

Paraview compilation error: Openfoam-1.6-ext
 
1 Attachment(s)
Dear Foamers,
When I tried to compile the third party software, it always happens the same errors. Two of the error messages were quoted as below, and detailed log file was also attached. The OS is Opensuse 11.4, 32bit
****************************************
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkPExtractArraysOverTime.cxx.o
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glGetDoublev'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glLighti'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glClearDepth'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glDeleteLists'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glTexCoord2fv'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glIsTexture'
../../../../bin/libvtkRendering.so.pv3.10: undefined reference to `glMatrixMode'
...................
collect2: ld returned 1 exit status
make[2]: *** [bin/GenericFilteringCxxTests] Error 1
make[1]: *** [VTK/GenericFiltering/Testing/Cxx/CMakeFiles/GenericFilteringCxxTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
...........
Linking CXX shared library ../../bin/libvtkParallel.so
[ 50%] Built target vtkParallel
make: *** [all] Error 2
error: Bad exit status from /home/gaoc/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZtHIuy (%build)


RPM build errors:
Bad exit status from /home/gaoc/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.ZtHIuy (%build)
Installing package: ParaView-3.10.1
Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linuxGccDPOpt.i586
Installing ParaView-3.10.1 using RPM file: /home/gaoc/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i586/ParaView-3.10.1-linuxGccDPOpt.i586.rpm
error: open of /home/gaoc/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i586/ParaView-3.10.1-linuxGccDPOpt.i586.rpm failed: No such file or directory
Done installing package

========================================
Done ThirdParty AllMake: Stage4
========================================


Please give me a hand. I'm really crazy right now.

theIntegral September 13, 2011 08:27

Hi,
I'm having the same problem. Seems like the ParaView compilation is not seeing the OpenGL libraries. I'm running OpenSuse-11.4, 64 bit but I get the same error when I switch to Ubuntu also.

Strange thing is, I can compile ParaView under the main OpenFOAM branch without any problem. They even use the same version of ParaView: 3.10.1.

Mark

wyldckat September 13, 2011 13:27

Greetings to both of you!

My apologies, but if this was an issue with the official OpenFOAM version, I would have already helped. Since this is the -Extend version, with which I'm not very familiar with, I don't know enough about it to help you.

All I can say right now is:
  • Report this as a bug here: http://sourceforge.net/apps/mantisbt...l_bug_page.php - don't forget to define that the "Third Party packages" is the project to report on.
  • If you have been able to use/build the ParaView version that comes with the official OpenFOAM, then you can hack the "$WM_PROJECT_DIR/bin/paraFoam" for the 1.6-ext version and add the path for the version that is currently working. So, let's see... using this version of paraFoam as reference, you can do the following hack - in bold is the added line:
    Code:

    # Description
    #    start paraview with the OpenFOAM libraries
    #
    #------------------------------------------------------------------------------
    export PATH=/path/to/the/other/OpenFOAM/ThirdParty-2.0.1/platforms/$WM_ARCH$WM_COMPILER/paraview-$ParaView_VERSION:$PATH
    usage() {

Best regards and good luck!
Bruno

leo_paul September 14, 2011 06:04

paraview make error
 
hi,
I have been trying to build ParaView 3.10.1. Iam using Ubuntu. When i do 'make' though, I get the following error. Could someone please help me out? It seemed like the error that u guys have already been posting hence posting mine here. Not very used to linux so Iam having trouble figuring it out.
thanks
leo

Linking CXX executable ../../../../bin/GenericFilteringCxxTests
[ 32%] Built target GenericFilteringCxxTests
Scanning dependencies of target ImagingCxxTests
[ 32%] Building CXX object VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/ImagingCxxTests.cxx.o
[ 32%] Building CXX object VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/ImportExport.cxx.o
[ 32%] Building CXX object VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/ImageWeightedSum.cxx.o
[ 32%] Building CXX object VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/ImageAccumulate.cxx.o
[ 32%] Building CXX object VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/FastSplatter.cxx.o
Linking CXX executable ../../../../bin/ImagingCxxTests
collect2: ld returned 1 exit status
make[2]: *** [bin/ImagingCxxTests] Error 1
make[1]: *** [VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/all] Error 2
make: *** [all] Error 2

theIntegral September 14, 2011 12:23

Bruno,
Thanks for your help. I'll try your tip.

Paul,
Sorry, I see enough output to go on to give any meaningfull advice.


--------------------------
Mark

wyldckat September 15, 2011 02:46

Greetings to all!

@leo paul: How exactly are you trying to build ParaView? Or better yet, with which OpenFOAM version are you trying to build it with?

If it is with OpenFOAM 2.0.x, run makeParaView like this:
Code:

./makeParaView > makePV.log 2>&1
tar -czf makePV.log.tar.gz makePV.log

Then attach the file makePV.log.tar.gz to your next post. This way we can infer what is really missing, otherwise it would be necessary a magic eight ball or a crystal ball ;)

And another question: which version of Ubuntu?

Best regards,
Bruno

ivywalker September 16, 2011 06:58

This problem is related to mesa library.

I've solved the same problem by installing "libOSMesa" library in my Ubuntu(natty) box.

theIntegral September 16, 2011 07:53

Yes, libOSMesa was the trick. I was smart enough to suspect the mesa library was the problem, but not smart enough to now how to fix it. I'm glad you were.

Mark

standa11 September 17, 2011 11:03

Greetings!

I believe I've found the cause of the problem. In ParaView-3.10.1.spec file, line 153, statement
Code:

addCMakeVariable  OPENGL_gl_LIBRARY:STRING=
should be deleted or commented out. When done, cmake's automatically found value (file CMakeCache.txt) on my system (OpenSuse 11.4 x64 with nVidia proprietary driver) reads
Code:

OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so
Paraview builds now as it should, with hardware accelerated opengl (at least I hope so).

Best regards,
Stanislav

theIntegral September 19, 2011 10:04

Yes, that worked well. JaeHeung's advice worked on Ubuntu but I couldn't see a simlar method for OpenSUSE. I noticed the line that needed commenting out was quite new which makes me think it's a newly introduced bug. I'll forward something on to Hrvoje and Martin to let them know. Thanks.

Mark

standa11 September 19, 2011 15:26

There is another problem I encountered after my previous post. The AllMake.stage4 script exited with errors and no rpm & tgz were built. Beeing in the ThirdParty dir, I entered into build dir left after AllMake.stage4, executed 'make install', and then I ran AllMake.stage4 for the second time:
Code:

./AllMake.stage4 # first try
cd rpmBuild/BUILD/ParaView-3.10.1/buildObj/
make install
cd ../../../../
./AllMake.stage4 # second try

It did the trick, rpm & tgz are built now, which is strange actually because the script first delete enything left over the first pass. Now the rpm or tgz should be installed manually. I just did simple copying:
Code:

cp -r rpmBuild/BUILDROOT/ParaView-3.10.1-linux64GccDPOpt.x86_64/..blah..blah../packages/ParaView-3.10.1/platforms/linux64GccDPOpt/*    ./packages/ParaView-3.10.1/platforms/linux64GccDPOpt/
Best regards,
Stanislav

Islam ElQatary November 11, 2011 22:48

Quote:

Originally Posted by standa11 (Post 324735)
There is another problem I encountered after my previous post. The AllMake.stage4 script exited with errors and no rpm & tgz were built. Beeing in the ThirdParty dir, I entered into build dir left after AllMake.stage4, executed 'make install', and then I ran AllMake.stage4 for the second time:
Code:

./AllMake.stage4 # first try
cd rpmBuild/BUILD/ParaView-3.10.1/buildObj/
make install
cd ../../../../
./AllMake.stage4 # second try

It did the trick, rpm & tgz are built now, which is strange actually because the script first delete enything left over the first pass. Now the rpm or tgz should be installed manually. I just did simple copying:
Code:

cp -r rpmBuild/BUILDROOT/ParaView-3.10.1-linux64GccDPOpt.x86_64/..blah..blah../packages/ParaView-3.10.1/platforms/linux64GccDPOpt/*    ./packages/ParaView-3.10.1/platforms/linux64GccDPOpt/
Best regards,
Stanislav

i did what all u said and the all stages completed well but when i use paraFoam order the paraView always crash and i get the following aborting message

Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
paraview: /build/buildd/paraview-3.6.2/VTK/Utilities/vtknetcdf/posixio.c:433: px_get: Assertion `extent != 0' failed.
/home/islam/OpenFOAM/OpenFOAM-1.6-ext/bin/paraFoam: line 109: 31364 Aborted paraview --data="$caseFile"


can u help me with this error

wyldckat November 12, 2011 04:42

Greetings Islam ElQatary,

Do the modification shown here: https://github.com/OpenFOAM/OpenFOAM...4eb91c581562c7

Basically edit the file indicated there and add the lines shown in green. The plus characters at the beginning of the green lines aren't necessary since they are only indicators that those lines are to be added.

Best regards,
Bruno

gascortado April 30, 2012 19:09

Quote:

Originally Posted by ivywalker (Post 324387)
This problem is related to mesa library.

I've solved the same problem by installing "libOSMesa" library in my Ubuntu(natty) box.

Hi everyone, how do you actually install the mesa library? I tried:

santiago@santiago-laptop:~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty$ sudo apt-get install libOSMesa
[sudo] password for santiago:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libOSMesa


Thanks for helping.:)

wyldckat May 1, 2012 06:10

Hi Santiago,

These should be the ones (or at least they were a few years ago):
Code:

libosmesa6 libosmesa6-dev
When in doubt, install synaptic and then you can use it for more easily looking for packages whose name have changed into something veeeery strange ;)

Best regards,
Bruno

gascortado May 1, 2012 10:08

Thanks a lot for your reply Bruno. I install the library in question and still I get the same error:

make[2]: *** [bin/ImagingCxxTests] Error 1
make[1]: *** [VTK/Imaging/Testing/Cxx/CMakeFiles/ImagingCxxTests.dir/all] Error 2
make: *** [all] Error 2
error: Bad exit status from /home/santiago/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.iTi5od (%build)


RPM build errors:
Bad exit status from /home/santiago/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.iTi5od (%build)
Installing package: ParaView-3.10.1
Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linuxGccDPDebug.i386
Installing ParaView-3.10.1 using RPM file: /home/santiago/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/ParaView-3.10.1-linuxGccDPDebug.i386.rpm
error: open of /home/santiago/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/i386/ParaView-3.10.1-linuxGccDPDebug.i386.rpm failed: No such file or directory
Done installing package


As I mentioned to you in other thread, I use 1.6-ext from the synaptic package so my paraview works well with that installation. Would it do any good for me to un-install that version and then try stage.4 again?

wyldckat May 1, 2012 11:23

Hi Santiago,

Maybe it's best to do it the other way around: disable the ParaView version you are trying to build and then use the old one instead.

By the looks of it, it seems that you can do this:
  1. Start a new terminal.
  2. Do not run startOF16ext that was assigned to the deb version you had.
  3. When building the new version of 1.6-ext, run it like this:
    Code:

    export PARAVIEW_SYSTEM=1
    ./Allwmake

    This way it will skip the step for building ParaView.
When the new version is properly built... well, for now, the easiest thing to do would be to have two terminals:
  1. One where you have working the new 1.6-ext, perhaps in Debug mode already.
  2. Another where you have the old deb version of 1.6-ext, from which you can run ParaView.
Best regards,
Bruno

gascortado May 12, 2012 23:16

Thanks Bruno. I did that and it worked. Now I have a compiled version of OF-1.6-ext and I'm able to use Eclipse for debugging. Thanks

sita November 6, 2014 04:47

Paraview error
 
Dear Bruno,

Sorry, this is probably a very old thread, but I have a similar problem. Upon starting paraFoam, I get the same error message (read float past end of buffer), but then I just get to choose the "OpenFOAM" format from a list of options, and paraview works without further problems.

I'd gladly do the modification you suggest, but the thing is that I'm not allowed to do that myself. So I was wondering: is this a serious error (i.e. can I expect problems in the future if I don't do anything about it), or is it just mildly annoying but innocent?

Thanks in advance for your help,
Best,
Sita

Quote:

Originally Posted by wyldckat (Post 331790)
Greetings Islam ElQatary,

Do the modification shown here: https://github.com/OpenFOAM/OpenFOAM...4eb91c581562c7

Basically edit the file indicated there and add the lines shown in green. The plus characters at the beginning of the green lines aren't necessary since they are only indicators that those lines are to be added.

Best regards,
Bruno


wyldckat December 14, 2014 13:54

Greetings Sita,

You can add the following alias command to your personal "~/.bashrc" file:
Code:

alias paraFoam='export LC_ALL=C; paraFoam'
Then start a new terminal and you should now be able to use paraFoam without any problems.

For more details about aliases and the shell: http://openfoamwiki.net/index.php/In...with_the_Shell

For more details about using the built-in ".foam" reader in ParaView: http://openfoamwiki.net/index.php/FA...er_in_ParaView

Best regards,
Bruno


All times are GMT -4. The time now is 06:31.