|
[Sponsors] |
August 10, 2011, 08:55 |
Compiling ParaView
|
#1 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi,
I am able to run OpenFOAM 2.0.0, but am unable to get Paraview working. When I run ./makeParaView, it says the configuration is incomplete and quits. Not sure what is going wrong, but have attached the .log file of what occurs. I also do not have an internet connection, so I cannot use apt-get, etc. Thanks! |
|
August 10, 2011, 11:06 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings pfinlay1,
It's missing the OpenGL libraries and definitions... OK, let us try this first - open Synaptic Package Manager and pick the packages listed here: http://www.openfoam.com/download/source.php#x5-21000 But instead of trying to install them right away, go to Synaptic's menu and pick "File->Generate package download script". Then use that script for downloading the necessary files! For installing them, if I'm not mistaken, run: Code:
dpkg -i *.deb Bruno
__________________
|
|
August 10, 2011, 14:25 |
|
#3 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
Thanks for the quick reply! After looking up all of those packages with synaptic manager, I found that I have already installed them all. Namely, build-essential, flex, cmake, zlib1g-dev, qt4-dev-tools, libqt4-dev, gnuplot, libreadline-dev, libxt-dev, libscotch-dev, and libopenmpi-dev. Any other suggestions on what to do? Thank you. Best Regards, pfinlay1 |
|
August 10, 2011, 14:51 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
Here is a more complete list of packages: http://www.cfd-online.com/Forums/ope...tml#post268828 From there, I think you are missing these: Code:
libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev freeglut3-dev Another thing you're probably missing is the drivers for the graphics card, which should also carry necessary OpenGL stuff. Best regards, Bruno
__________________
|
|
August 11, 2011, 04:42 |
|
#5 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
Ok, I will install the packages you mentioned and give it a go. As for the driver for the graphics card, how would I go about finding that? Thanks. Regards, pfinlay1 |
|
August 11, 2011, 07:01 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
This should help: How to Add Proprietary Drivers to Ubuntu 10.04 Although since it might need internet connection, check this blog post: Linux find out graphics card installed in my system And when you find out which card your machine has... search with Google? Best regards, Bruno
__________________
|
|
August 12, 2011, 05:23 |
|
#7 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
Awesome. Paraview installed and I could run it, but then I restarted. Now when I type paraview into the command line it says that it isn't installed.. Do I need to reinstall? Thanks. Regards, pfinlay1 |
|
August 12, 2011, 10:44 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
Mmm... is the paraview binary the only one that stopped working, or other OpenFOAM commands also stopped working?
__________________
|
|
August 16, 2011, 07:58 |
|
#9 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
It's just paraview... openfoam still runs. |
|
August 16, 2011, 08:14 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
Well that's odd... OK, if I remember correctly, you compiled ParaView from source, correct? Then what do the following commands output : Code:
echo $ParaView_DIR ls -l $ParaView_DIR You can try to find where it might have gone to, by running: Code:
find / -name paraview If you want it to be faster, then run like this: Code:
find $HOME -name paraview Bruno
__________________
|
|
August 16, 2011, 11:18 |
|
#11 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
echo $ParaView_DIR does not output anything (guessing that means I was in the wrong directory?) I have attached the outputs from ls -l $ParaView_DIR and find $HOME -name paraview. Thanks! Regards, pfinlay1 |
|
August 16, 2011, 11:31 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pinflay1,
Interesting... it looks like before you rebooted your machine, you had the OpenFOAM environment set to 32bit, under which you built ParaView. But after rebooting, it probably went back to the default 64bit, therefore not finding the other version you built! Try running this: Code:
wm32 which paraview If this works, do you remember if you tried or did build both 32 and 64bit versions of OpenFOAM? If so, you might also need to build the respective 64bit version of ParaView. Best regards, Bruno
__________________
|
|
August 17, 2011, 06:47 |
|
#13 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
When I type in 'wm32', it doesn't even recognize it as a command... Just fyi, I remember when I installed Ubuntu 10.04 I chose 32 bit, so not sure if it can even run in 64 bit. Thanks. Regards, pfinlay1 |
|
August 17, 2011, 08:41 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
This is starting to look very strange indeed! OK, the only thing that comes to my mind right now is that you have more than one OpenFOAM installation in your machine. So I would advise you to check the "~/.bashrc" file and see what lines you might have added for OpenFOAM. If there is more than one line there, then leave active only the one that has your own build! If you want to have more than one OpenFOAM installation, then use aliases. For example: Code:
alias of17x='source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc' alias of20x='source $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc' But, if you only have one OpenFOAM installation, then something is definitely going wrong here. The wm32 command should have worked as intended! If indeed you only have one installation, then you can try and edit OpenFOAM's "etc/bashrc" file and change the following entry: Code:
export WM_ARCH_OPTION=64 Code:
export WM_ARCH_OPTION=32 Best regards, Bruno
__________________
|
|
August 17, 2011, 08:58 |
|
#15 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
Tricky problem indeed, isn't it! I looked at the ./bashrc file and only found the one source line I added. I attached it just in case I missed something. As well, changing the one line didn't do anything... OpenFOAM still runs, but when I go to post process with 'paraFoam', it says paraview isn't installed. Thanks! Regards, pfinlay1 |
|
August 17, 2011, 09:59 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi pfinlay1,
Good thing you attached your bashrc file! There is a misunderstanding about the differences between OpenFOAM's "bashrc" file and your home's ".bashrc" file! Let me explain:
Bruno
__________________
|
|
August 18, 2011, 09:45 |
|
#17 |
New Member
Join Date: Aug 2011
Posts: 11
Rep Power: 15 |
Hi Bruno,
Oh... whoops. It all makes sense now. Everything is working perfectly! Thank you so much for your help! Regards, pfinlay1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OF-1.6-ext enable MPI in paraview compiling | pcaron | OpenFOAM Installation | 2 | March 7, 2011 18:58 |
difficulty with paraview compiling | linch | OpenFOAM Installation | 10 | October 14, 2010 08:28 |
[OpenFOAM] error when compiling ParaView 3.8.0 on ubuntu10.04 | lainme | ParaView | 3 | August 12, 2010 22:34 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |