dev-cafe / autocmake

CMake plugin composer.
http://autocmake.org
BSD 3-Clause "New" or "Revised" License
41 stars 18 forks source link

missing: PYTHON_LIBRARY on CentOS 7 #197

Closed miroi closed 7 years ago

miroi commented 7 years ago

New CentOS 7 x86-64 server, and I don't know which python-xxx packages are for PythonLibs...

Any help, please ?

milias@adf1:~/Work/programming/autocmake/test/python_interpreter/build-2017-05-18-22-22-57/.cmake ..
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARY) 
CMake Error at /home/milias/Work/programming/autocmake/modules/python_libs.cmake:78 (message):
  Could NOT find PythonLibs
Call Stack (most recent call first):
  CMakeLists.txt:25 (include)

-- Configuring incomplete, errors occurred!
bast commented 7 years ago

Can you describe the Python environment a bit? Are there Python libraries and headers available? Maybe python-dev is not installed?

miroi commented 7 years ago

Hi, solved with "yum install python-devel.x86_64". Would be good to mention necesary packages in https://autocmake.readthedocs.io/en/latest/general/requirements.html ,

plus mentioningthem in cmake error messages, like

Could NOT find PythonLibs ... did you install python-dev package ?
bast commented 7 years ago

OK - I will add some docs. This is only relevant for people actually running the tests but still we can mention it somewhere.

bast commented 7 years ago

The OMP part deserves an own issue.