Compiling ParaView
1 Attachment(s)
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! |
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 |
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 |
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 |
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 |
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 |
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 |
Hi pfinlay1,
Mmm... is the paraview binary the only one that stopped working, or other OpenFOAM commands also stopped working? |
Hi Bruno,
It's just paraview... openfoam still runs. |
Hi pfinlay1,
Well that's odd... OK, if I remember correctly, you compiled ParaView from source, correct? Then what do the following commands output :confused:: Code:
echo $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 |
1 Attachment(s)
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 |
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 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 |
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 |
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' 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 |
1 Attachment(s)
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 |
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 |
Hi Bruno,
Oh... whoops. It all makes sense now. Everything is working perfectly! Thank you so much for your help! Regards, pfinlay1 |
All times are GMT -4. The time now is 11:15. |