CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Paraview & paraFoam (http://www.cfd-online.com/Forums/openfoam-paraview/)
-   -   Compiling Paraview on OSX 1056 (http://www.cfd-online.com/Forums/openfoam-paraview/61056-compiling-paraview-osx-1056-a.html)

egp February 24, 2009 20:51

I'm trying to compile paraview
 
I'm trying to compile paraview (3.4.0 or 3.5) on my MacBookPro and MacPro workstation so that I can build it with Takuya Oshima's plugin. However, I get errors when trying to use ccmake

CMake Error at /Applications/CMake 2.6-3.app/Contents/share/cmake-2.6/Modules/TestBigEndian.cmake:31 (MESSAGE):
no suitable type found
ll Stack (most recent call first):
TK/CMake/CMakeBackwardCompatibilityC.cmake:31 (TEST_BIG_ENDIAN)
VTK/CMakeLists.txt:365 (INCLUDE)

Anyone have an idea on how to solve this problem? I've been chasing my tail for awhile and thought it was time to ask the community for help.

Eric

podallaire February 24, 2009 21:53

Hi Eric, never had this pro
 
Hi Eric,

never had this problem in the past (I re-compiled it yesterday).
In fact, I built cmake-2.6.2 from the tar.gz instead of using the dmg version, maybe it makes a difference ?

PO

7islands February 25, 2009 08:04

Hi Eric, Pierre-Olivier, I ha
 
Hi Eric, Pierre-Olivier,
I had no problem with building ParaView 3.5.0 using CMake 2.6.3 downloaded from Kitware (cmake-2.6.3-Darwin-universal.tar.gz) on OS X 10.5.6 either. How about starting over from a fresh state??

Takuya

egp February 25, 2009 08:13

Hi PO & Takuya, I just rebu
 
Hi PO & Takuya,

I just rebuilt cmake from source, and I'm still getting the error complaining about line 31 of TestBigEndian.cmake where it tests for "unsigned long".

Takuya, any recommendations on how to start from a fresh state? I'm actually trying this on a brand new MacBookPro (although I did port all of my apps and documents using MigrationAssistant.app. I'm using gcc 4.3.3, and built it from MacPorts.

Eric

7islands February 25, 2009 08:23

Hi, Then how about simply usi
 
Hi,
Then how about simply using gcc-4.0.1 that comes with OS X (developer tools)? I'm using gcc included in Xcode 3.1.2 (downloaded from Apple's developer site) but the default version should just work.

Takuya

egp February 25, 2009 08:44

Version of gcc was the problem
 
Version of gcc was the problem. Upon rerunning cmake with /usr/bin/gcc and /usr/bin/c++ (which point to gcc-4.0.1 that comes with OSX), everything ran OK.

Thanks, Takuya and PO.

egp February 25, 2009 11:44

Takuya, I'm getting close.
 
Takuya,

I'm getting close. Paraview 3.5 runs on my Mac, but when trying to read an OpenFOAM case, I get the following:

[11:39:40][egp@egpMBP:sigma]555$ pvFoam
ERROR: In /Users/egp/softwareProjects/ParaView-3.5/Servers/Common/vtkProcessModule.cxx, line 1046
vtkProcessModule (0x6b4fa40): Object type: vtkOpenFOAMReader, could not find requested method: "SetTimeStep"
or the method was called with incorrect arguments.

while processing
Message 0 = Invoke
Argument 0 = id_value {78}
Argument 1 = string_value {SetTimeStep}
Argument 2 = int32_value {0}



ERROR: In /Users/egp/softwareProjects/ParaView-3.5/Servers/Common/vtkProcessModule.cxx, line 1047
vtkProcessModule (0x6b4fa40): Aborting execution for debugging purposes.


/Users/egp/OpenFOAM/OpenFOAM-1.5-dev.git/bin/pvFoam: line 76: 89953 Abort trap "${paraviewPath}" --data="${PWD}/system/controlDict.${ext}"


Any ideas on this one?

7islands February 26, 2009 08:58

Eric, You have to build and i
 
Eric,
You have to build and install a plugin as well (see Section 4.2 of the wiki page).

p.s. As written in the wiki please don't forget to set CMAKE_BUILD_TYPE to Release when building ParaView and the plugin. Otherwise the reader will be terribly slow.

Takuya

egp February 26, 2009 09:04

Hi Takuya, I followed your
 
Hi Takuya,

I followed your instructions from the wiki, and "think" that I've successfully installed both the serial and parallel readers. No errors were reported. Any suggestions for where to look?

Eric

podallaire February 26, 2009 09:07

Hi guys, I had some issues
 
Hi guys,

I had some issues in the past and Takuya provided a fixupBundle.cmake for the reader libs / did you use it ?

Regards,

PO

7islands February 26, 2009 09:08

Can you confirm that the plugi
 
Can you confirm that the plugin dylibs are loaded? (check the plugin manager)

T

7islands February 26, 2009 10:17

Sounds like a case where Pierr
 
Sounds like a case where Pierre-Olivier's suggestion works if you built ParaView with RPATH on, which is the default setting for ParaView 3.5.0. As PO suggests can you try fixupBundle.cmake?

Takuya

7islands February 26, 2009 10:25

Or if it doesn't work, can you
 
Or if it doesn't work, can you try copying the dylibs inside (your paraview build directory)/bin/ParaView.app/Contents/Plugins and try running ParaView directly from the build directory?

BTW: the dylibs you should see in the plugin manager are (at least) libPOpenFOAMPanel.dylib and libPOpenFOAMReaderSMPlugin.dylib.

T

podallaire February 26, 2009 10:27

Takuya, here are the original
 
Takuya, here are the original instructions that you sent couple months ago (Eric, the fixupBundle.cmake file needs to be copied in you plugin build directory before running this) :


Run the following command under the plugin build directory.

cmake -DParaView_DIR=(full path to ParaView build directory) -DParaView_App=(full path to ParaView application bundle ParaView.app) -P fixupBundle.cmake

Thanks

PO

podallaire February 26, 2009 10:34

sorry, did not see your post b
 
sorry, did not see your post before sending this :-)


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