You are here

4.3.0 Support For QT5

I attempted to build qjackctl and the confiqure failed as follows:

bsdtar -p -o -C /usr/ports/work/qjackctl/src -xf /usr/ports/distfiles/qjackctl/qjackctl-0.4.3.tar.gz
+ build
+ cd qjackctl-0.4.3
+ ./configure --prefix=/usr --with-qt5=/usr/share/qt5 --enable-stacktrace
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for qmake-qt5... no
checking for qmake... /usr/share/qt5/bin/qmake
checking for qmake... (cached) /usr/share/qt5/bin/qmake
checking for Qt library version >= 5.1... no; Qt 5.1 or greater is required
=======> ERROR: Building '/usr/ports/local/qjackctl/pkgsb3/qjackctl#0.4.3-1.pkg.tar.gz' failed.

Is qt5 supported? The environment includes CMAKE_PREFIX_PATH=/usr/share/qt5 as recommended by the qt folks.

Forums: 
rncbc's picture

please run and show what gives

/usr/share/qt5/bin/qmake -version

apparently it doesn't comply with a Qt version >= 5.1.

byee

dlcusa's picture

QMake version 3.0
Using Qt version 5.7.0 in /usr/share/qt5/lib

rncbc's picture

well Qt5.7 is too new for me--i'd stick with Qt5.6 LTS for now.

may you tell the output from the following commands (if needed, prefix /usr/share/qt5/bin if not in PATH:

qmake -query QT_VERSION
qmake -query QT_INSTALL_BINS
qmake -query QT_INSTALL_HEADERS
qmake -query QT_INSTALL_LIBS

also and more importantly, can you upload the file config.log that results from configure step?

what happens if you drop the --with-qt5=... argument from configure command line?

cheers

dlcusa's picture

root@dlcz[ZD]~ # qmake -query QT_VERSION
5.7.0
root@dlcz[ZD]~ # qmake -query QT_INSTALL_BINS
/usr/share/qt5/bin
root@dlcz[ZD]~ # qmake -query QT_INSTALL_HEADERS
/usr/share/qt5/include
root@dlcz[ZD]~ # qmake -query QT_INSTALL_LIBS
/usr/share/qt5/lib
root@dlcz[ZD]~ # cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by QjackCtl configure 0.4.3, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --with-qt5=/usr/share/qt5 --enable-stacktrace

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

hostname = dlcz
uname -m = x86_64
uname -r = 4.4.8_z8
uname -s = Linux
uname -v = #1 SMP Mon Apr 25 20:14:20 UTC 2016

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /com/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /opt/sbin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin


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

configure:2498: checking for gcc
configure:2514: found /usr/bin/gcc
configure:2525: result: gcc
configure:2754: checking for C compiler version
configure:2763: gcc --version >&5
gcc (CRUX-x86_64-multilib) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2774: $? = 0
configure:2763: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.4.0/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-system-zlib --enable-multilib --with-pkgversion=CRUX-x86_64-multilib
Thread model: posix
gcc version 5.4.0 (CRUX-x86_64-multilib) 
configure:2774: $? = 0
configure:2763: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2774: $? = 1
configure:2763: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2774: $? = 1
configure:2794: checking whether the C compiler works
configure:2816: gcc -g -O1 -march=native -mtune=native -pipe   conftest.c  >&5
configure:2820: $? = 0
configure:2868: result: yes
configure:2871: checking for C compiler default output file name
configure:2873: result: a.out
configure:2879: checking for suffix of executables
configure:2886: gcc -o conftest -g -O1 -march=native -mtune=native -pipe   conftest.c  >&5
configure:2890: $? = 0
configure:2912: result: 
configure:2934: checking whether we are cross compiling
configure:2942: gcc -o conftest -g -O1 -march=native -mtune=native -pipe   conftest.c  >&5
configure:2946: $? = 0
configure:2953: ./conftest
configure:2957: $? = 0
configure:2972: result: no
configure:2977: checking for suffix of object files
configure:2999: gcc -c -g -O1 -march=native -mtune=native -pipe  conftest.c >&5
configure:3003: $? = 0
configure:3024: result: o
configure:3028: checking whether we are using the GNU C compiler
configure:3047: gcc -c -g -O1 -march=native -mtune=native -pipe  conftest.c >&5
configure:3047: $? = 0
configure:3056: result: yes
configure:3065: checking whether gcc accepts -g
configure:3085: gcc -c -g  conftest.c >&5
configure:3085: $? = 0
configure:3126: result: yes
configure:3143: checking for gcc option to accept ISO C89
configure:3206: gcc  -c -g -O1 -march=native -mtune=native -pipe  conftest.c >&5
configure:3206: $? = 0
configure:3219: result: none needed
configure:3244: checking how to run the C preprocessor
configure:3275: gcc -E  conftest.c
configure:3275: $? = 0
configure:3289: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3289: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QjackCtl"
| #define PACKAGE_TARNAME "qjackctl"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "QjackCtl 0.4.3"
| #define PACKAGE_BUGREPORT "rncbc@rncbc.org"
| #define PACKAGE_URL ""
| #define CONFIG_PREFIX "/usr"
| #define CONFIG_DBUS 1
| /* end confdefs.h.  */
| #include 
configure:3314: result: gcc -E
configure:3334: gcc -E  conftest.c
configure:3334: $? = 0
configure:3348: gcc -E  conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3348: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QjackCtl"
| #define PACKAGE_TARNAME "qjackctl"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "QjackCtl 0.4.3"
| #define PACKAGE_BUGREPORT "rncbc@rncbc.org"
| #define PACKAGE_URL ""
| #define CONFIG_PREFIX "/usr"
| #define CONFIG_DBUS 1
| /* end confdefs.h.  */
| #include 
configure:3434: checking for g++
configure:3450: found /usr/bin/g++
configure:3461: result: g++
configure:3488: checking for C++ compiler version
configure:3497: g++ --version >&5
g++ (CRUX-x86_64-multilib) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3508: $? = 0
configure:3497: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.4.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-5.4.0/configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-system-zlib --enable-multilib --with-pkgversion=CRUX-x86_64-multilib
Thread model: posix
gcc version 5.4.0 (CRUX-x86_64-multilib) 
configure:3508: $? = 0
configure:3497: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3508: $? = 1
configure:3497: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3508: $? = 1
configure:3512: checking whether we are using the GNU C++ compiler
configure:3531: g++ -c -g -O1 -march=native -mtune=native -pipe  conftest.cpp >&5
configure:3531: $? = 0
configure:3540: result: yes
configure:3549: checking whether g++ accepts -g
configure:3569: g++ -c -g  conftest.cpp >&5
configure:3569: $? = 0
configure:3610: result: yes
configure:3638: checking how to run the C++ preprocessor
configure:3665: g++ -E  conftest.cpp
configure:3665: $? = 0
configure:3679: g++ -E  conftest.cpp
conftest.cpp:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3679: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QjackCtl"
| #define PACKAGE_TARNAME "qjackctl"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "QjackCtl 0.4.3"
| #define PACKAGE_BUGREPORT "rncbc@rncbc.org"
| #define PACKAGE_URL ""
| #define CONFIG_PREFIX "/usr"
| #define CONFIG_DBUS 1
| /* end confdefs.h.  */
| #include 
configure:3704: result: g++ -E
configure:3724: g++ -E  conftest.cpp
configure:3724: $? = 0
configure:3738: g++ -E  conftest.cpp
conftest.cpp:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3738: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QjackCtl"
| #define PACKAGE_TARNAME "qjackctl"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "QjackCtl 0.4.3"
| #define PACKAGE_BUGREPORT "rncbc@rncbc.org"
| #define PACKAGE_URL ""
| #define CONFIG_PREFIX "/usr"
| #define CONFIG_DBUS 1
| /* end confdefs.h.  */
| #include 
configure:3857: checking for qmake-qt5
configure:3888: result: no
configure:3900: checking for qmake
configure:3918: found /usr/share/qt5/bin/qmake
configure:3931: result: /usr/share/qt5/bin/qmake
configure:3965: checking for qmake
configure:3996: result: /usr/share/qt5/bin/qmake
configure:4062: checking for Qt library version >= 5.1
configure:4083: g++ -c -g -O1 -march=native -mtune=native -pipe -I/usr/share/qt5/include -I/usr/share/qt5/include -fPIC  conftest.cpp >&5
In file included from /usr/share/qt5/include/QtCore/qatomic.h:46:0,
                 from /usr/share/qt5/include/QtCore/qglobal.h:1145,
                 from conftest.cpp:11:
/usr/share/qt5/include/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
 #  error "Qt requires C++11 support"
    ^
In file included from conftest.cpp:11:0:
/usr/share/qt5/include/QtCore/qglobal.h:1133:23: error: expected ',' or '...' before '&&' token
 void qAsConst(const T &&) Q_DECL_EQ_DELETE;
                       ^

<snip>

configure:4083: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "QjackCtl"
| #define PACKAGE_TARNAME "qjackctl"
| #define PACKAGE_VERSION "0.4.3"
| #define PACKAGE_STRING "QjackCtl 0.4.3"
| #define PACKAGE_BUGREPORT "rncbc@rncbc.org"
| #define PACKAGE_URL ""
| #define CONFIG_PREFIX "/usr"
| #define CONFIG_DBUS 1
| /* end confdefs.h.  */
| #include "QtCore/qglobal.h"
| int
| main ()
| {
| 
|          #if QT_VERSION < 0x050100 || QT_VERSION >= 0x060000
|          #error Qt library 5.1 or greater required.
|          #endif
| 
|   ;
|   return 0;
| }

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

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='set'
ac_cv_env_CFLAGS_value='-g -O1 -march=native -mtune=native -pipe'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXCPP_set=''
ac_cv_env_CXXCPP_value=''
ac_cv_env_CXXFLAGS_set='set'
ac_cv_env_CXXFLAGS_value='-g -O1 -march=native -mtune=native -pipe'
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_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_objext='o'
ac_cv_path_ac_cv_qmake='/usr/share/qt5/bin/qmake'
ac_cv_path_ac_qmake='no'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CC='gcc'
ac_cv_prog_ac_ct_CXX='g++'
ac_cv_prog_cc_c89=''
ac_cv_prog_cc_g='yes'
ac_cv_prog_cxx_g='yes'
ac_cv_qmake='/usr/share/qt5/bin/qmake'

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

CC='gcc'
CFLAGS='-I/usr/share/qt5/include -I/usr/share/qt5/include -fPIC -g -O1 -march=native -mtune=native -pipe  '
CPP='gcc -E'
CPPFLAGS='-I/usr/share/qt5/include -I/usr/share/qt5/include -fPIC '
CXX='g++'
CXXCPP='g++ -E'
CXXFLAGS='-g -O1 -march=native -mtune=native -pipe'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS='-L/usr/share/qt5/lib -L/usr/share/qt5/lib '
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='rncbc@rncbc.org'
PACKAGE_NAME='QjackCtl'
PACKAGE_STRING='QjackCtl 0.4.3'
PACKAGE_TARNAME='qjackctl'
PACKAGE_URL=''
PACKAGE_VERSION='0.4.3'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_cflags='-g -O1 -march=native -mtune=native -pipe'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_cv_qmake='/usr/share/qt5/bin/qmake'
ac_debug='release'
ac_incpath='/usr/share/qt5/include /usr/share/qt5/include '
ac_ldflags=''
ac_libs='-L/usr/share/qt5/lib -L/usr/share/qt5/lib '
ac_lrelease=''
ac_lupdate=''
ac_moc=''
ac_prefix='/usr'
ac_qdbus='qdbus'
ac_qmake='/usr/share/qt5/bin/qmake'
ac_uic=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "QjackCtl"
#define PACKAGE_TARNAME "qjackctl"
#define PACKAGE_VERSION "0.4.3"
#define PACKAGE_STRING "QjackCtl 0.4.3"
#define PACKAGE_BUGREPORT "rncbc@rncbc.org"
#define PACKAGE_URL ""
#define CONFIG_PREFIX "/usr"
#define CONFIG_DBUS 1

configure: exit 1
root@dlcz[ZD]~ #

I'll test without the --with-qt5 configure parameter later today and report.

rncbc's picture

hmm. this line is actually suspicious:
/usr/share/qt5/include/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support"
maybe you better stick/fallback to Qt4 on BSD (configure --enable-qt4 ...)
hth
cheers

dlcusa's picture

Well, I'd have to install qt4, and I'm uncertain what else will be affected by that. I guess I'll try dropping back to qt5.6 first.

rncbc's picture

or you can try something like this:

CFLAGS="-std=c++11" ./configure ...

byee

Add new comment