CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Installation

PV3FoamReader compile error....

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 30, 2010, 22:40
Default PV3FoamReader compile error....
  #1
New Member
 
David
Join Date: Mar 2010
Location: Vancouver, Canada
Posts: 13
Rep Power: 6
PEM_GUY is on a distinguished road
I compiled qt 4.3.5 (and have also tried 4.4.3)

then compiled paraview with the qmake path attached.....and it works

then I try to compile the PV3FoamREADER and it won't compile....

First Compile Error:
....................................
CMake Error at CMakeLists.txt:12 (FIND_PACKAGE):
Could not find module FindParaView.cmake or a configuration file for
package ParaView.

Adjust CMAKE_MODULE_PATH to find FindParaView.cmake or set ParaView_DIR to
the directory containing a CMake configuration file for ParaView. The file
will have one of the following names:

ParaViewConfig.cmake
paraview-config.cmake



CMake Error at CMakeLists.txt:13 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.


CMake Error at CMakeLists.txt:37 (ADD_PARAVIEW_PLUGIN):
Unknown CMake command "ADD_PARAVIEW_PLUGIN".


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.
........................................

so I check to see where ParaViewConfig.cmake is actually located:

$HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/Plugins/VisItDatabaseBridge/CMake

but the directory that is checked during the compile $ParaView_DIR=$HOME/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc

so I tried making a symbolic link to the required file in $ParaView_DIR

Second Compile Error:
.................................................. .....
CMake Error at /home/davhar/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc/ParaViewConfig.cmake:13 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.
Call Stack (most recent call first):
CMakeLists.txt:12 (FIND_PACKAGE)


CMake Error at CMakeLists.txt:13 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.


CMake Error at CMakeLists.txt:37 (ADD_PARAVIEW_PLUGIN):
Unknown CMake command "ADD_PARAVIEW_PLUGIN".


-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.
.................................................. ...

My cmake version is:

cmake version 2.6-patch 4

anyone with any ideas -- what I have done wrong or what is wrong?

(BTW foam runs -- just can't get paraview to run......can compile paraview...then PV3 won't compile.....)

Any help would be great...thanks

DH
PEM_GUY is offline   Reply With Quote

Old   March 31, 2010, 09:24
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings PEM_GUY and welcome to the forum!

Well, just because you've managed to compile Qt and Paraview, doesn't mean that you've compiled them into the expected folders

Now, it will help to know how did you actually built them. If you didn't use the makeQt and makeParaView scripts available in the ThirdParty-1.6 folder, then that's half way to why it won't work as intended with PV3FoamReader!

There is already a thread --> here <-- that gives a step by step on how to build them by using the available scripts. You'll have to read the whole thread, because the steps are scattered along the way

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 31, 2010, 17:47
Default used the built in scripts for compiling....
  #3
New Member
 
David
Join Date: Mar 2010
Location: Vancouver, Canada
Posts: 13
Rep Power: 6
PEM_GUY is on a distinguished road
Hi,

Thanks for the quick reply....

unfortunately I am using the built in compile scripts

so I first downloaded the qt source(s) (I have tried 4.3.5 and 4.4.3)

then used the makeQt script provided -- compiles with no errors

then I remove the linuxGcc directory in paraview as required

then I used the MakeParaview script -- but I provided the qmake path to the qt directory compiled above

then I went to $FOAM_UTILITIES and moved the the PV3FoamReader directory....

I then used the Allwclean and Allwmake scripts -- resulting in the errors seen above....

hope this helps provide some clarification on my attempts to re-compile and the source of the errors....

DH
PEM_GUY is offline   Reply With Quote

Old   March 31, 2010, 18:35
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hello again,

Your list of steps seems perfectly fine. So I guess that something went wrong somewhere and wasn't visible.
In one of my Ubuntu 64bit VM boxes, I have inside the folder "~/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc" these files and folders:
Code:
about.html
Applications
bin
CMake
CMakeCache.txt
CMakeFiles
cmake_install.cmake
CMakeOutput.log
CMakeTmp
Common
CPackConfig.cmake
CPackSourceConfig.cmake
CTestCustom.ctest
CTestTestfile.cmake
DartConfiguration.tcl
Documentation
lib
Makefile
ParaView3CompileToolsConfig.cmake
ParaView3CPackOptions.cmake
ParaViewConfig.cmake
ParaViewLibraryDepends.cmake
PluginList.txt
Plugins
pqClient.adp
Qt
Servers
Testing
Utilities
VTK
vtkPQConfig.h
vtkPVConfig.h
As you can see, that file you made a symbolic link to "ParaViewConfig.cmake", should be on that folder. So, assuming you have a 32bit Linux box or have setup a 32 bit OpenFOAM environment, then do you have these same files and folders in the folder "~/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linuxGcc" ? If not, then the makeParaView script didn't go so well

But if you do have all of these files... then something is amiss... and the only thing that comes to my mind is that there is one or more files that didn't get unpacked from the downloaded packages of OpenFOAM and/or ThirdParty "General" files, which has happened before to other people.

I hope this helps. If not, can you say what Linux version your using? And what architecture version (32 or 64 bit)?

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 5, 2010, 18:05
Default was a compile error -- but any fix for the paraFoam "open with" bug?
  #5
New Member
 
David
Join Date: Mar 2010
Location: Vancouver, Canada
Posts: 13
Rep Power: 6
PEM_GUY is on a distinguished road
A quick update:

Thanks for the list -- that was exactly what I needed, there was something wrong somewhere in the process and it wasn't throwing any error on the compile.

That being said -- paraview works .... however,

has anyone found a solution to the paraFoam "open with" bug?

I can't use paraFoam, but have to use FoamToVTK then use paraview....would be nice to know what causes the problem, but I haven't yet found a thread that answers it....

Cheers and Thanks for the file list....

DH
PEM_GUY is offline   Reply With Quote

Old   April 5, 2010, 18:15
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings DH,

You're welcome

Can you elaborate on:
Quote:
Originally Posted by PEM_GUY View Post
has anyone found a solution to the paraFoam "open with" bug?
Ah, wait, now I get it... Paraview starts and asks for what reader to use to open "*.OpenFOAM" files? That's probably because something went very wrong with building the PV3FoamReader plugin Try again running:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader       
./Allwclean       
./Allwmake
Hopefully this will solve the problem!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 5, 2010, 18:22
Default
  #7
New Member
 
David
Join Date: Mar 2010
Location: Vancouver, Canada
Posts: 13
Rep Power: 6
PEM_GUY is on a distinguished road
there is a developer only error related to the coding and an implicit definition with cmake -- but it compiles the whole way through and builds the modules...

I am working on an older (FC7) installation, but -- I have installed qt-4.3.5 and the cmake version is 2.6 patch 4

I will post the exact wording of the warning in the compilation tonight and we can go from there.

Thanks for the help.

Cheers,

DH
PEM_GUY 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
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
Compiling OpenFOAM13 on AMD64 with OpenSUSE 101 silent_missile OpenFOAM Installation 5 August 10, 2007 08:31
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 10:32.