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

[foam-extend.org] compile error with python characteristic activated

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2016, 11:27
Default compile error with python characteristic activated
  #1
Member
 
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13
shuoxue is on a distinguished road
compile error at AllMake.stage4

System: Ubuntu Kylin 14.04.3 64bit
foam: foam-extend 3.2

What I did was following the file step by step.
/home/lyl1s2/foam/foam-extend-3.2/doc/buildInstructions/Ubuntu/Ubuntu_14.04

Code:
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:
PYTHON_LIBRARY (ADVANCED)
    linked by target "vtkPythonInterpreter" in directory /home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/BUILD/ParaView-v4.3.1-source/VTK/Utilities/PythonInterpreter

-- Configuring incomplete, errors occurred!
See also "/home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/BUILD/ParaView-v4.3.1-source/buildObj/CMakeFiles/CMakeOutput.log".
See also "/home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/BUILD/ParaView-v4.3.1-source/buildObj/CMakeFiles/CMakeError.log".
Error: /home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/tmp/rpm-tmp.emv5Ra (%build) 

    /home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/tmp/rpm-tmp.emv5Ra (%build) 
Installing package: ParaView-4.3.1
  Uninstalling ParaView-4.3.1 using RPM: ParaView-4.3.1-linux64GccDPDebug.x86_64
  Installing ParaView-4.3.1 using RPM file: /home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.3.1-linux64GccDPDebug.x86_64.rpm
Error:  /home/lyl1s2/foam/foam-extend-3.2/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.3.1-linux64GccDPDebug.x86_64.rpm 
Done installing package
The same error occurred when I was installing OpenFOAM 3.0.1 with python activated.
/home/lyl1s2/OpenFOAM/ThirdParty-3.0.1/makeParaView4
Code:
# Python support:
# note: script will try to determine the appropriate python library.
#       If it fails, specify the path using the PYTHON_LIBRARY variable
withPYTHON=true
PYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0"
# PYTHON_LIBRARY="/usr/lib64/libpython2.6.so.1.0"
The compiling process would be sucessed only if python characteristic was turned off.
/home/lyl1s2/OpenFOAM/ThirdParty-3.0.1/makeParaView4
Code:
# Python support:
# note: script will try to determine the appropriate python library.
#       If it fails, specify the path using the PYTHON_LIBRARY variable
withPYTHON=false
PYTHON_LIBRARY=""
# PYTHON_LIBRARY="/usr/lib64/libpython2.6.so.1.0"
Is there something wrong about my operation?

Thanks in advance.
shuoxue is offline   Reply With Quote

Old   February 6, 2016, 17:05
Default
  #2
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 shuoxue,

There is a glitch in the build scripts in foam-extend 3.2, regarding the Python libraries. I haven't managed yet to commit a bug fix for it... I know I wrote some instructions on how to build ParaView in foam-extend 3.1 with Python support, let me go look for it... OK, I found it: http://www.cfd-online.com/Forums/ope...tml#post528019 - post #3, problem is that it's for ParaView 4.0.1 and not 4.3.1.


As for OpenFOAM 3.0.1, check the instructions given here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - In step #9 you will see how to build ParaView 4.4.0 with the Python and MPI features.
Although... can you please check if the file exists? Run this command:
Code:
ls -l /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
cmake, foam extend 3.2, parafoam, paraview, python

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to compile ensight python file Viswa EnSight 0 August 14, 2018 23:39
[OpenFOAM] using the python shell in paraFoam colinB ParaView 14 September 14, 2015 09:04
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 aylalisa ParaView 4 June 13, 2014 08:52
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


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