Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation failure on macOS - error linking qt #1094

Closed
maxpietsch opened this issue Aug 14, 2017 · 1 comment
Closed

compilation failure on macOS - error linking qt #1094

maxpietsch opened this issue Aug 14, 2017 · 1 comment

Comments

@maxpietsch
Copy link
Member

maxpietsch commented Aug 14, 2017

continuing the discussion from the forum:

The problem is that installation on macOS via default ./configure fails if homebrew's libtiff and or fftw libraries are installed. Using homebrew's recipe works:

brew tap MRtrix3/mrtrix3
brew install mrtrix3

I also note that the configure script is running slightly differently - did you add the -v option yourself, or are the versions being compiled somehow different?

@jdtournier Yes, for the default build I ran:

export LDFLAGS=-v 
./configure

I also tried deployment targets 10.12 and 10.10 without success. Log is here.

export MACOSX_DEPLOYMENT_TARGET=10.12
export QMAKE_MACOSX_DEPLOYMENT_TARGET=10.12
./configure

default PATH:

/Users/mp/mrtrix3/bin:/Users/mp/.pyenv/pyenv/bin:/usr/local/opt/qt5/bin:/usr/local/fsl/bin:/Users/mp/mrtrix3/release/scripts:/Users/mp/mrtrix3/release/bin:/usr/local/bin:/usr/local/opt/coreutils/libexec/gnubin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Library/TeX/texbin

PATH in homebrew's build environment:

PATH=/usr/local/opt/python/libexec/bin:/usr/local/opt/python/bin:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/pkg-config/bin:/usr/local/opt/qt/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/qt5/bin
...
HOMEBREW_INCLUDE_PATHS=/usr/local/opt/qt/include
HOMEBREW_LIBRARY_PATHS=/usr/local/opt/qt/lib:/usr/local/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries

Here is the full homebrew environment, here the default one. Not sure how those get interpreted but this might be helpfull.

If I use Homebrew's path for the standard installation, ./configure fails as it can not find clang. Removing /usr/local/Homebrew/Library/Homebrew/shims/super brings us back to the linking error.

I think Homebrew's compiler flags are set in /usr/local/Homebrew/Library/Homebrew/shims/super/cc which I've uploaded: here.

ls -FGlAhp /usr/local/Homebrew/Library/Homebrew/shims/super
total 212K
-rwxr-xr-x 1 mp  160 Sep 20  2016 ant
-rwxr-xr-x 1 mp  407 Sep 20  2016 apr-1-config
-rwxr-xr-x 1 mp   78 Sep 20  2016 bsdmake
lrwxr-xr-x 1 mp    2 Sep 20  2016 c++ -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 c89 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 c99 -> cc
-rwxr-xr-x 1 mp 9.6K Mar 30 21:10 cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 clang -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 clang++ -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 cpp -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++ -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.2 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.3 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.4 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.5 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.6 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.7 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.8 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-4.9 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-5 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 g++-6 -> cc
lrwxr-xr-x 1 mp    2 Aug  5 13:07 g++-7 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.2 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.3 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.4 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.5 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.6 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.7 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.8 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-4.9 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-5 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 gcc-6 -> cc
lrwxr-xr-x 1 mp    2 Aug  5 13:07 gcc-7 -> cc
lrwxr-xr-x 1 mp   10 Sep 20  2016 git -> ../scm/git
lrwxr-xr-x 1 mp    4 Sep 20  2016 gmake -> make
lrwxr-xr-x 1 mp    2 Sep 20  2016 i686-apple-darwin11-llvm-g++-4.2 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 i686-apple-darwin11-llvm-gcc-4.2 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 ld -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 llvm-g++ -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 llvm-g++-4.2 -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 llvm-gcc -> cc
lrwxr-xr-x 1 mp    2 Sep 20  2016 llvm-gcc-4.2 -> cc
lrwxr-xr-x 1 mp    2 Feb 22 21:52 llvm_clang -> cc
lrwxr-xr-x 1 mp    2 Feb 22 21:52 llvm_clang++ -> cc
-rwxr-xr-x 1 mp  111 Aug  5 13:07 make
-rwxr-xr-x 1 mp   99 Sep 20  2016 mig
-rwxr-xr-x 1 mp  264 Sep 20  2016 pod2man
-rwxr-xr-x 1 mp  184 Sep 20  2016 sed
lrwxr-xr-x 1 mp   10 Sep 20  2016 svn -> ../scm/svn
-rwxr-xr-x 1 mp 1.2K Sep 20  2016 xcrun
@jdtournier
Copy link
Member

Seems this will be resolved once #1090 is merged in - closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants