CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

A library compiling error after upgrading from OpenFOAM 2.2.0 to 2.2.2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2014, 18:55
Default A library compiling error after upgrading from OpenFOAM 2.2.0 to 2.2.2
  #1
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
Hi Bruno,

I got some new problems in the recent days. I have my OF-2.2.0 on my cluster. Now I need compile 2.2.2 in the same account. I have already compiled the source code and ThirdParty. But when I try to compile some my own libraries I got a error which shows:

make:*** No rule to make target '/home/jaq526/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc45/openmpi-1.6.3/include/mpi.h, needed by 'xxx.dep'. Stop

So, I think there should be something wrong with the environmental variables.
What I did is as follow:
1. cd $WM_MPLIB
it gives me this:
bash: cd:SYSTEMOPENMPI: No such file or directory
2. which mpirun
it gives me like:
/usr/lib64/openmpi/bin/mpirun which is the system mpi
And I also find I cannot use mpirun command to run my case in the older version 2.2.0 too. So I go back to check the bashrc file and redo the source $HOME/.../ step.
But it give me this message:

Cannot open configuration file /home/jaq526/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc45/openmpi-1.6.3/share/openmpi/mpicc-wrapper-data.txt

I really feel confused by this problem...
Do you have any suggestion on this?
y_jiang is offline   Reply With Quote

Old   May 14, 2014, 04:00
Default A library compiling error
  #2
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
I just installed of-2.2.2 on my Linux cluster.
I have some libraries to be compiled. But I got the following error message when I compiled one of them. The message is :

make:*** No rule to make target '/home/jaq526/OpenFOAM/ThirdParty-2.2.0/platforms/linux64Gcc45/openmpi-1.6.3/include/mpi.h', need by 'xxxx.dep' Stop.

I think there should be something wrong with the environmental variables, cause
In the /Make/options file, these two lines are included.
sinclude $(GENERAL_RULES)/mplib$(WM_MPLIB)
sinclude $(RULES)/mplib$(WM_MPLIB)

but the weird thing is why the message give me ThirdParty-2.2.0, actually I don't have ThirdParty-2.2.0 now. Does anyone have idea on this?
y_jiang is offline   Reply With Quote

Old   May 15, 2014, 15:34
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings y_jiang,

There are 2 possible problems:
  1. The shell environment variables haven't been updated properly to the new version 2.2.2. Check the contents of the file "~/.bashrc" to see if there are still old references to 2.2.0. Either way, start a new terminal to make sure the environment is clean. For more information of what I'm talking about: http://openfoamwiki.net/index.php/In...with_the_Shell
  2. You probably did not perform a clean up of the previous build. For example, if you use:
    Code:
    wmake all
    to build your library, then you should first do:
    Code:
    wclean all
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 15, 2014, 22:43
Default
  #4
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
Yes Bruno, you are right. Thank you. Cause the environmental variables are not update when I copy from the earlier version. I did wclean the old files in Make and seems the problems fixed.

But the paraview gives me a new trouble today. When I type paraFoam, there a new error which is
error while loading shared libraries:libQtWebKit.so.4
:cannot open shared object file: No such file or directory
Do you have any suggestion on this?
y_jiang is offline   Reply With Quote

Old   May 16, 2014, 01:29
Default
  #5
Member
 
Yijiu Jiang
Join Date: Jan 2013
Location: Michigan, US
Posts: 49
Rep Power: 13
y_jiang is on a distinguished road
I recompiled cmake and qt. Now ParaView runs with no problem. Thank you Bruno.
y_jiang is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Density_based turbo with OpenFoam 2.2.0 eddykendo OpenFOAM 4 March 2, 2014 06:05
ESI-OpenCFD Releases OpenFOAM v2.2.0 opencfd OpenFOAM Announcements from ESI-OpenCFD 13 March 30, 2013 16:52
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 05:33
Can OpenFoam be made faster or which Math kernel library is used jens_klostermann OpenFOAM 0 February 4, 2008 08:37
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


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