Error during compilation: "error linking Qt application"

Hi - sorry to reopen a silent thread. I am just having the same issue when trying to install mrtrix3 on my new mac (M1 pro).

I installed libpng, libtiff fftw and qt5 through homebrew

however when I configure mrtrix3 it doesn’t find them and will not complete the install. I am aware this was a common issue a will back and should now be resolved, however I have followed the advice I can find and I am still getting the same issue.

I am just wondering if I am missing something fundamental. I have installed mrtrix3 on a mac system before (not M1 chip) and on a linux shell on windows without any issues.

Please find attached my configure log:

REPORT: 
MRtrix build type requested: release version
PATH set to: /opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/qt@5/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/fsl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/binEXEC <<
CMD: sw_vers -productVersion
EXIT: 0
STDOUT:
12.3
>>


REPORT: OS X deployment target: 12.3

REPORT: Detecting OS: darwin

REPORT: Looking for compiler [clang++]:
EXEC <<
CMD: clang++ --version
EXIT: 0
STDOUT:
Apple clang version 13.1.6 (clang-1316.0.21.2)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>>


REPORT: Apple clang version 13.1.6 (clang-1316.0.21.2)

REPORT: Checking for C++11 compliance:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpOVoTBK.cpp:
---

#include <cstddef>
struct Base {
    Base (int);
};
struct Derived : Base {
    using Base::Base;
};

int main() {
  Derived D (int); // check for contructor inheritance
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpOVoTBK.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpOVoTBK.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpOVoTBK.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
>>


REPORT: ok

REPORT: Checking shared library generation:
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpregjCL.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpregjCL.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpregjCL.o -dynamiclib -install_name @rpath/LIBNAME -mmacosx-version-min=12.3 -o libtest.dylib
EXIT: 0
>>


REPORT: ok

REPORT: Detecting pointer size:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpKmJzZK.cpp:
---

#include <iostream>
int main() {
  std::cout << sizeof(void*);
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpKmJzZK.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpKmJzZK.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpKmJzZK.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
8
>>


REPORT: 64 bit

REPORT: Detecting byte order:

REPORT: little-endian

REPORT: Checking for variable-length array support:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpVfPJT8.cpp:
---

int main(int argc, char* argv[]) {
  int x[argc];
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpVfPJT8.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpVfPJT8.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpVfPJT8.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
>>


REPORT: ok

REPORT: Checking for non-POD variable-length array support:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNY7paC.cpp:
---

#include <string>

class X {
  int x;
  double y;
  std::string s;
};

int main(int argc, char* argv[]) {
  X x[argc];
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNY7paC.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNY7paC.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNY7paC.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
>>


REPORT: ok

REPORT: Checking for ::max_align_t:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpYTpWuu.cpp:
---

#include <iostream>
#include <cstddef>
using ::max_align_t;
int main() {
  std::cout << alignof (max_align_t) << " bytes\n";
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpYTpWuu.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpYTpWuu.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpYTpWuu.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
16 bytes
>>


REPORT: 16 bytes

REPORT: Checking for std::max_align_t:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmprmtdnm.cpp:
---

#include <iostream>
#include <cstddef>
using std::max_align_t;
int main() {
  std::cout << alignof (max_align_t) << " bytes\n";
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmprmtdnm.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmprmtdnm.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmprmtdnm.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
16 bytes
>>


REPORT: 16 bytes
EXEC <<
CMD: pkg-config --cflags eigen3
EXIT: 0
STDOUT:
-I/opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3
>>


REPORT: Checking for Eigen3 library:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpq9sNXn.cpp:
---

#include <cstddef>
#include <Eigen/Core>
#include <iostream>

int main (int argc, char* argv[]) {
  std::cout << EIGEN_WORLD_VERSION << "." << EIGEN_MAJOR_VERSION << "." << EIGEN_MINOR_VERSION << "\n";
  return 0;
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -idirafter /opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpq9sNXn.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpq9sNXn.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpq9sNXn.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
3.4.0
>>


REPORT: 3.4.0

REPORT: Checking for Eigen3 Unsupported:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNhZrKj.cpp:
---

#include <iostream>
#include <Eigen/Core>
#include <unsupported/Eigen/SpecialFunctions>

using array_type = Eigen::Array<double, 1, 1>;

int main (int argc, char* argv[]) {
  auto test = Eigen::betainc (array_type::Constant (10.0), array_type::Constant (0.5), array_type::Constant (1.0));
  std::cout << "Present";
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -idirafter /opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3 -DEIGEN_DONT_PARALLELIZE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNhZrKj.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNhZrKj.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNhZrKj.o -mmacosx-version-min=12.3 -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
Present
>>


REPORT: Present
EXEC <<
CMD: pkg-config --cflags zlib
EXIT: 0
>>

EXEC <<
CMD: pkg-config --libs zlib
EXIT: 0
STDOUT:
-lz
>>


REPORT: Checking for zlib compression library:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpy_SQSt.cpp:
---

#include <iostream>
#include <zlib.h>

int main() {
  std::cout << zlibVersion();
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpy_SQSt.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpy_SQSt.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpy_SQSt.o -mmacosx-version-min=12.3 -lz -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
STDOUT:
1.2.11
>>


REPORT: 1.2.11

REPORT: Checking for "JSON for Modern C++" requirements:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNFZ2hX.cpp:
---

#include "file/json.h"
int main (int argc, char* argv[])
{
  nlohmann::json json;
  json["key"] = "value";
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -I/Users/joelysmith/mrtrix3/core /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNFZ2hX.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNFZ2hX.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpNFZ2hX.o -mmacosx-version-min=12.3 -lz -o a.out
EXIT: 0
>>

EXEC <<
CMD: ./a.out
EXIT: 0
>>


REPORT: ok
EXEC <<
CMD: pkg-config --cflags libtiff-4
EXIT: 0
STDOUT:
-I/opt/homebrew/Cellar/libtiff/4.3.0/include
>>

EXEC <<
CMD: pkg-config --libs libtiff-4
EXIT: 0
STDOUT:
-L/opt/homebrew/Cellar/libtiff/4.3.0/lib -ltiff
>>


REPORT: Checking for TIFF library:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpdyF1sQ.cpp:
---

#include <iostream>
#include <tiffio.h>

int main() {
  std::cout << TIFFGetVersion();
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -idirafter /opt/homebrew/Cellar/libtiff/4.3.0/include /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpdyF1sQ.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpdyF1sQ.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpdyF1sQ.o -mmacosx-version-min=12.3 -lz -L/opt/homebrew/Cellar/libtiff/4.3.0/lib -ltiff -o a.out
EXIT: 1
STDERR:
ld: warning: ignoring file /opt/homebrew/Cellar/libtiff/4.3.0/lib/libtiff.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_TIFFGetVersion", referenced from:
      _main in tmpdyF1sQ.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>

error deleting temporary file "a.out": No such file or directory
REPORT: not found - TIFF support disabled
EXEC <<
CMD: pkg-config --cflags libpng
EXIT: 0
STDOUT:
-I/opt/homebrew/Cellar/libpng/1.6.37/include/libpng16
>>

EXEC <<
CMD: pkg-config --libs libpng
EXIT: 0
STDOUT:
-L/opt/homebrew/Cellar/libpng/1.6.37/lib -lpng16 -lz
>>


REPORT: Checking for PNG library:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpsHNEIm.cpp:
---

#include <iostream>
#include <png.h>

int main() {
  std::cout << "Header: " << PNG_LIBPNG_VER_STRING << "; library: " << png_libpng_ver;
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -idirafter /opt/homebrew/Cellar/libpng/1.6.37/include/libpng16 /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpsHNEIm.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpsHNEIm.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpsHNEIm.o -mmacosx-version-min=12.3 -lz -L/opt/homebrew/Cellar/libpng/1.6.37/lib -lpng16 -lz -o a.out
EXIT: 1
STDERR:
ld: warning: ignoring file /opt/homebrew/Cellar/libpng/1.6.37/lib/libpng16.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_png_get_header_ver", referenced from:
      _main in tmpsHNEIm.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>

error deleting temporary file "a.out": No such file or directory
REPORT: not found - PNG support disabled
EXEC <<
CMD: pkg-config --cflags fftw3
EXIT: 0
STDOUT:
-I/opt/homebrew/Cellar/fftw/3.3.10/include
>>

EXEC <<
CMD: pkg-config --libs fftw3
EXIT: 0
STDOUT:
-L/opt/homebrew/Cellar/fftw/3.3.10/lib -lfftw3
>>


REPORT: Checking for FFTW library:

COMPILE /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpCwDN5H.cpp:
---

#include <iostream>
#include <fftw3.h>

int main() {
  std::cout << fftw_version << "\n";
  return (0);
}

---
EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -idirafter /opt/homebrew/Cellar/fftw/3.3.10/include /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpCwDN5H.cpp -o /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpCwDN5H.o
EXIT: 0
>>

EXEC <<
CMD: clang++ /var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpCwDN5H.o -mmacosx-version-min=12.3 -lz -L/opt/homebrew/Cellar/fftw/3.3.10/lib -lfftw3 -o a.out
EXIT: 1
STDERR:
ld: warning: ignoring file /opt/homebrew/Cellar/fftw/3.3.10/lib/libfftw3.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_fftw_version", referenced from:
      _main in tmpCwDN5H.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>

error deleting temporary file "a.out": No such file or directory
REPORT: not found - FFTW support disabled

REPORT: Checking for Qt moc:
EXEC <<
CMD: moc -v
EXIT: 0
STDOUT:
moc 5.15.3
>>


REPORT: moc (version 5.15.3)

REPORT: Checking for Qt qmake:
EXEC <<
CMD: qmake -v
EXIT: 0
STDOUT:
QMake version 3.1
Using Qt version 5.15.3 in /opt/homebrew/Cellar/qt@5/5.15.3/lib
>>


REPORT: qmake (version 5.15.3)

REPORT: Checking for Qt rcc:
EXEC <<
CMD: rcc -v
EXIT: 0
STDOUT:
rcc 5.15.3
>>


REPORT: rcc (version 5.15.3)

REPORT: Checking for Qt:

source file "qt.h":
---
#include <QObject>

class Foo: public QObject {
  Q_OBJECT;
  public:
    Foo();
    ~Foo();
  public slots:
    void setValue(int value);
  signals:
    void valueChanged (int newValue);
  private:
    int value_;
};
---

source file "qt.cpp":
---
#include <iostream>
#include "qt.h"

Foo::Foo() : value_ (42) { connect (this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int))); }

Foo::~Foo() { std::cout << qVersion() << "\n"; }

void Foo::setValue (int value) { value_ = value; }

int main() { Foo f; }
---

project file "qt.pro":
---
CONFIG += c++11
QT += core gui opengl svg network
HEADERS += qt.h
SOURCES += qt.cpp
QMAKE_MACOSX_DEPLOYMENT_TARGET = 12.3
---
EXEC <<
CMD: qmake
EXIT: 0
STDOUT:
Info: creating stash file /private/var/folders/sl/dzv4sst15d9_77kv36d0rtj40000gn/T/tmpXa5C6c/.qmake.stash
STDERR:
Project WARNING: Qt has only been tested with version 11.0 of the platform SDK, you're using .
Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
Project WARNING: the 12.3 SDK you are opting in to new features that Qt has not been prepared for.
Project WARNING: Please downgrade the SDK you use to build your app to version 11.0, or configure
Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
>>

reading Qt parameters from file 'Makefile'... ok
  qt_defines: ['-DQT_NO_DEBUG', '-DQT_OPENGL_LIB', '-DQT_SVG_LIB', '-DQT_WIDGETS_LIB', '-DQT_GUI_LIB', '-DQT_NETWORK_LIB', '-DQT_CORE_LIB']
  qt_includes: ['-I.', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtOpenGL.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtSvg.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtGui.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtNetwork.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/lib/QtCore.framework/Headers', '-I.', '-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers', '-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers', '-I/opt/homebrew/Cellar/qt@5/5.15.3/mkspecs/macx-clang-arm64', '-F/opt/homebrew/Cellar/qt@5/5.15.3/lib']
  qt_libs: ['$(SUBLIBS)', '-F/opt/homebrew/Cellar/qt@5/5.15.3/lib', '-framework', 'QtOpenGL', '-framework', 'QtSvg', '-framework', 'QtWidgets', '-framework', 'QtGui', '-framework', 'AppKit', '-framework', 'Metal', '-framework', 'QtNetwork', '-framework', 'QtCore', '-framework', 'DiskArbitration', '-framework', 'IOKit', '-framework', 'OpenGL', '-framework', 'AGL']
EXEC <<
CMD: moc qt.h -o qt_moc.cpp
EXIT: 0
>>

EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtOpenGL.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtSvg.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtGui.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtNetwork.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtCore.framework/Headers -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/mkspecs/macx-clang-arm64 -F/opt/homebrew/Cellar/qt@5/5.15.3/lib qt.cpp -o qt.o
EXIT: 0
>>

EXEC <<
CMD: clang++ -c -std=c++11 -DMRTRIX_BUILD_TYPE="release version" -DMRTRIX_MACOSX -fPIC -mmacosx-version-min=12.3 -DMRTRIX_WORD64 -DMRTRIX_HAVE_EIGEN_UNSUPPORTED_SPECIAL_FUNCTIONS -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtOpenGL.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtSvg.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtGui.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtNetwork.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtCore.framework/Headers -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -idirafter /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -idirafter /opt/homebrew/Cellar/qt@5/5.15.3/mkspecs/macx-clang-arm64 -F/opt/homebrew/Cellar/qt@5/5.15.3/lib qt_moc.cpp -o qt_moc.o
EXIT: 0
>>

EXEC <<
CMD: clang++ -mmacosx-version-min=12.3 -lz qt_moc.o qt.o -o qt -F/opt/homebrew/Cellar/qt@5/5.15.3/lib -framework QtOpenGL -framework QtSvg -framework QtWidgets -framework QtGui -framework AppKit -framework Metal -framework QtNetwork -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
EXIT: 1
STDERR:
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtOpenGL.framework/QtOpenGL, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtSvg.framework/QtSvg, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtWidgets.framework/QtWidgets, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtGui.framework/QtGui, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtNetwork.framework/QtNetwork, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/qt@5/5.15.3/lib/QtCore.framework/QtCore, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "QMetaObject::Connection::~Connection()", referenced from:
      Foo::Foo() in qt.o
  "QMetaObject::activate(QObject*, QMetaObject const*, int, void**)", referenced from:
      Foo::valueChanged(int) in qt_moc.o
  "QObject::childEvent(QChildEvent*)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::timerEvent(QTimerEvent*)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::customEvent(QEvent*)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::eventFilter(QObject*, QEvent*)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::qt_metacall(QMetaObject::Call, int, void**)", referenced from:
      Foo::qt_metacall(QMetaObject::Call, int, void**) in qt_moc.o
  "QObject::qt_metacast(char const*)", referenced from:
      Foo::qt_metacast(char const*) in qt_moc.o
  "QObject::connectNotify(QMetaMethod const&)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::disconnectNotify(QMetaMethod const&)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::staticMetaObject", referenced from:
      Foo::staticMetaObject in qt_moc.o
  "QObject::event(QEvent*)", referenced from:
      vtable for Foo in qt_moc.o
  "QObject::connect(QObject const*, char const*, QObject const*, char const*, Qt::ConnectionType)", referenced from:
      Foo::Foo() in qt.o
  "QObject::QObject(QObject*)", referenced from:
      Foo::Foo() in qt.o
  "QObject::~QObject()", referenced from:
      Foo::Foo() in qt.o
      Foo::~Foo() in qt.o
  "QObjectData::dynamicMetaObject() const", referenced from:
      Foo::metaObject() const in qt_moc.o
  "typeinfo for QObject", referenced from:
      typeinfo for Foo in qt_moc.o
  "_qVersion", referenced from:
      Foo::~Foo() in qt.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>


ERROR: error linking Qt application!

  See the file 'configure.log' for details. If this doesn't help and you need
  further assistance, please post on the MRtrix3 community forum
  (http://community.mrtrix.org/), and make sure to include the full contents of
  the 'configure.log' file.

Thanks for all the support,
Joely