Could NOT find PythonLibs when compiling on Arch

Having trouble installing or compiling FreeCAD? Get help here.
Post Reply
Tooniis
Posts: 14
Joined: Sat Feb 17, 2018 7:29 am

Could NOT find PythonLibs when compiling on Arch

Post by Tooniis » Mon Mar 23, 2020 2:18 pm

Code: Select all

$ cmake .. -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
-- Compiler: GNU, version: 9.3.0
-- prefix: /usr/lib/freecad
-- datadir: /usr/share/freecad
-- docdir: /usr/share/freecad/doc
-- includedir: include
-- libdir: /usr/lib/freecad/lib
-- cmake: 3.16.5
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.2") 
-- Could NOT find PythonLibs: Found unsuitable version "2.7.17", but required is exact version "3.8.2" (found /usr/lib/libpython3.8.so)
CMake Error at CMakeLists.txt:562 (MESSAGE):
  =================================

  Python not found, install Python!

  =================================



-- Configuring incomplete, errors occurred!
vocx
Posts: 3962
Joined: Thu Oct 18, 2018 9:18 pm

Re: Could NOT find PythonLibs when compiling on Arch

Post by vocx » Mon Mar 23, 2020 4:05 pm

Tooniis wrote:
Mon Mar 23, 2020 2:18 pm
Python not found, install Python!
Please follow the instructions on Compile on Linux. See the instructions on Debian and Ubuntu as they are the most up to date. After that look for the same dependencies in your Arch system.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
Tooniis
Posts: 14
Joined: Sat Feb 17, 2018 7:29 am

Re: Could NOT find PythonLibs when compiling on Arch

Post by Tooniis » Mon Mar 23, 2020 5:53 pm

vocx wrote:
Mon Mar 23, 2020 4:05 pm
Tooniis wrote:
Mon Mar 23, 2020 2:18 pm
Python not found, install Python!
Please follow the instructions on Compile on Linux. See the instructions on Debian and Ubuntu as they are the most up to date. After that look for the same dependencies in your Arch system.
I've already followed it and I'm pretty sure I have all dependencies installed. I don't know why it takes libpython2.7.17 then complains about it instead of taking libpython3.8 which it found.
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: Could NOT find PythonLibs when compiling on Arch

Post by Kunda1 » Mon Mar 23, 2020 6:14 pm

Tooniis wrote:
Mon Mar 23, 2020 5:53 pm
I've already followed it and I'm pretty sure I have all dependencies installed. I don't know why it takes libpython2.7.17 then complains about it instead of taking libpython3.8 which it found.

Are you pulling from FreeCAD master on github ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Tooniis
Posts: 14
Joined: Sat Feb 17, 2018 7:29 am

Re: Could NOT find PythonLibs when compiling on Arch

Post by Tooniis » Tue Mar 24, 2020 2:55 am

Kunda1 wrote:
Mon Mar 23, 2020 6:14 pm
Tooniis wrote:
Mon Mar 23, 2020 5:53 pm
I've already followed it and I'm pretty sure I have all dependencies installed. I don't know why it takes libpython2.7.17 then complains about it instead of taking libpython3.8 which it found.

Are you pulling from FreeCAD master on github ?
I'm using the 0.18.4 source from releases
Tooniis
Posts: 14
Joined: Sat Feb 17, 2018 7:29 am

Re: Could NOT find PythonLibs when compiling on Arch

Post by Tooniis » Tue Mar 24, 2020 2:57 am

I got a new copy of the source and now it is working. Could've been only the build directory that did it (it was inside the source directory).
User avatar
Kunda1
Posts: 7319
Joined: Thu Jan 05, 2017 9:03 pm

Re: Could NOT find PythonLibs when compiling on Arch

Post by Kunda1 » Tue Mar 24, 2020 1:26 pm

Tooniis wrote:
Tue Mar 24, 2020 2:57 am
I got a new copy of the source and now it is working. Could've been only the build directory that did it (it was inside the source directory).
Glad to hear. Please mark the OP title as [Solved].
Note: what would be great is if we could get a maintainer on Arch to build 0.19_pre master and have that available via the AUR
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests