CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Compiling Paraview on OSX 1056

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 24, 2009, 21:51
Default I'm trying to compile paraview
  #1
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
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
egp is offline   Reply With Quote

Old   February 24, 2009, 22:53
Default Hi Eric, never had this pro
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 184
Rep Power: 7
podallaire is on a distinguished road
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
podallaire is offline   Reply With Quote

Old   February 25, 2009, 09:04
Default Hi Eric, Pierre-Olivier, I ha
  #3
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   February 25, 2009, 09:13
Default Hi PO & Takuya, I just rebu
  #4
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
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
egp is offline   Reply With Quote

Old   February 25, 2009, 09:23
Default Hi, Then how about simply usi
  #5
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   February 25, 2009, 09:44
Default Version of gcc was the problem
  #6
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
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 is offline   Reply With Quote

Old   February 25, 2009, 12:44
Default Takuya, I'm getting close.
  #7
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
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?
egp is offline   Reply With Quote

Old   February 26, 2009, 09:58
Default Eric, You have to build and i
  #8
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   February 26, 2009, 10:04
Default Hi Takuya, I followed your
  #9
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 196
Blog Entries: 1
Rep Power: 8
egp is on a distinguished road
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
egp is offline   Reply With Quote

Old   February 26, 2009, 10:07
Default Hi guys, I had some issues
  #10
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 184
Rep Power: 7
podallaire is on a distinguished road
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
podallaire is offline   Reply With Quote

Old   February 26, 2009, 10:08
Default Can you confirm that the plugi
  #11
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
Can you confirm that the plugin dylibs are loaded? (check the plugin manager)

T
7islands is offline   Reply With Quote

Old   February 26, 2009, 11:17
Default Sounds like a case where Pierr
  #12
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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 is offline   Reply With Quote

Old   February 26, 2009, 11:25
Default Or if it doesn't work, can you
  #13
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 515
Blog Entries: 1
Rep Power: 10
7islands is on a distinguished road
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
7islands is offline   Reply With Quote

Old   February 26, 2009, 11:27
Default Takuya, here are the original
  #14
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 184
Rep Power: 7
podallaire is on a distinguished road
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 is offline   Reply With Quote

Old   February 26, 2009, 11:34
Default sorry, did not see your post b
  #15
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 184
Rep Power: 7
podallaire is on a distinguished road
sorry, did not see your post before sending this :-)
podallaire 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
Compiling paraview 33 and pv3foamreader module mcjicpm2 OpenFOAM Installation 1 March 19, 2009 12:59
paraview Francesco ParaView 1 February 27, 2009 12:22
Compiling Paraview on OSX 1056 egp OpenFOAM Paraview & paraFoam 0 February 24, 2009 21:55
paraview... through wall ParaView 0 February 26, 2007 21:40
HI all I cant find display button in paraview when i execute cavity tutorial there is only parameter button in the paraview chan OpenFOAM Paraview & paraFoam 2 February 13, 2006 08:37


All times are GMT -4. The time now is 21:34.