CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OpenFoam 1.6-ext (https://www.cfd-online.com/Forums/openfoam/83014-openfoam-1-6-ext.html)

Peter_600 December 19, 2010 04:35

Hi boger.

For 'which qmake' I get /usr/bin/qmake. What do you mean by I need 'setenv QT_BIN_DIR /usr. Shall I write it in the console? If yes, I doesn't work. I don t have setenv (opensuse 11.3). I looked for it in the respiratory, but I couldn't find it, nor in the net :(

@pcaron
I know about this issue, I did one week ago. Yesterday, I have downloaded 1.6-ext again and the Allmake.stage4 seems to differ slightly. Correct me if I am wrong.

Cheers
Peter

Peter_600 December 19, 2010 10:44

ok, I figured out that setenv doesn t work for bash shell, so I switched to csh. When I write 'setenv QT_BIN_DIR /usr' in the csh shell nothing happens. Still not able to compile paraview. I checked the last Allmake.stage4 file and indeed it changed. There is now an if statement for the qt files. I do not want to compile it again since I have qt installed on my system. I really don t get it to set environmental variables properly.

boger December 19, 2010 11:54

I'd go back to your bash shell and add

export QT_BIN_DIR=/usr

to your .bashrc file, which sets the environment variable QT_BIN_DIR. After that, open a new terminal window (to be sure the environment variable gets added) and try your stage4 again. If it doesn't work, please let us know exactly what error message you get.

Out of curiosity, which version of Qt do you have? ("qmake --version" should tell you.)

Peter_600 December 19, 2010 12:06

I still get the same output as before, that the environmental variable QT_BIN_USR is not set properly

Quote:

This system rpm command: rpm

========================================
Starting ThirdParty AllMake: Stage4
========================================

Using system installed QT

WARNING:
WARNING: Skipping the installation of ParaView-3.8.1.
WARNING: Please make sure the QT_BIN_DIR environment variable properly
WARNING: initialized in the file prefs.sh or prefs.csh
WARNING: The command $QT_BIN_DIR/qmake needs to be valid
WARNING:
========================================
Done ThirdParty AllMake: Stage4
========================================
my version is:

QMake version 2.01a
Using Qt version 4.6.3 in /usr/lib64

Peter

boger December 19, 2010 12:23

I'm sorry: try

export QT_BIN_DIR=/usr/bin

Peter_600 December 19, 2010 12:28

Here we go :)
Thank you very much!!!!
Now it s compiling. I let u know about my progress.

Peter_600 December 19, 2010 12:34

Unfortunately an error occurred

Quote:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QTWEBKIT_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.8.1/VTK/GUISupport/Qt
used as include directory in directory /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.8.1/VTK/GUISupport/Qt/Chart
used as include directory in directory /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.8.1/VTK/GUISupport/Qt/Testing/Cxx

-- Configuring incomplete, errors occurred!
error: Bad exit status from /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.2uaRsa (%build)


RPM build errors:
Bad exit status from /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.2uaRsa (%build)
Installing package: ParaView-3.8.1
Uninstalling ParaView-3.8.1 using RPM: ParaView-3.8.1-linux64GccDPOpt.x86_64
Installing ParaView-3.8.1 using RPM file: /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
Done installing package ParaView-3.8.1

========================================
Done ThirdParty AllMake: Stage4
========================================

Peter_600 December 19, 2010 13:27

Installing 'libQtWebKit4-32bit' solved that problem.

pcaron December 20, 2010 07:43

Hi Peter, I agree with you the script is slightly different. I recopiled 1.6-ext yesterday using an updated git version. To enable the ThirdParty Qt, as I did before, you must set a new variable. I typed this before execute stage4 script.
Code:

export  QT_THIRD_PARTY=1
Then I could compile ThirdParty-QT. But you find out how to use the system QT, so I think this info is not relevant now ;)

Regards

Pablo

Peter_600 December 20, 2010 11:05

I have some troubles compiling Openfoam. Which compiler version do u use of gcc. Do you use ur system compiler or one from the ThirdParty package?

cheers
Peter

boger December 20, 2010 11:11

It is always better to tell us exactly what "troubles" you have run into. Do you get an error message?

Whether or not you can use your system version of gcc probably depends most on what version of gcc you have on your system. What does "gcc --version" tell you?

Peter_600 December 20, 2010 11:35

for foamInstallationTest, I got this

PHP Code:

-------------------------------------------------------------------------------
WARNINGgcc version does not match gcc supplied with this release of OpenFOAM
         Supplied version
4.3.3
         User version    
4.5.0
         Minimum required
4.3.1

gcc      4.5.0    
WARNING
:  Conflicting installations:
          
OpenFOAM settings        : /bin/gcc
          current path             
: /usr/bin/gcc
          CRITICAL ERROR 


Unfortunately I ve deleted openfoam already. I am going to compile everything again. But it had same warnings concerning paraview, that some variables haven t been set properly.
What is the best way to save the output? when I simply write .Allwmake > log, i don t save all the output from the screen in it. Any suggestions.
Sorry for the poor error message. I will compile it again and change to compiler set by OpenFoam.

boger December 20, 2010 11:45

Didn't we already discuss this same point in a previous post? The warning you got looks like just that to me - a warning. Based on that warning, there was no reason to delete OpenFOAM.

Maybe it depends on the shell, but something like "Allwmake >& log" or "Allwmake |& tee log" should save the error messages that are written to stderr.

Peter_600 December 20, 2010 15:54

I recompiled everything. OpenFoam is running, paraview and paraFoam,too.
Nevertheless, I am no able to see something when I load a case (icoFoam). In the end of stage4 I got an error. Maybe this could be the reason. I don t know how to treat it..
Quote:

Checking permissions and ownerships - using the permissions files
/tmp/Check.perms.Lf6sJN
setting /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/ParaView-3.8.1-linux64GccDPOpt.x86_64/ to root:root 0755. (wrong owner/group peter:users)
setting /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/ParaView-3.8.1-linux64GccDPOpt.x86_64/home/ to root:root 0755. (wrong owner/group peter:users)
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-symlink
ERROR: link target doesn't exist (neither in build root nor in installed system):
/home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/include -> /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/include
Add the package providing the target to neededforbuild and Requires
ERROR: link target doesn't exist (neither in build root nor in installed system):
/home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/bin -> /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/bin
Add the package providing the target to neededforbuild and Requires
ERROR: link target doesn't exist (neither in build root nor in installed system):
/home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/qt4/lib -> /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/lib64
Add the package providing the target to neededforbuild and Requires
INFO: relinking /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParaView-3.8.1/platforms/linux64GccDPOpt/lib/paraview-3.8/ooo3/share/uno_packages/cache/uno_packages/EK5oTh_/mysql-connector-ooo.oxt -> /usr/lib64/ooo3/share/extension/install/mysql-connector-ooo.oxt (was /usr/lib64/ooo3/share/extension/install/mysql-connector-ooo.oxt/)
Processing files: ParaView-3.8.1-linux64GccDPOpt.x86_64
Finding Provides: /usr/lib/rpm/find-provides ParaView
Finding Requires: /usr/lib/rpm/find-requires ParaView
Finding Supplements: /usr/lib/rpm/find-supplements ParaView
Provides: libAnalyzeReader.so()(64bit) libAnalyzeWriter.so()(64bit) libCosmo.so()(64bit) libH5PartReader.so()(64bit) libhdf5.so.1.8.5()(64bit) libKWCommon.so()(64bit) libMapReduceMPI.so.pv3.8()(64bit) libMoments.so()(64bit) libmpistubs.so.pv3.8()(64bit) libNIfTIReader.so()(64bit) libNIfTIWriter.so()(64bit) libPointSprite_Graphics.so()(64bit) libPointSprite_Plugin.so()(64bit) libPointSprite_Rendering.so()(64bit) libpqApplicationComponents.so()(64bit) libpqComponents.so()(64bit) libpqCore.so()(64bit) libpqWidgets.so()(64bit) libPrismClientPlugin.so()(64bit) libPrismServerPlugin.so()(64bit) libqsqlite.so()(64bit) libqsqlmysql.so()(64bit) libQtCLucene.so.4()(64bit) libQtCore.so.4()(64bit) libQtDBus.so.4()(64bit) libQtGui.so.4()(64bit) libQtHelp.so.4()(64bit) libQtNetwork.so.4()(64bit) libQtSql.so.4()(64bit) libQtTesting.so()(64bit) libQtWebKit.so.4()(64bit) libQtXmlPatterns.so.4()(64bit) libQtXml.so.4()(64bit) libQVTK.so.pv3.8()(64bit) libSierraPlotTools.so()(64bit) libSLACTools.so()(64bit) libSurfaceLIC.so()(64bit) libVPIC.so()(64bit) libvtkalglib.so.pv3.8()(64bit) libvtkCharts.so.pv3.8()(64bit) libvtkClientServer.so()(64bit) libvtkCommonCS.so()(64bit) libvtkCommon.so.pv3.8()(64bit) libvtkDICOMParser.so.pv3.8()(64bit) libvtkexoIIc.so.pv3.8()(64bit) libvtkexpat.so.pv3.8()(64bit) libvtkFilteringCS.so()(64bit) libvtkFiltering.so.pv3.8()(64bit) libvtkfreetype.so.pv3.8()(64bit) libvtkftgl.so.pv3.8()(64bit) libvtkGenericFilteringCS.so()(64bit) libvtkGenericFiltering.so.pv3.8()(64bit) libvtkGeovis.so.pv3.8()(64bit) libvtkGraphicsCS.so()(64bit) libvtkGraphics.so.pv3.8()(64bit) libvtkHybridCS.so()(64bit) libvtkHybrid.so.pv3.8()(64bit) libvtkImagingCS.so()(64bit) libvtkImaging.so.pv3.8()(64bit) libvtkInfovisCS.so()(64bit) libvtkInfovis.so.pv3.8()(64bit) libvtkIOCS.so()(64bit) libvtkIO.so.pv3.8()(64bit) libvtkjpeg.so.pv3.8()(64bit) libvtklibxml2.so.pv3.8()(64bit) libvtkmetaio.so.pv3.8()(64bit) libvtkNetCDF_cxx.so()(64bit) libvtkNetCDF.so.pv3.8()(64bit) libvtkParallelCS.so()(64bit) libvtkParallel.so.pv3.8()(64bit) libvtkpng.so.pv3.8()(64bit) libvtkproj4.so.pv3.8()(64bit) libvtkPVCommandOptions.so()(64bit) libvtkPVFiltersCS.so()(64bit) libvtkPVFilters.so()(64bit) libvtkPVServerCommonCS.so()(64bit) libvtkPVServerCommon.so()(64bit) libvtkPVServerManager.so()(64bit) libvtkQtChart.so.pv3.8()(64bit) libvtkRenderingCS.so()(64bit) libvtkRendering.so.pv3.8()(64bit) libvtksqlite.so.pv3.8()(64bit) libvtksys.so.pv3.8()(64bit) libvtktiff.so.pv3.8()(64bit) libvtkverdict.so.pv3.8()(64bit) libvtkViewsCS.so()(64bit) libvtkViews.so.pv3.8()(64bit) libvtkVolumeRenderingCS.so()(64bit) libvtkVolumeRendering.so.pv3.8()(64bit) libvtkWidgetsCS.so()(64bit) libvtkWidgets.so.pv3.8()(64bit) libvtkXdmfCS.so()(64bit) libvtkXdmf.so()(64bit) libvtkzlib.so.pv3.8()(64bit) libXdmf.so()(64bit)
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires: libCosmo.so()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.10)(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.9)(64bit) libdbus-1.so.3()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libEGL.so.1()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libglib-2.0.so.0()(64bit) libGL.so.1()(64bit) libGLU.so.1()(64bit) libgobject-2.0.so.0()(64bit) libgthread-2.0.so.0()(64bit) libhdf5.so.1.8.5()(64bit) libICE.so.6()(64bit) libKWCommon.so()(64bit) libmpistubs.so.pv3.8()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libmysqlclient_r.so.16()(64bit) libmysqlclient_r.so.16(libmysqlclient_16)(64bit) libpng14.so.14()(64bit) libpng14.so.14(PNG14_0)(64bit) libPointSprite_Graphics.so()(64bit) libPointSprite_Rendering.so()(64bit) libpqApplicationComponents.so()(64bit) libpqComponents.so()(64bit) libpqCore.so()(64bit) libpqWidgets.so()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libQtCLucene.so.4()(64bit) libQtCore.so.4()(64bit) libQtGui.so.4()(64bit) libQtHelp.so.4()(64bit) libQtNetwork.so.4()(64bit) libQtSql.so.4()(64bit) libQtTesting.so()(64bit) libQtWebKit.so.4()(64bit) libQtXmlPatterns.so.4()(64bit) libQtXml.so.4()(64bit) libQVTK.so.pv3.8()(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libSM.so.6()(64bit) libsqlite3.so.0()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3.1)(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) libVPIC.so()(64bit) libvtkalglib.so.pv3.8()(64bit) libvtkCharts.so.pv3.8()(64bit) libvtkClientServer.so()(64bit) libvtkCommonCS.so()(64bit) libvtkCommon.so.pv3.8()(64bit) libvtkDICOMParser.so.pv3.8()(64bit) libvtkexoIIc.so.pv3.8()(64bit) libvtkexpat.so.pv3.8()(64bit) libvtkFilteringCS.so()(64bit) libvtkFiltering.so.pv3.8()(64bit) libvtkfreetype.so.pv3.8()(64bit) libvtkftgl.so.pv3.8()(64bit) libvtkGenericFilteringCS.so()(64bit) libvtkGenericFiltering.so.pv3.8()(64bit) libvtkGraphicsCS.so()(64bit) libvtkGraphics.so.pv3.8()(64bit) libvtkHybridCS.so()(64bit) libvtkHybrid.so.pv3.8()(64bit) libvtkImagingCS.so()(64bit) libvtkImaging.so.pv3.8()(64bit) libvtkInfovisCS.so()(64bit) libvtkInfovis.so.pv3.8()(64bit) libvtkIOCS.so()(64bit) libvtkIO.so.pv3.8()(64bit) libvtkjpeg.so.pv3.8()(64bit) libvtklibxml2.so.pv3.8()(64bit) libvtkmetaio.so.pv3.8()(64bit) libvtkNetCDF_cxx.so()(64bit) libvtkNetCDF.so.pv3.8()(64bit) libvtkParallelCS.so()(64bit) libvtkParallel.so.pv3.8()(64bit) libvtkpng.so.pv3.8()(64bit) libvtkproj4.so.pv3.8()(64bit) libvtkPVCommandOptions.so()(64bit) libvtkPVFiltersCS.so()(64bit) libvtkPVFilters.so()(64bit) libvtkPVServerCommonCS.so()(64bit) libvtkPVServerCommon.so()(64bit) libvtkPVServerManager.so()(64bit) libvtkQtChart.so.pv3.8()(64bit) libvtkRenderingCS.so()(64bit) libvtkRendering.so.pv3.8()(64bit) libvtksqlite.so.pv3.8()(64bit) libvtksys.so.pv3.8()(64bit) libvtktiff.so.pv3.8()(64bit) libvtkverdict.so.pv3.8()(64bit) libvtkViews.so.pv3.8()(64bit) libvtkVolumeRenderingCS.so()(64bit) libvtkVolumeRendering.so.pv3.8()(64bit) libvtkWidgetsCS.so()(64bit) libvtkWidgets.so.pv3.8()(64bit) libvtkXdmfCS.so()(64bit) libvtkXdmf.so()(64bit) libvtkzlib.so.pv3.8()(64bit) libX11.so.6()(64bit) libXcursor.so.1()(64bit) libXdmf.so()(64bit) libXext.so.6()(64bit) libXfixes.so.3()(64bit) libXinerama.so.1()(64bit) libXi.so.6()(64bit) libXrandr.so.2()(64bit) libXrender.so.1()(64bit) libXt.so.6()(64bit) libz.so.1()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILDROOT/ParaView-3.8.1-linux64GccDPOpt.x86_64
Wrote: /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm
Executing(%clean): /bin/sh -e /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.fU79DL
+ umask 022
+ cd /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD
+ cd ParaView-3.8.1
+ rm -rf filelists
Installing package: ParaView-3.8.1
Uninstalling ParaView-3.8.1 using RPM: ParaView-3.8.1-linux64GccDPOpt.x86_64
Installing ParaView-3.8.1 using RPM file: /home/peter/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.8.1-linux64GccDPOpt.x86_64.rpm
Preparing... ##################################################
ParaView ##################################################
Done installing package ParaView-3.8.1

========================================
Done ThirdParty AllMake: Stage4
========================================

mbeaudoin December 20, 2010 17:42

> Nevertheless, I am no able to see something when I load a case (icoFoam).

This is rather vague....

What is the error message generated by paraview/paraFoam when you load your case?

What is the output of the following command: wmakePrintBuild

Martin

Peter_600 December 21, 2010 06:44

This is my output for 'wmakePrintBuild'
Quote:

1.6-ext-f3a01becc315
I dont get any error when I open paraview or load a case with paraFoam. I can enter ther GUI of paraview with both cases, but I am not able to see the grid. When I close paraview I get than

Quote:

Inconsistency detected by ld.so: dl-close.c: 731: _dl_close: Assertion `map->l_init_called' failed!
Any Idea?

deepsterblue December 21, 2010 08:54

Quote:

Inconsistency detected by ld.so: dl-close.c: 731: _dl_close: Assertion `map->l_init_called' failed!
I'm pretty sure this is a bug in glibc. Are you using a gcc-4.5.1 / openSuse combo?

Peter_600 December 21, 2010 11:19

Yes. I am using opensuse 11.3 but gcc gcc-4.5.0.
What is that mean?

deepsterblue December 21, 2010 11:44

Yeah.. It's a general problem with glibc and gcc-4.5.x. The shared libraries aren't unloaded properly by certain class destructors, and so the assertion gets triggered. It doesn't seem to be a major issue, if you're willing to ignore the assertion warning.

I downgraded to gcc-4.4.x, and the problem doesn't exist there. I'll go back up once they fix the issue.

Peter_600 December 21, 2010 11:48

Thank you very much. How can I downgrade my compiler? Just delete this one and install with yast an older one?


All times are GMT -4. The time now is 08:42.