You are not logged in.

#1 2016-09-25 06:44:03

bugaboo
Member
Registered: 2016-09-12
Posts: 16

[SOLVED] Cannot compile qt.

I am trying to install lyx-git from aur and configure fails on checking Qt library name. Here's the log: http://pastebin.com/nfxTQTGV. Apparantly something wrong with my qt configuration:

configure:11044: g++ -o conftest -std=c++14  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -D_FORTIFY_SOURCE=2  -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.cpp  -lSM -lICE  -lmagic  -lX11  -lQt5Core >&5
conftest.cpp:41:22: fatal error: qglobal.h: No such file or directory
  #include <qglobal.h>
                      ^

Setting QT_SELECT environment variable doesn't help.

How do I solve this?

Last edited by bugaboo (2016-09-26 19:14:22)

Offline

#2 2016-09-25 06:45:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Cannot compile qt.

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-09-25 13:15:34

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [SOLVED] Cannot compile qt.

for Qt5 that file is in /usr/include/qt/QtCore folder, Qt4 had it in another location.

It may be that lyx searches in wrong location,please post full build output.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2016-09-25 19:43:09

bugaboo
Member
Registered: 2016-09-12
Posts: 16

Re: [SOLVED] Cannot compile qt.

Lone_Wolf wrote:

for Qt5 that file is in /usr/include/qt/QtCore folder, Qt4 had it in another location.

It may be that lyx searches in wrong location,please post full build output.

Here http://pastebin.com/yHRqsZnE

Offline

#5 2016-09-25 21:18:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [SOLVED] Cannot compile qt.

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

That holds debug output, not build output . It also shows plenty of ld errors that probably mean something like 'option Y is not supported' .


Please cd into the directory where the PKGBUILD resides , run LC_ALL=C makepkg -LCrs from a terminal .

once that has finished (or aborted) , you'll see upto 3 *.log files in the directory.
post those files ( they have names like : lyx-git-2.2.0.r801.g6642152-1-x86_64-build.log   )


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2016-09-26 05:04:16

bugaboo
Member
Registered: 2016-09-12
Posts: 16

Re: [SOLVED] Cannot compile qt.

pkgver:

2.2.0.r802.g987af2a

build.log:

Using automake (GNU automake) 1.15
Using autoconf (GNU Autoconf) 2.69
Building macros...
Building config header template...
Building Makefile templates...
configure.ac:75: installing 'config/ar-lib'
configure.ac:75: installing 'config/compile'
configure.ac:18: installing 'config/config.guess'
configure.ac:18: installing 'config/config.sub'
configure.ac:38: installing 'config/install-sh'
configure.ac:38: installing 'config/missing'
3rdparty/boost/Makefile.am: installing 'config/depcomp'
lib/lyx2lyx/Makefile.am:10: installing 'config/py-compile'
parallel-tests: installing 'config/test-driver'
Building configure...
Building po/POTFILES.in...

run "./configure && make"

configuring LyX version 2.3.0dev
checking for build type... development
checking for version suffix... 
checking whether Qt5 is requested... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking what packaging should be used... posix
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking for a Python interpreter with version >= 2.7.0 or 3.3.0... python
checking for python... /usr/bin/python
checking for python version... 3.5
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.5/site-packages
checking for style of include used by make... GNU
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether the compiler is clang... no
checking for at least C++11 mode... -std=c++14
checking whether STL is libstdc++... yes
checking whether STL is libstdc++ using the C++11 ABI... yes
checking for correct regex implementation... yes
checking for std::call_once availability... yes
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for extra library directory... NONE
checking for extra include directory... NONE
checking for extra lib+include directory... NONE
checking for main in -lshlwapi... no
checking for main in -lpsapi... no
checking for main in -lgdi32... no
checking for main in -lole32... no
checking whether to use included boost library... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether to use included MyThes library... yes
checking whether byte ordering is bigendian... no
checking whether printing callstack is possible... yes
checking whether make_unique is defined by header memory... yes
checking size of wchar_t... 4
checking for wchar_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking size of long... 8
checking size of long long... 8
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether to use included iconv library... no
checking whether to use included zlib library... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking magic.h usability... yes
checking magic.h presence... yes
checking for magic.h... yes
checking for magic_open in -lmagic... yes
checking for pkg-config... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Qt library name... failed
configure: error: cannot compile a simple Qt executable. Check you have the right $QTDIR.
[1m[31m==> ERROR:(B[m[1m A failure occurred in build().(B[m
[1m    Aborting...(B[m

Offline

#7 2016-09-26 11:15:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: [SOLVED] Cannot compile qt.

problem found and it has nothing to do with Qt , you're missing several things needed to build packages.

checking for pkg-config... no

Read https://wiki.archlinux.org/index.php/Ar … Repository , then tell us how you can solve your build problems.

Hint : 'pacman -S pkg-config' is not the correct answer .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2016-09-26 19:13:37

bugaboo
Member
Registered: 2016-09-12
Posts: 16

Re: [SOLVED] Cannot compile qt.

I've been missing base-devel group. Thank you.

Offline

Board footer

Powered by FluxBB