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

Paraview compilation error: Openfoam-1.6-ext

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

Like Tree4Likes
  • 2 Post By standa11
  • 2 Post By standa11

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2011, 03:37
Angry Paraview compilation error: Openfoam-1.6-ext
  #1
New Member
 
Chuang Gao
Join Date: Sep 2011
Posts: 3
Rep Power: 4
turbomachinery is on a distinguished road
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.
Attached Files
File Type: txt log-error.txt (22.3 KB, 8 views)

Last edited by turbomachinery; September 9, 2011 at 04:41.
turbomachinery is offline   Reply With Quote

Old   September 13, 2011, 08:27
Default
  #2
New Member
 
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 6
theIntegral is on a distinguished road
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
theIntegral is offline   Reply With Quote

Old   September 13, 2011, 13:27
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   September 14, 2011, 06:04
Default paraview make error
  #4
New Member
 
leo paul
Join Date: Sep 2011
Posts: 1
Rep Power: 0
leo_paul is on a distinguished road
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
leo_paul is offline   Reply With Quote

Old   September 14, 2011, 12:23
Default
  #5
New Member
 
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 6
theIntegral is on a distinguished road
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
theIntegral is offline   Reply With Quote

Old   September 15, 2011, 02:46
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   September 16, 2011, 06:58
Default
  #7
New Member
 
JaeHeung Gill
Join Date: Jan 2010
Posts: 1
Rep Power: 0
ivywalker is on a distinguished road
This problem is related to mesa library.

I've solved the same problem by installing "libOSMesa" library in my Ubuntu(natty) box.
ivywalker is offline   Reply With Quote

Old   September 16, 2011, 07:53
Default
  #8
New Member
 
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 6
theIntegral is on a distinguished road
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
theIntegral is offline   Reply With Quote

Old   September 17, 2011, 11:03
Default
  #9
New Member
 
Stanislav Sviderek
Join Date: Sep 2011
Location: Zagreb, Croatia
Posts: 2
Rep Power: 0
standa11 is on a distinguished road
Send a message via MSN to standa11
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
rmorgans and zhaowei like this.
standa11 is offline   Reply With Quote

Old   September 19, 2011, 10:04
Default
  #10
New Member
 
Mark Anderson
Join Date: Jul 2010
Location: Vermont
Posts: 4
Rep Power: 6
theIntegral is on a distinguished road
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
theIntegral is offline   Reply With Quote

Old   September 19, 2011, 15:26
Default
  #11
New Member
 
Stanislav Sviderek
Join Date: Sep 2011
Location: Zagreb, Croatia
Posts: 2
Rep Power: 0
standa11 is on a distinguished road
Send a message via MSN to standa11
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
rmorgans and kalle like this.
standa11 is offline   Reply With Quote

Old   November 11, 2011, 21:48
Default
  #12
New Member
 
Islam Elqatary
Join Date: May 2011
Posts: 19
Rep Power: 5
Islam ElQatary is on a distinguished road
Quote:
Originally Posted by standa11 View Post
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
Islam ElQatary is offline   Reply With Quote

Old   November 12, 2011, 03:42
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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 is offline   Reply With Quote

Old   April 30, 2012, 19:09
Default
  #14
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 6
gascortado is on a distinguished road
Quote:
Originally Posted by ivywalker View Post
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.
gascortado is offline   Reply With Quote

Old   May 1, 2012, 06:10
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   May 1, 2012, 10:08
Default
  #16
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 6
gascortado is on a distinguished road
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?
gascortado is offline   Reply With Quote

Old   May 1, 2012, 11:23
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,090
Blog Entries: 32
Rep Power: 70
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   May 12, 2012, 23:16
Default
  #18
Member
 
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 6
gascortado is on a distinguished road
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
gascortado is offline   Reply With Quote

Reply

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
Compilation error for openfoam - 1.6 misakagan OpenFOAM 19 February 21, 2012 10:36
paraview installation woes vex OpenFOAM Installation 15 January 30, 2011 07:11
OpenFOAM 1.6 and ThirdParty Software Paraview dunlopjp OpenFOAM Installation 0 February 24, 2010 11:35
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41
Installation of OpenFoam 15 Compilation paraview soeren_brot OpenFOAM Installation 45 January 12, 2009 06:39


All times are GMT -4. The time now is 09:00.