Building FreeCAD on fedora - updated script

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
PrzemoF
Posts: 1706
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Building FreeCAD on fedora - updated script

Postby PrzemoF » Tue Jul 12, 2016 7:22 am

NormandC wrote:
PrzemoF wrote:The wiki was going nuts on || symbol.

I would never have figured this one out! :?


I just spotted it was cutting the script half the way through a line. I don't know if what I did was right, but it works :D
cgfaas
Posts: 1
Joined: Wed Feb 01, 2017 3:59 pm

Re: Building FreeCAD on fedora - updated script

Postby cgfaas » Thu Mar 09, 2017 5:36 am

I have been attempting to use the above script and compile in Fed 24. I received the following errors:

Code: Select all

Error: Transaction check error:
  file /usr/lib64/libkadm5clnt_mit.so.10.0 from install of libkadm5-1.14.4-4.fc24.x86_64 conflicts with file from package krb5-libs-1.14.1-6.fc24.x86_64
  file /usr/lib64/libkadm5srv_mit.so.10.0 from install of libkadm5-1.14.4-4.fc24.x86_64 conflicts with file from package krb5-libs-1.14.1-6.fc24.x86_64
/[code]
Then it keeps on rolling cloning the git repo.

In the end it hang son missing PythonLibs, requesting the eaxct version that matches the pyyhon2 version installed (2.7.12 or 2.7.13, I've tried both)
[code]
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "2.7.13")
CMake Error at CMakeLists.txt:531 (MESSAGE):
  =================================

  Python not found, install Python!

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



-- Configuring incomplete, errors occurred!


I've tried to install python-libs directly and upgrade cmake. Not sure what to try next.
ian.rees
Posts: 524
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Building FreeCAD on fedora - updated script

Postby ian.rees » Thu Mar 09, 2017 8:43 am

Perhaps dumb question - which script from above? I don't understand the significance of setting FEDORA_VERSION in the one that I take to be the newest (and suspect it's not necessary to set explicitly), but if that's trying to install dependencies from a different version of Fedora, then it might explain why dnf is complaining about conflicting libraries.

Edit: IIRC, the listed Fedora dependencies on the wiki are not a full list, but rather a list that ends up including the things you actually need. So, the python libs that cmake isn't finding are probably part of a python-devel package that's not getting installed because it first encounters the error about a conflict.

Next step I'd take is to not use the whole script as such, but instead install the dependencies via dnf as one step, then clone the source, then cmake and make... Stop when you encounter the first problem and investigate (eg, which dependency is leading to your problems?).

It might also be worth trying in the Install & Compile forum. Hope this helps! -Ian-
User avatar
PrzemoF
Posts: 1706
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Building FreeCAD on fedora - updated script

Postby PrzemoF » Thu Mar 09, 2017 6:08 pm

cgfaas, welcome to the forum!

We need detailed info which script (there are 2 in this thread).

If you don't want to build FreeCAD yourself, but you want a cutting edge fedora build check here: https://copr.fedorainfracloud.org/coprs ... f/FreeCAD/