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. |
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 |
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:
Bruno |
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 |
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 |
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 And another question: which version of Ubuntu? Best regards, Bruno |
This problem is related to mesa library.
I've solved the same problem by installing "libOSMesa" library in my Ubuntu(natty) box. |
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 |
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= Code:
OPENGL_gl_LIBRARY:FILEPATH=/usr/lib64/libGL.so Best regards, Stanislav |
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 |
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 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/ Stanislav |
Quote:
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 |
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 |
Quote:
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.:) |
Hi Santiago,
These should be the ones (or at least they were a few years ago): Code:
libosmesa6 libosmesa6-dev Best regards, Bruno |
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? |
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:
Bruno |
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
|
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:
|
Greetings Sita,
You can add the following alias command to your personal "~/.bashrc" file: Code:
alias paraFoam='export LC_ALL=C; paraFoam' 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 |
Hi Bruno,
Thanks a lot, it works! Quote:
|
Dear Bruno,
I got the same problem with paraFoam command that Sita posted @19 Quote:
alias paraFoam='export LC_ALL=C; paraFoam' but, still not working. I'm working in foam-extend-3.1. What to do? Maimouna |
Greetings Maimouna,
I need more details, in order to reproduce the same error. Namely:
Bruno |
HI,Bruno! I meet the similar problem when I install OF2.2.2.I install it by installation packages OpenFOAM-2.2.2 and ThirdParty-2.2.2. The packages are gcc-4.6.1,gmp-5.0.4,mpfr-3.1.0,mpc-0.9,boost_1_45_0.,CGAL-4.0.2,cmake-2.8.4 andqt-everywhere-opensource-src-4.7.3.
I am sure the Qt is install correctly,these are the end lines of the output log file. Quote:
Quote:
Best regards, jiaojiao |
All times are GMT -4. The time now is 21:12. |