qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
25.89k stars 3.82k forks source link

configure fails to detect qmake for QT 6.4.1_1 & QMake version 3.1 #18301

Closed pkumarg closed 1 year ago

pkumarg commented 1 year ago

qBittorrent & operating system versions

Operating system: macOs Ventura 13.1 Qt: 6.4.1

What is the problem?

I'm trying to compile it for mac M1, but unfortunately after installing latest QT with brew, configure fails to detect qmake. While I can see qmake is install and is in PATH. See output from my terminal:

[pkumarg@KUMAR-MBA qBittorrent]qmake --version
QMake version 3.1
Using Qt version 6.4.1 in /opt/homebrew/lib

Last lines from configure output

checking for Qt5 qmake >= 5.15.2... not found
configure: error: Could not find qmake

I tried installing qt5 from brew, but then it doesn't get qmake at all.

If someone who has worked with configure scripts, can fix this configure script for latest QT on mac M1 latest updated, it would be very nice for all contributors from mac M1 area.

I can fix build errors which will come later in C/C++.

Steps to reproduce

  1. You should be using latest update Mac M1 (may reproduce on M2 too), with latest updates macOS Ventura 13.1.
  2. Fetch latest source as of 27 Dec 2022 for qBittorrent.
  3. Run ./configure

Additional context

No response

Log(s) & preferences file(s)

config.log output:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by qbittorrent configure v4.6.0alpha1, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = KUMAR-MBA.local
uname -m = arm64
uname -r = 22.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103

/usr/bin/uname -p = arm
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
Kernel configured for up to 8 processors.
8 processors are physically available.
8 processors are logically available.
Processor type: arm64e (ARM64E)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 406 tasks, 2111 threads, 8 processors
Load average: 2.37, Mach factor: 5.62
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /Library/Frameworks/Python.framework/Versions/3.10/bin/
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /usr/local/bin/
PATH: /System/Cryptexes/App/usr/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: /Applications/VMware Fusion Tech Preview.app/Contents/Public/
PATH: /Library/Apple/usr/bin/

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2460: looking for aux files: missing install-sh config.guess config.sub compile
configure:2473:  trying ./build-aux/
configure:2502:   ./build-aux/missing found
configure:2484:   ./build-aux/install-sh found
configure:2502:   ./build-aux/config.guess found
configure:2502:   ./build-aux/config.sub found
configure:2502:   ./build-aux/compile found
configure:2679: checking for gcc
configure:2700: found /usr/bin/gcc
configure:2711: result: gcc
configure:3064: checking for C compiler version
configure:3073: gcc --version >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3084: $? = 0
configure:3073: gcc -v >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3084: $? = 0
configure:3073: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3084: $? = 1
configure:3073: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3084: $? = 1
configure:3073: gcc -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:3084: $? = 1
configure:3104: checking whether the C compiler works
configure:3126: gcc    conftest.c  >&5
configure:3130: $? = 0
configure:3180: result: yes
configure:3183: checking for C compiler default output file name
configure:3185: result: a.out
configure:3191: checking for suffix of executables
configure:3198: gcc -o conftest    conftest.c  >&5
configure:3202: $? = 0
configure:3225: result: 
configure:3247: checking whether we are cross compiling
configure:3255: gcc -o conftest    conftest.c  >&5
configure:3259: $? = 0
configure:3266: ./conftest
configure:3270: $? = 0
configure:3285: result: no
configure:3290: checking for suffix of object files
configure:3313: gcc -c   conftest.c >&5
configure:3317: $? = 0
configure:3339: result: o
configure:3343: checking whether the compiler supports GNU C
configure:3363: gcc -c   conftest.c >&5
configure:3363: $? = 0
configure:3373: result: yes
configure:3384: checking whether gcc accepts -g
configure:3405: gcc -c -g  conftest.c >&5
configure:3405: $? = 0
configure:3449: result: yes
configure:3469: checking for gcc option to enable C11 features
configure:3484: gcc  -c   conftest.c >&5
configure:3484: $? = 0
configure:3502: result: none needed
configure:3623: checking whether gcc understands -c and -o together
configure:3646: gcc -c conftest.c -o conftest2.o
configure:3649: $? = 0
configure:3646: gcc -c conftest.c -o conftest2.o
configure:3649: $? = 0
configure:3661: result: yes
configure:3747: checking for g++
configure:3768: found /usr/bin/g++
configure:3779: result: g++
configure:3806: checking for C++ compiler version
configure:3815: g++ --version >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3826: $? = 0
configure:3815: g++ -v >&5
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3826: $? = 0
configure:3815: g++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3826: $? = 1
configure:3815: g++ -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3826: $? = 1
configure:3830: checking whether the compiler supports GNU C++
configure:3850: g++ -c   conftest.cpp >&5
configure:3850: $? = 0
configure:3860: result: yes
configure:3871: checking whether g++ accepts -g
configure:3892: g++ -c -g  conftest.cpp >&5
configure:3892: $? = 0
configure:3936: result: yes
configure:3956: checking for g++ option to enable C++11 features
configure:3971: g++  -c   conftest.cpp >&5
conftest.cpp:55:3: error: "Compiler does not advertise C++11 conformance"
# error "Compiler does not advertise C++11 conformance"
  ^
conftest.cpp:60:3: error: unknown type name 'constexpr'
  constexpr int get_val() { return 20; }
  ^
conftest.cpp:72:17: error: delegating constructors are permitted only in C++11
    delegate(): delegate(2354) {}
                ^~~~~~~~
conftest.cpp:83:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
    virtual int getval() override final { return this->n * 2; }
                         ^
conftest.cpp:83:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions]
    virtual int getval() override final { return this->n * 2; }
                                  ^
conftest.cpp:90:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions]
    nocopy() = default;
               ^
conftest.cpp:91:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
    nocopy(const nocopy&) = delete;
                            ^
conftest.cpp:92:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
    nocopy & operator=(const nocopy&) = delete;
                                        ^
conftest.cpp:104:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  template <typename V> auto sum(V first) -> V
                        ^
conftest.cpp:104:25: error: 'auto' not allowed in function return type
  template <typename V> auto sum(V first) -> V
                        ^~~~
conftest.cpp:104:42: error: expected ';' at end of declaration
  template <typename V> auto sum(V first) -> V
                                         ^
                                         ;
conftest.cpp:104:43: error: cannot use arrow operator on a type
  template <typename V> auto sum(V first) -> V
                                          ^
conftest.cpp:108:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions]
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
                                ^
conftest.cpp:108:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
                                          ^
conftest.cpp:108:43: error: 'auto' not allowed in function return type
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
                                          ^~~~
conftest.cpp:108:74: error: expected ';' at end of declaration
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
                                                                         ^
                                                                         ;
conftest.cpp:108:75: error: cannot use arrow operator on a type
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
                                                                          ^
conftest.cpp:132:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto a1 = 6538;
  ^
conftest.cpp:133:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto a2 = 48573953.4;
  ^
conftest.cpp:134:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto a3 = "String literal";
  ^
conftest.cpp:137:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  for (auto i = a3; *i; ++i) { total += *i; }
       ^
conftest.cpp:153:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  for (auto &x : array) { x += 23; }
       ^
conftest.cpp:153:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
  for (auto &x : array) { x += 23; }
               ^
conftest.cpp:158:17: error: expected expression
  assert (eval ([](int x) { return x*2; }, 21) == 42);
                ^
conftest.cpp:160:17: error: expected expression
  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
                ^
conftest.cpp:162:17: error: expected expression
  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
                ^
conftest.cpp:168:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto a = sum(1);
  ^
conftest.cpp:168:12: error: no matching function for call to 'sum'
  auto a = sum(1);
           ^~~
conftest.cpp:169:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto b = sum(1, 2);
  ^
conftest.cpp:169:12: error: no matching function for call to 'sum'
  auto b = sum(1, 2);
           ^~~
conftest.cpp:170:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
  auto c = sum(1.0, 2.0, 3.0);
  ^
conftest.cpp:170:12: error: no matching function for call to 'sum'
  auto c = sum(1.0, 2.0, 3.0);
           ^~~
conftest.cpp:175:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse]
  cxx11test::delegate d2();
                        ^~
conftest.cpp:175:25: note: remove parentheses to declare a variable
  cxx11test::delegate d2();
                        ^~
conftest.cpp:188:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'?
  test_template<::test_template<int>> v(test_template<int>(12));
               ^~~
               < ::
conftest.cpp:188:36: error: a space is required between consecutive right angle brackets (use '> >')
  test_template<::test_template<int>> v(test_template<int>(12));
                                   ^~
                                   > >
conftest.cpp:192:22: error: use of undeclared identifier 'u8'
  char const *utf8 = u8"UTF-8 string \u2500";
                     ^
conftest.cpp:192:24: error: expected ';' at end of declaration
  char const *utf8 = u8"UTF-8 string \u2500";
                       ^
                       ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
18 warnings and 20 errors generated.
configure:3971: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "qbittorrent"
| #define PACKAGE_TARNAME "qbittorrent"
| #define PACKAGE_VERSION "v4.6.0alpha1"
| #define PACKAGE_STRING "qbittorrent v4.6.0alpha1"
| #define PACKAGE_BUGREPORT "bugs.qbittorrent.org"
| #define PACKAGE_URL "https://www.qbittorrent.org/"
| /* end confdefs.h.  */
| 
| // Does the compiler advertise C++98 conformance?
| #if !defined __cplusplus || __cplusplus < 199711L
| # error "Compiler does not advertise C++98 conformance"
| #endif
| 
| // These inclusions are to reject old compilers that
| // lack the unsuffixed header files.
| #include <cstdlib>
| #include <exception>
| 
| // <cassert> and <cstring> are *not* freestanding headers in C++98.
| extern void assert (int);
| namespace std {
|   extern int strcmp (const char *, const char *);
| }
| 
| // Namespaces, exceptions, and templates were all added after "C++ 2.0".
| using std::exception;
| using std::strcmp;
| 
| namespace {
| 
| void test_exception_syntax()
| {
|   try {
|     throw "test";
|   } catch (const char *s) {
|     // Extra parentheses suppress a warning when building autoconf itself,
|     // due to lint rules shared with more typical C programs.
|     assert (!(strcmp) (s, "test"));
|   }
| }
| 
| template <typename T> struct test_template
| {
|   T const val;
|   explicit test_template(T t) : val(t) {}
|   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
| };
| 
| } // anonymous namespace
| 
| 
| // Does the compiler advertise C++ 2011 conformance?
| #if !defined __cplusplus || __cplusplus < 201103L
| # error "Compiler does not advertise C++11 conformance"
| #endif
| 
| namespace cxx11test
| {
|   constexpr int get_val() { return 20; }
| 
|   struct testinit
|   {
|     int i;
|     double d;
|   };
| 
|   class delegate
|   {
|   public:
|     delegate(int n) : n(n) {}
|     delegate(): delegate(2354) {}
| 
|     virtual int getval() { return this->n; };
|   protected:
|     int n;
|   };
| 
|   class overridden : public delegate
|   {
|   public:
|     overridden(int n): delegate(n) {}
|     virtual int getval() override final { return this->n * 2; }
|   };
| 
|   class nocopy
|   {
|   public:
|     nocopy(int i): i(i) {}
|     nocopy() = default;
|     nocopy(const nocopy&) = delete;
|     nocopy & operator=(const nocopy&) = delete;
|   private:
|     int i;
|   };
| 
|   // for testing lambda expressions
|   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
|   {
|     return f(v);
|   }
| 
|   // for testing variadic templates and trailing return types
|   template <typename V> auto sum(V first) -> V
|   {
|     return first;
|   }
|   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
|   {
|     return first + sum(rest...);
|   }
| }
| 
| 
| int
| main (int argc, char **argv)
| {
|   int ok = 0;
|   
|   assert (argc);
|   assert (! argv[0]);
| {
|   test_exception_syntax ();
|   test_template<double> tt (2.0);
|   assert (tt.add (4) == 6.0);
|   assert (true && !false);
| }
| 
|   
| {
|   // Test auto and decltype
|   auto a1 = 6538;
|   auto a2 = 48573953.4;
|   auto a3 = "String literal";
| 
|   int total = 0;
|   for (auto i = a3; *i; ++i) { total += *i; }
| 
|   decltype(a2) a4 = 34895.034;
| }
| {
|   // Test constexpr
|   short sa[cxx11test::get_val()] = { 0 };
| }
| {
|   // Test initializer lists
|   cxx11test::testinit il = { 4323, 435234.23544 };
| }
| {
|   // Test range-based for
|   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
|                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
|   for (auto &x : array) { x += 23; }
| }
| {
|   // Test lambda expressions
|   using cxx11test::eval;
|   assert (eval ([](int x) { return x*2; }, 21) == 42);
|   double d = 2.0;
|   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
|   assert (d == 5.0);
|   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
|   assert (d == 5.0);
| }
| {
|   // Test use of variadic templates
|   using cxx11test::sum;
|   auto a = sum(1);
|   auto b = sum(1, 2);
|   auto c = sum(1.0, 2.0, 3.0);
| }
| {
|   // Test constructor delegation
|   cxx11test::delegate d1;
|   cxx11test::delegate d2();
|   cxx11test::delegate d3(45);
| }
| {
|   // Test override and final
|   cxx11test::overridden o1(55464);
| }
| {
|   // Test nullptr
|   char *c = nullptr;
| }
| {
|   // Test template brackets
|   test_template<::test_template<int>> v(test_template<int>(12));
| }
| {
|   // Unicode literals
|   char const *utf8 = u8"UTF-8 string \u2500";
|   char16_t const *utf16 = u"UTF-8 string \u2500";
|   char32_t const *utf32 = U"UTF-32 string \u2500";
| }
| 
|   return ok;
| }
| 
configure:3989: result: none needed
configure:4053: checking for a sed that does not truncate output
configure:4123: result: /usr/bin/sed
configure:4140: checking build system type
configure:4155: result: arm-apple-darwin22.2.0
configure:4175: checking host system type
configure:4189: result: arm-apple-darwin22.2.0
configure:4226: checking for a BSD-compatible install
configure:4299: result: /usr/bin/install -c
configure:4310: checking whether build environment is sane
configure:4365: result: yes
configure:4520: checking for a race-free mkdir -p
configure:4564: result: ./build-aux/install-sh -c -d
configure:4571: checking for gawk
configure:4606: result: no
configure:4571: checking for mawk
configure:4606: result: no
configure:4571: checking for nawk
configure:4606: result: no
configure:4571: checking for awk
configure:4592: found /usr/bin/awk
configure:4603: result: awk
configure:4614: checking whether make sets $(MAKE)
configure:4637: result: yes
configure:4659: checking whether make supports the include directive
configure:4674: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:4677: $? = 0
configure:4696: result: yes (GNU style)
configure:4731: checking whether make supports nested variables
configure:4749: result: yes
configure:4830: checking dependency style of gcc
configure:4942: result: none
configure:4959: checking dependency style of g++
configure:5071: result: none
configure:5191: checking whether to enable specific tweaks for current host "darwin22.2.0"
configure:5195: result: yes
configure:5284: checking for pkg-config
configure:5307: found /opt/homebrew/bin/pkg-config
configure:5319: result: /opt/homebrew/bin/pkg-config
configure:5344: checking pkg-config is at least version 0.23
configure:5347: result: yes
configure:5361: checking whether to enable the Debug build
configure:5365: result: no
configure:5380: checking whether to enable the stacktrace feature
configure:5397: g++ -c   conftest.cpp >&5
configure:5397: $? = 0
configure:5399: result: yes
configure:5414: checking whether to enable the GUI
configure:5418: result: yes
configure:5433: checking whether to install the systemd service file
configure:5441: result: no
configure:5450: checking whether to enable the WebUI
configure:5454: result: yes
configure:5468: $PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2"
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Qt5Core' found
configure:5471: $? = 1
configure:5513: checking for Qt5 qmake >= 5.15.2
configure:5520: result: not found
configure:5527: error: Could not find qmake

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=arm-apple-darwin22.2.0
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_QT_QMAKE_set=
ac_cv_env_QT_QMAKE_value=
ac_cv_env_Qt5Svg_CFLAGS_set=
ac_cv_env_Qt5Svg_CFLAGS_value=
ac_cv_env_Qt5Svg_LIBS_set=
ac_cv_env_Qt5Svg_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_libtorrent_CFLAGS_set=
ac_cv_env_libtorrent_CFLAGS_value=
ac_cv_env_libtorrent_LIBS_set=
ac_cv_env_libtorrent_LIBS_value=
ac_cv_env_openssl_CFLAGS_set=
ac_cv_env_openssl_CFLAGS_value=
ac_cv_env_openssl_LIBS_set=
ac_cv_env_openssl_LIBS_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_zlib_CFLAGS_set=
ac_cv_env_zlib_CFLAGS_value=
ac_cv_env_zlib_LIBS_set=
ac_cv_env_zlib_LIBS_value=
ac_cv_host=arm-apple-darwin22.2.0
ac_cv_objext=o
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/opt/homebrew/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_11=no
ac_cv_prog_cxx_g=yes
ac_cv_prog_cxx_stdcxx=
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none
am_cv_CXX_dependencies_compiler_type=none
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} '\''/Users/pkumarg/qBittorrent/build-aux/missing'\'' aclocal-1.16'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} '\''/Users/pkumarg/qBittorrent/build-aux/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/Users/pkumarg/qBittorrent/build-aux/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/Users/pkumarg/qBittorrent/build-aux/missing'\'' automake-1.16'
AWK='awk'
BOOST_CPPFLAGS=''
BOOST_LDFLAGS=''
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS=''
CPPFLAGS=''
CXX='g++'
CXXDEPMODE='depmode=none'
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EXEEXT=''
EXPAND_BINDIR=''
EXPAND_DATADIR=''
EXPAND_MANDIR=''
EXPAND_PREFIX=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} '\''/Users/pkumarg/qBittorrent/build-aux/missing'\'' makeinfo'
MKDIR_P='./build-aux/install-sh -c -d'
OBJEXT='o'
PACKAGE='qbittorrent'
PACKAGE_BUGREPORT='bugs.qbittorrent.org'
PACKAGE_NAME='qbittorrent'
PACKAGE_STRING='qbittorrent v4.6.0alpha1'
PACKAGE_TARNAME='qbittorrent'
PACKAGE_URL='https://www.qbittorrent.org/'
PACKAGE_VERSION='v4.6.0alpha1'
PATH_SEPARATOR=':'
PKG_CONFIG='/opt/homebrew/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
QBT_ADD_CONFIG=' release stacktrace'
QBT_ADD_DEFINES=''
QBT_CC='gcc'
QBT_CONF_EXTRA_CFLAGS=''
QBT_CONF_INCLUDES=''
QBT_CXX='g++'
QBT_REMOVE_CONFIG=' debug nogui systemd nowebui'
QBT_REMOVE_DEFINES=''
QT_QMAKE=''
Qt5Svg_CFLAGS=''
Qt5Svg_LIBS=''
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='v4.6.0alpha1'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE='#'
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='arm-apple-darwin22.2.0'
build_alias=''
build_cpu='arm'
build_os='darwin22.2.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-apple-darwin22.2.0'
host_alias=''
host_cpu='arm'
host_os='darwin22.2.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/pkumarg/qBittorrent/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libtorrent_CFLAGS=''
libtorrent_LIBS=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
openssl_CFLAGS=''
openssl_LIBS=''
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
zlib_CFLAGS=''
zlib_LIBS=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "qbittorrent"
#define PACKAGE_TARNAME "qbittorrent"
#define PACKAGE_VERSION "v4.6.0alpha1"
#define PACKAGE_STRING "qbittorrent v4.6.0alpha1"
#define PACKAGE_BUGREPORT "bugs.qbittorrent.org"
#define PACKAGE_URL "https://www.qbittorrent.org/"
#define PACKAGE "qbittorrent"
#define VERSION "v4.6.0alpha1"

configure: exit 1

./configure command output:

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... arm-apple-darwin22.2.0
checking host system type... arm-apple-darwin22.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether to enable specific tweaks for current host "darwin22.2.0"... yes
checking for pkg-config... /opt/homebrew/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the stacktrace feature... yes
checking whether to enable the GUI... yes
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking for Qt5 qmake >= 5.15.2... not found
Kjuly commented 1 year ago

Try

$ brew install qt5
$ brew link qt5 --force

It works for me. I think qt6 should works as well.

REF: "How to install Qt on MacOS X Sierra and add qmake on terminal"

pkumarg commented 1 year ago

Thanks it works for me, though now I have to solve same for boost libs. :-) By default mac installs QT6.x.x ,, may be current configure is not good enough to try with upper versions, which ideally it should try.

Kjuly commented 1 year ago

You're welcome. Yeah, qt6 might be a good choice, but I guess it'll lead some unexpected cases to handle with the major version upgrading.

By the way, it's better to close the issue if this problem was solved. It'll save maintainers' time from reviewing such issues. ;)

pkumarg commented 1 year ago

Hi,

So I'll close this for now. Anyway I installed all requirements but still it could compile as platform is changed from 12 to 13 for current mac m1 software. I'm very new to Apple system, so I won't bother here until I know more.

Thanks for your help :-)