|
[Sponsors] |
[foam-extend.org] Paraview compilation error: Openfoam-1.6-ext |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 9, 2011, 04:37 |
Paraview compilation error: Openfoam-1.6-ext
|
#1 |
New Member
Chuang Gao
Join Date: Sep 2011
Posts: 3
Rep Power: 15 |
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. Last edited by turbomachinery; September 9, 2011 at 05:41. |
|
September 13, 2011, 09:27 |
|
#2 |
New Member
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 16 |
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 |
|
September 13, 2011, 14:27 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
September 14, 2011, 07:04 |
paraview make error
|
#4 |
New Member
leo paul
Join Date: Sep 2011
Posts: 1
Rep Power: 0 |
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 |
|
September 14, 2011, 13:23 |
|
#5 |
New Member
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 16 |
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 |
|
September 15, 2011, 03:46 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 And another question: which version of Ubuntu? Best regards, Bruno
__________________
|
|
September 16, 2011, 07:58 |
|
#7 |
New Member
JaeHeung Gill
Join Date: Jan 2010
Posts: 1
Rep Power: 0 |
This problem is related to mesa library.
I've solved the same problem by installing "libOSMesa" library in my Ubuntu(natty) box. |
|
September 16, 2011, 08:53 |
|
#8 |
New Member
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 16 |
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 |
|
September 17, 2011, 12:03 |
|
#9 |
New Member
|
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 |
|
September 19, 2011, 11:04 |
|
#10 |
New Member
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 16 |
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 |
|
September 19, 2011, 16:26 |
|
#11 |
New Member
|
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 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 |
|
November 11, 2011, 22:48 |
|
#12 | |
New Member
Islam Elqatary
Join Date: May 2011
Posts: 19
Rep Power: 15 |
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 |
||
November 12, 2011, 04:42 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
April 30, 2012, 20:09 |
|
#14 | |
Member
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 17 |
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. |
||
May 1, 2012, 07:10 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Santiago,
These should be the ones (or at least they were a few years ago): Code:
libosmesa6 libosmesa6-dev Best regards, Bruno
__________________
|
|
May 1, 2012, 11:08 |
|
#16 |
Member
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 17 |
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? |
|
May 1, 2012, 12:23 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
May 13, 2012, 00:16 |
|
#18 |
Member
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 17 |
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
|
|
November 6, 2014, 04:47 |
Paraview error
|
#19 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
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:
|
||
December 14, 2014, 13:54 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OF 1.6 ext on Ubuntu 12.10 (64 bit) compilation errors | dreamilam | OpenFOAM Installation | 7 | April 21, 2013 06:43 |
Solver Compiling error - OF 1.6 ext. | raditz | OpenFOAM Programming & Development | 8 | November 4, 2012 10:53 |
OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) | toolpost | OpenFOAM Installation | 15 | September 21, 2012 10:38 |
OpenFOAM 1.6 and ThirdParty Software Paraview | dunlopjp | OpenFOAM Installation | 0 | February 24, 2010 12:35 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |