CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   OF 15 Misleading information in README about Qt 43x in openSUSE (https://www.cfd-online.com/Forums/openfoam-bugs/62388-15-misleading-information-readme-about-qt-43x-opensuse.html)

tkoz July 24, 2008 10:08

Jose Luis Santos I am follo
 
Jose Luis Santos

I am following the method you posted regarding use of qt 4.4 (as in SUSE 11) for recompilation of paraView.

You have a step in your procedure listed as:

"Installed libqt4-devel package"

Would you please indicate where to get that package and and how and where to install it.

Thanks,

alberto July 24, 2008 10:30

Hi Thomas, the package you'
 
Hi Thomas,

the package you're looking for is in the OSS repository of openSUSE, that can be added using YaST -> Software -> Installation sources (maybe the names are slightly different, I'm translating what I read in the Italian version).

The OSS repository is added by default during the installation, and you should already see it in the list.

To install the package, use the installer or simply type (as root) in a terminal:

zypper in lib-qt4-devel

For your convenience, on openSUSE, you can search for packages using:

- http://software.opensuse.org/search
- selecting the openSUSE logo (chameleon) in the search bar of firefox
- if you need to search also among community packages (codecs, ...): http://packages.opensuse-community.o...sp?searchTerm=

With kind regards,
Alberto

tkoz July 24, 2008 13:07

Still working on paraView reco
 
Still working on paraView recompile for SUSE1.5 using QT4.4. Got compilation failure (see below). Any additional suggestions.

I followed suggestions below:


- In CMakeLists.txt comment the line:

# MESSAGE(SEND_ERROR "Qt ${QTVERSION} not supported. Please use Qt 4.3 (you may need to clean your dirtied cache).")

- Installed libqt4-devel package (I installed using software download from repository OSS. It installed a lot of other software along with libqt4-devel)

- Removed '~/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms' directory

- ran 'buildParaView3.3-cvs' to compile Paraview

I got a compilation failure with messages below:

Building ParaView3.3-cvs
MPI support : OFF
Python support : OFF
MESA support : OFF
Source : /home/kosvic/OpenFOAM/ThirdParty/ParaView3.3-cvs
Target : /home/kosvic/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/kosvic/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFi les/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/kosvic/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/CMakeFi les/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring done

santos July 24, 2008 15:53

Thomas, Did you source the
 
Thomas,

Did you source the bashrc file as said in the README? It seems cmake is not found in your system, but you should have it in ~/OpenFOAM/ThirdParty/cmake-2.4.6

In my laptop:
jose@laptop:~/OpenFOAM/ThirdParty> which cmake
/home/jose/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux/bin/cmake

Run foamInstallationTest to check if your system is correctly configured.

Regards,
Jose Santos

alberto August 26, 2008 05:19

Hello, I finally compiled par
 
Hello,
I finally compiled paraview and paraFoam reader successfully myself on openSUSE 11.0 with Qt 4.4 (the version provided by openSUSE) following Mattijs and Niklas guidelines.

Unfortunately I didn't find out what was causing the truncation to integer I previously reported.

Alberto

tkoz August 26, 2008 16:01

Alberto, Did your compiled
 
Alberto,

Did your compiled version of paraFoam (SUSE 11 and QT 4.4) properly open up, find a reader, and allow a display of the grid and velocity vectors for the icoFoam cavity case in the Tutorials?

What were the steps you did that finally allowed the compilation that you were unsuccessful at before?

Thanks,

Tom Kosvic

alberto August 26, 2008 17:15

Hello Thomas, I didn't test
 
Hello Thomas,

I didn't test it on the cavity case before you asked me. I used a 2D mesh imported generated in gambit and it worked, as it works properly with the rhoPorousSimpleFoam tutorials.

I've just tried it with the cavity case, I still have the truncation problem (no geometry nor data shown). So the problem seems only partly fixed. :-(

The compilation process is the one explained in the readme file. The only difference is a patch released by openSUSE.

Regards,
Alberto

andrewryan September 13, 2008 19:02

I'm getting this error on Ubun
 
I'm getting this error on Ubuntu Hardy and Fedora 8. From the answers above I'm not sure what the solution is (just recompile paraview?). Is there a way to get it working, without recompiling paraview? I don't own a fast Linux machine currently and therefore recompiling is slow http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif On which system were the binaries tested?

andrewryan September 13, 2008 19:35

foamToVTK works on Fedora, but
 
foamToVTK works on Fedora, but not on Ubuntu, there I get:

From function Foam::cwd()
in file Unix.C at line 199.

wtf?

mattijs September 14, 2008 04:00

The messages comes from the ge
 
The messages comes from the getcwd system call failing which can happen if:
- the current directory does not exist anymore (e.g. deleted from another window)
- the directory name is longer than 255 characters. Any chance of these happening?

andrewryan September 14, 2008 06:52

Thx I deleted the directory, t
 
Thx I deleted the directory, then recreated it. I had to do

cd <somewhere>
and then back cd into the dir i was before, then it worked

christian September 15, 2008 07:27

OpenFOAM is solving the cavity
 
OpenFOAM is solving the cavity tutorial as expected but CMake variables are not set when running "buildParaView3.3-cvs". Anyone who can help me please.

---

csvs@linux-pk1o:~/OpenFOAM/ThirdParty> ../OpenFOAM-1.5/bin/./foamSystemCheck

Checking basic system...
-----------------------------------------------------------------------
Shell: /bin/bash
Host: linux-pk1o
OS: Linux version 2.6.25.5-1.1-default
User: csvs


System check: PASS
==================
Continue OpenFOAM installation.

csvs@linux-pk1o:~/OpenFOAM/ThirdParty> ../OpenFOAM-1.5/bin/./foamInstallationTest
Executing ../OpenFOAM-1.5/bin/./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: linux-pk1o
OS: Linux version 2.6.25.5-1.1-default
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/csvs/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/csvs/OpenFOAM/csvs-1.5 yes no
$WM_THIRD_PARTY_DIR /home/csvs/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/csvs/OpenFOAM/OpenFOAM-1.5 yes yes yes

$FOAM_APPBIN ...1.5/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...1.5/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR /home/csvs/OpenFOAM/OpenFOAM-1.5/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.5/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...penFOAM/csvs-1.5/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.3.1 ...penFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
gzip 1.3.12 /usr/bin/gzip
tar 1.19 /bin/tar
icoFoam 1.5 .../OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_linux-pk1o Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

Critical systems ok.


done.

csvs@linux-pk1o:~/OpenFOAM/ThirdParty> cd $FOAM_INST_DIR/ThirdParty
csvs@linux-pk1o:~/OpenFOAM/ThirdParty> rm -rf ParaView3.3-cvs/platforms
csvs@linux-pk1o:~/OpenFOAM/ThirdParty> buildParaView3.3-cvs
Building ParaView3.3-cvs
MPI support : OFF
Python support : OFF
MESA support : OFF
Source : /home/csvs/OpenFOAM/ThirdParty/ParaView3.3-cvs
Target : /home/csvs/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/csvs/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFi les/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/csvs/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFi les/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring done
/home/csvs/OpenFOAM/OpenFOAM-1.5/bin/tools/buildParaViewFunctions: line 206: make: command not found
done

---

Best regards,
Christian Lindbäck

lin September 15, 2008 16:05

From the last line: /home/c
 
From the last line:

/home/csvs/OpenFOAM/OpenFOAM-1.5/bin/tools/buildParaViewFunctions: line 206: make: command not found

do you have installed "make"?

christian September 16, 2008 03:18

Thank you. Embarrasing, I assu
 
Thank you. Embarrasing, I assumed that make was installed from start in OpenSUSE 11.

Now things are working. However, when running paraFoam I don't see a thing of my geometry. And there are no error messages. In the information it says that my domain extends from 0 to 0 in all directions. Something is wrong and I have no clue how to solve the problem. When using foamToVTK first I can see my geometry however.

ameya September 18, 2008 04:11

Hi Christian I am new to Op
 
Hi Christian

I am new to OpenFOAM and Fedora. While trying to install ParaFoam I got the same problem that ypou had posted on Sept 15. But i have no idea how to install make file.
Can you please help.

christian September 18, 2008 05:26

Use YaST (it is in the menu in
 
Use YaST (it is in the menu in the GUI of your OS I hope) and go to where you install software. The search for "make" and choose to install the package.

lin September 18, 2008 10:25

If you use Fedora,as a root us
 
If you use Fedora,as a root user, run the following command

yum -y install make

tkoz September 23, 2008 12:29

All, looks like this thread ha
 
All, looks like this thread has become a parafoam and paraview process discussion so:

Has anyone gotten the binary distributions in openfoam1.5 of parafoam and paraview to run properly?

By run properly, I mean can you see the grid, velocity vectors, pressure profiles etc for the cavity case discussed as 1st step in the tutorials?

By run properly, I mean also that paraview found a proper reader and that the viewing was done without foamToVTK conversion.

If you have had success using the binary distributions of parafoam and paraview let us all know what special steps you did.

I have SUSE with QT4.4 and Fedora and have not had luck running parafoam and paraview with either of these.

If no one has had any success then I will move to re-compiling these processes.

Thanks much,

Tom Kosvic

mrangitschdowcom September 23, 2008 13:40

Thomas, I got it to run aft
 
Thomas,
I got it to run after a bit of cursing... We run SUSE 10.1 and had to load the qt 4.3.5 to to get it to work. We used an rpm install we found at openSUSE (we found the right ones here http://download.opensuse.org/reposit...SLE_10/x86_64/ )
I had to be careful on what was in the library path, but once a reference to an older version of QT was removed, it worked just fine.

Mike Rangitsch

tomislav_maric October 6, 2008 17:02

I've installed the proposed Qt
 
I've installed the proposed Qt 4.3.5 locally, configured and built pview3.3-cvs and the vtkPV3FoamReader without problems on suse 11, 32 bit.

Running paraFoam on a tutorial case inside the case directory gives me a small window asking me to define the reader for tutorialCase.OpenFOAM

Can somebody please help me and explain why does it do so, when the reader for .OpenFOAM files is compiled without problems?

And to make it more confusing: one of the offered options is : "OpenFOAM files".


All times are GMT -4. The time now is 14:59.