Compile error - OSX

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Brutha
Posts: 221
Joined: Mon May 04, 2015 1:50 pm

Compile error - OSX

Post by Brutha »

Hi All,

I'm trying to compile Freecad on Mac (Yosemite, OSX 10.10.2) prior to playing around with the code a little.

I'm running into issues when I follow the instructions here: https://www.freecadweb.org/wiki/CompileOnMac.

The problem comes with the "brew tap freecad/freecad" step. Initially I get the following error:

Code: Select all

Error: Formulae found in multiple taps: 
 * freecad/freecad/freecad
 * sanelson/freecad/freecad

Please use the fully-qualified name e.g. freecad/freecad/freecad to refer the formula.
Repeating the step with "brew install --only-dependencies freecad/freecad/freecad" gives me a QT related error:

Code: Select all

Error: No available formula with the name "qt@5.6" (dependency of freecad/freecad/freecad)
In formula file: /usr/local/Library/Taps/freecad/homebrew-freecad/qt@5.6.rb
Expected to find class Qt@56, but only found: QtAT56.
Any suggestions?

Thanks,

Brutha
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Compile error - OSX

Post by ian.rees »

The freecad tap supersedes the sanelson one, so you'll need to remove it (and probably anything you've installed from it) first. The command will be something like

Code: Select all

brew untap sanelson/freecad
, but you'll likely get complaints from Homebrew about formula that are dependent on it - uninstall all those. You might need to manually remove that "QtAT56" formula too - I'm not familiar with that one, but it won't satisfy the requirement for "qt@5.6" that the freecad formula currently depends on.

Since older versions of the wiki instructions involved using the sanelson tap - it would be helpful if you could document what you're seeing, and what you do to get it working, in the troubleshooting section there. -Ian-
Brutha
Posts: 221
Joined: Mon May 04, 2015 1:50 pm

Re: Compile error - OSX

Post by Brutha »

Thanks Ian, that fixed the first bit!

I still have the problem with QtAT56 though. I did wonder if the problem is in the file described, as per the error message: https://github.com/FreeCAD/homebrew-fre ... /qt@5.6.rb.

The header is "qt@5.6.rb", but the code at the beginning of the file shows:

Code: Select all

class QtAT56 < Formula
  desc "Version 5 of the Qt framework"
  homepage "https://www.qt.io/"
  url "https://download.qt.io/official_releases/qt/5.6/5.6.2/single/qt-everywhere-opensource-src-5.6.2.tar.xz"
  sha256 "83e61bfc78bba230770704e828fa4d23fe3bbfdcfa4a8f5db37ce149731d89b3"
I.e. the class has the wrong name?

Cheers

Brutha
Brutha
Posts: 221
Joined: Mon May 04, 2015 1:50 pm

Re: Compile error - OSX

Post by Brutha »

OK, seems like I had an old version of Homebrew: I had tried renaming all the QT links to remove the @, which got past the first part, and started updating homebrew, it looks like this @ syntax is a new thing.

Anyway, once it updated, I retapped Freecad and it's downloading the dependencies now, will post again if I finally get it working!
Post Reply