You are not logged in.

#1 2018-03-04 08:31:48

promach
Member
Registered: 2016-05-18
Posts: 96

Request for PKGBUILD support of qsapecng

Could anyone help to contribute PKGBUILD of qsapecng for AUR repo ?

Offline

#2 2018-03-04 12:07:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

The first hurdle is that it's hosted on sourceforge which means an attempted download results in "Oh snap! We can't process this request."

It also seems to be on github, which has clear instructions that should work just fine with a cmake template PKGBUILD just with the relevant variables filled in:

https://github.com/skypjack/qsapecng

You can start here for writing a PKGBUILD:
https://wiki.archlinux.org/index.php/PKGBUILD

Once you have a bit, we can help test and fine tune it - but I suspect this one should be pretty simple.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2018-03-07 14:38:55

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

As highlighted in https://wiki.archlinux.org/index.php/PK … pendencies , I am a bit confused on which of the following dependencies should be in which category.

4 Dependencies

    4.1 depends
    4.2 optdepends
    4.3 makedepends
    4.4 checkdepends



Requirements for building
~~~~~~~~~~~~~~~~~~~~~~~~~
* Qt v4.6.2 (http://qt.nokia.com/) [QtCore and QtGui are required]
* Boost v1.46.0 (http://www.boost.org/) [required]
* Qwt v6.0.0 (http://qwt.sourceforge.net/) [required]     
* CMake v2.8 (http://www.cmake.org/) [optional, only for building]
* Doxygen (http://www.doxygen.org/) [optional, needed to generate the html documentation]
* NSIS (http://nsis.sourceforge.net/) [optional, needed to generate Setup file on Windows]
* 7-Zip (http://www.7-zip.org/) [optional, needed to generate zip of source and binary files on Windows]
* tar+gzip (http://www.gnu.org/software/tar/ and http://www.gzip.org/)
   [optional, needed to generate tar.gz of source and binaries file on Unix]
* tar+bzip (http://www.gnu.org/software/tar/ and http://www.bzip.org/)
   [optional, needed to generate tar.bz2 of source and binaries file on Unix]


# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: promach
pkgname=qsapecng
pkgver=2.1.1
pkgrel=1
epoch=
pkgdesc=""
arch=()
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('git+https://github.com/skypjack/qsapecng.git')
noextract=()
md5sums=()
validpgpkeys=()

prepare() {
	cd "$pkgname-$pkgver"
	#patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
}

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

check() {
	cd "$pkgname-$pkgver"
	make -k check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}

Offline

#4 2018-03-07 14:45:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

That's a good start.  First thing, as this is retrieving the most recent source from git, please see the following page:
https://wiki.archlinux.org/index.php/VC … guidelines

Specifically, the pkgname should end in '-git' and there should be a pkgver function.

Then remove the empty variables and functions (e.g. prepare, and maybe check).  Then you'll be very nearly there.

For the dependencies it looks like qt4, qwt, and boost with cmake and doxygen as makedepends.  Then you can use `namcap` after building to double check dependencies.

EDIT: oops, you'll also need to use a cmake template for the build ... I'll post a draft PKGBUILD in a moment.

Last edited by Trilby (2018-03-07 14:49:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#5 2018-03-07 14:47:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,557

Re: Request for PKGBUILD support of qsapecng

The last 4 are irrelevant. Out of the first 5, cmake and doxygen specifically state when they're needed. The first 3 would be required, although Arch splits boost into boost and boost-libs, the former would only be needed at build time.

Edit: also note that qwt in Extra is for Qt5, you'd want qwt-qt4 from the AUR. Depending on how their build systemd finds qwt, you may have to do some adjustments there. If that's an issue, let me know and I'll help you out.

Last edited by Scimmia (2018-03-07 14:50:25)

Offline

#6 2018-03-07 14:56:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

Here's a draft that I'm testing.  Perhaps other can comment on the best practices for cmake as I don't really use it:

# Maintainer: promach
_gitname=qsapecng
pkgname=${_gitname}-git
pkgver=2.1.1
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://github.com/skypjack/qsapecng.git"
license=('GPL')
depends=('qt4' 'qwt-qt4')
makedepends=('cmake' 'doxygen' 'boost')
source=('git+https://github.com/skypjack/qsapecng.git')
md5sums=('SKIP')

pkgver() {
   cd "$_gitname"
   git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
   cd "$_gitname"
   mkdir -p build
   cd build
   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
   make
}

package() {
   cd "${_gitname}/build"
   make DESTDIR="$pkgdir" install
}

EDIT: I removed `make doc` as despite the upstream instructions, there is no 'doc' target in the makefile.

It also seems that despite the CMAKE_INSTALL_PREFIX, all the icons are still placed under /usr/local/share (edit2: scratch that, everything is under /usr/local, the CMAKE setting is ignored), perhaps someone more versed in cmake can fix that. (edit3: nevermind, it needs to be -DCMAKE_INSTALL_PREFIX)

Namcap also suggests boost-libs is not a required dependency, though I'm skeptical: can boost be needed to build without boost-libs being needed at runtime?

Last edited by Trilby (2018-03-07 15:13:49)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#7 2018-03-07 15:10:47

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: Request for PKGBUILD support of qsapecng

Trilby wrote:

Namcap also suggests boost-libs is not a required dependency, though I'm skeptical: can boost be needed to build without boost-libs being needed at runtime?

It looks like the boost package contains static versions of the libraries as well, so maybe those are used?

pacman -Ql boost | grep 'a$' 

Last edited by progandy (2018-03-07 15:11:43)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2018-03-07 15:12:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

Ah, thanks.  I removed boost-libs, and changed qwt to qwt-qt4 which I'm testing now.

Hmm, it will build against qwt from the repos, but not run.  But it will not even build with qwt-qt4 from the AUR:

CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Qwt (missing: QWT_LIBRARY QWT_INCLUDE_DIR) (Required is at
  least version "6.0.0")
$ pacman -Qs qwt
local/qwt-qt4 6.1.3-1
    Qt Widgets for Technical Applications - Qt4 version

Last edited by Trilby (2018-03-07 15:15:54)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#9 2018-03-07 15:14:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,557

Re: Request for PKGBUILD support of qsapecng

Trilby, just a quick look but your use of cmake looks fine. Creating and cding to the dir could be done in 2 lines instead of 3, but that's just a style thing. I also prefer to do that in the prepare function. cd "$pkgname" in the pkgver function wouldn't work, though.

As for boost, if it uses the static libs in the boost package, yeah, it could be possible to not use boost-libs.

Does it really work with the Qt5 qwt? Actually, does it even find the Qt5 version?

Edit: Damn I'm slow today

Last edited by Scimmia (2018-03-07 15:15:08)

Offline

#10 2018-03-07 15:18:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

I was going to look into whether the qwt-qt4 AUR package might do something wrong (pkg-config files or similar that could be missing compared to the repo package) ... but then I saw who the maintainer was tongue

Last edited by Trilby (2018-03-07 15:19:36)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#11 2018-03-07 15:24:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,557

Re: Request for PKGBUILD support of qsapecng

I actually (re)wrote most of the repo package for the switch to Qt5, too, so checking that wouldn't help. big_smile

They have what upstream provides, support for finding it via qmake and that's it. cmake projects ship their down Find*.cmake files for things like this, which often need adjusted.

Offline

#12 2018-03-07 15:29:13

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: Request for PKGBUILD support of qsapecng

Maybe you can try to manually set QWT_LIBRARY and QWT_INCLUDE_DIR?

cmake -DQWT_LIBRARY=... -DQWT_INCLUDE_DIR=... -D...

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#13 2018-03-08 03:09:24

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

What is wrong with QWT version ?

Offline

#14 2018-03-09 15:50:44

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

I tried to install it first in Ubuntu system.

I have installed both qt4 packages, yet it still could not find qt4

phung@UbuntuHW15:~/Downloads/qsapecng/build$ sudo aptitude install libqtcore4
libqtcore4 is already installed at the requested version (4:4.8.7+dfsg-5ubuntu2)
libqtcore4 is already installed at the requested version (4:4.8.7+dfsg-5ubuntu2)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
phung@UbuntuHW15:~/Downloads/qsapecng/build$ sudo aptitude install libqtgui4
libqtgui4 is already installed at the requested version (4:4.8.7+dfsg-5ubuntu2)
libqtgui4 is already installed at the requested version (4:4.8.7+dfsg-5ubuntu2)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
phung@UbuntuHW15:~/Downloads/qsapecng/build$ 
phung@UbuntuHW15:~/Downloads/qsapecng/build$ cmake ../
-- Boost version: 1.58.0
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
CMake Error at /usr/share/cmake-3.5/Modules/FindQt4.cmake:1326 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  src/CMakeLists.txt:2 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/phung/Downloads/qsapecng/build/CMakeFiles/CMakeOutput.log".
phung@UbuntuHW15:~/Downloads/qsapecng/build$ 

Offline

#15 2018-03-09 16:36:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

Trying to install it in Ubuntu is irrelevant.  Start from the PKGBUILD above and work on that.  Try adding Progandy's suggestion - I suspect that'd get it working.

Note that under Ubuntu the problem is completely different: qt4 is not an issue with the PKGBUILD, just qwt.  In Ubuntu I suspect the problem is that you need the associated -dev or -devel packages or whatever they call them.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#16 2018-03-09 17:16:20

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: Request for PKGBUILD support of qsapecng

Why are you trying ubuntu now? We can't help you with that.

In arch the "qwt" package is only for qt5, but you need qt4. This version is provided in the AUR as qwt-qt4, but the cmake scripts used by qsapecng cannot find it. If you set the paths manually, then it works.

This PKGBUILD (modified from Trilby's draft) builds and qsapecng seems to start fine.
Edit: This PKGBUILD is not read for the AUR. At least a description is missing...

# Maintainer: promach
_gitname=qsapecng
pkgname=${_gitname}-git
pkgver=v2.1.1.r0.ga5b16f4
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://github.com/skypjack/qsapecng.git"
license=('GPL')
depends=('qt4' 'qwt-qt4')
makedepends=('cmake' 'doxygen' 'boost')
source=('git+https://github.com/skypjack/qsapecng.git')
md5sums=('SKIP')

pkgver() {
   cd "$_gitname"
   git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
   cd "$_gitname"
   mkdir -p build
   cd build
   cmake -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so -DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ -DCMAKE_INSTALL_PREFIX=/usr ..
   make
}

package() {
   cd "${_gitname}/build"
   make DESTDIR="$pkgdir" install
}

Last edited by progandy (2018-03-09 17:18:24)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#17 2018-03-10 00:47:35

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

@progandy

we have to use "cmake ../ -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so -DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ -DCMAKE_INSTALL_PREFIX=/usr .." instead such that it could find CMakeLists.txt file

However, I am still facing the following error:

[phung@archlinux Downloads]$ makepkg
==> Making package: qsapecng-git v2.1.1.r0.ga5b16f4-1 (Sat Mar 10 08:43:59 +08 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning qsapecng git repo...
Cloning into bare repository '/home/phung/Downloads/qsapecng'...
remote: Counting objects: 888, done.
remote: Total 888 (delta 0), reused 0 (delta 0), pack-reused 888
Receiving objects: 100% (888/888), 1.91 MiB | 423.00 KiB/s, done.
Resolving deltas: 100% (474/474), done.
==> Validating source files with md5sums...
    qsapecng ... Skipped
==> Extracting sources...
  -> Creating working copy of qsapecng git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.66.0
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.6.2") 
CMake Error at cmake/Modules/FindQwt.cmake:66 (file):
  file STRINGS file
  "/home/phung/Downloads/src/qsapecng/src/QWT_INCLUDE_DIR-NOTFOUND/qwt_global.h"
  cannot be read.
Call Stack (most recent call first):
  src/CMakeLists.txt:3 (find_package)


CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Qwt: Found unsuitable version "..", but required is at least
  "6.0.0" (found /usr/lib/libqwt-qt4.so)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindQwt.cmake:104 (find_package_handle_standard_args)
  src/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeOutput.log".
See also "/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
[phung@archlinux Downloads]$ 
[phung@archlinux Downloads]$ cat /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeError.log
Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_41deb/fast"
/usr/bin/make -f CMakeFiles/cmTC_41deb.dir/build.make CMakeFiles/cmTC_41deb.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_41deb.dir/CheckSymbolExists.cxx.o
/usr/bin/c++   -I/usr/include/qt4  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_41deb.dir/CheckSymbolExists.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_WIN’ was not declared in this scope
   return ((int*)(&Q_WS_WIN))[argc];
                   ^~~~~~~~
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’
   return ((int*)(&Q_WS_WIN))[argc];
                   ^~~~~~~~
                   Q_WS_X11
make[1]: *** [CMakeFiles/cmTC_41deb.dir/build.make:66: CMakeFiles/cmTC_41deb.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_41deb/fast] Error 2

File /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_WIN
  return ((int*)(&Q_WS_WIN))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_3a279/fast"
/usr/bin/make -f CMakeFiles/cmTC_3a279.dir/build.make CMakeFiles/cmTC_3a279.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_3a279.dir/CheckSymbolExists.cxx.o
/usr/bin/c++   -I/usr/include/qt4  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_3a279.dir/CheckSymbolExists.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_QWS’ was not declared in this scope
   return ((int*)(&Q_WS_QWS))[argc];
                   ^~~~~~~~
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’
   return ((int*)(&Q_WS_QWS))[argc];
                   ^~~~~~~~
                   Q_WS_X11
make[1]: *** [CMakeFiles/cmTC_3a279.dir/build.make:66: CMakeFiles/cmTC_3a279.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_3a279/fast] Error 2

File /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_QWS
  return ((int*)(&Q_WS_QWS))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_135b1/fast"
/usr/bin/make -f CMakeFiles/cmTC_135b1.dir/build.make CMakeFiles/cmTC_135b1.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_135b1.dir/CheckSymbolExists.cxx.o
/usr/bin/c++   -I/usr/include/qt4  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_135b1.dir/CheckSymbolExists.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘Q_WS_MAC’ was not declared in this scope
   return ((int*)(&Q_WS_MAC))[argc];
                   ^~~~~~~~
/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: note: suggested alternative: ‘Q_WS_X11’
   return ((int*)(&Q_WS_MAC))[argc];
                   ^~~~~~~~
                   Q_WS_X11
make[1]: *** [CMakeFiles/cmTC_135b1.dir/build.make:66: CMakeFiles/cmTC_135b1.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_135b1/fast] Error 2

File /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_MAC
  return ((int*)(&Q_WS_MAC))[argc];
#else
  (void)argc;
  return 0;
#endif
}

[phung@archlinux Downloads]$ 
[phung@archlinux Downloads]$ cat /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeOutput.log
The system is: Linux - 4.15.7-1-ARCH - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc 
Build flags: -march=x86-64;-mtune=generic;-O2;-pipe;-fstack-protector-strong
Id flags:  

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/phung/Downloads/src/qsapecng/build/CMakeFiles/3.10.2/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++ 
Build flags: -march=x86-64;-mtune=generic;-O2;-pipe;-fstack-protector-strong
Id flags:  

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/phung/Downloads/src/qsapecng/build/CMakeFiles/3.10.2/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b35eb/fast"
/usr/bin/make -f CMakeFiles/cmTC_b35eb.dir/build.make CMakeFiles/cmTC_b35eb.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b35eb.dir/testCCompiler.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_b35eb.dir/testCCompiler.c.o   -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_b35eb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b35eb.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_b35eb.dir/testCCompiler.c.o  -o cmTC_b35eb 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_dca3b/fast"
/usr/bin/make -f CMakeFiles/cmTC_dca3b.dir/build.make CMakeFiles/cmTC_dca3b.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_dca3b
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dca3b.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro -v -rdynamic CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o  -o cmTC_dca3b 
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.0 (GCC) 
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_dca3b'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccZZvVMS.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_dca3b /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -O1 --sort-common --as-needed -z relro CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o
COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_dca3b'
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command:"/usr/bin/make" "cmTC_dca3b/fast"]
  ignore line: [/usr/bin/make -f CMakeFiles/cmTC_dca3b.dir/build.make CMakeFiles/cmTC_dca3b.dir/build]
  ignore line: [make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp']
  ignore line: [Building C object CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o]
  ignore line: [/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-3.10/Modules/CMakeCCompilerABI.c]
  ignore line: [Linking C executable cmTC_dca3b]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_dca3b.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro -v -rdynamic CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o  -o cmTC_dca3b ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/cc]
  ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper]
  ignore line: [Target: x86_64-pc-linux-gnu]
  ignore line: [Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp]
  ignore line: [Thread model: posix]
  ignore line: [gcc version 7.3.0 (GCC) ]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_dca3b']
  link line: [ /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccZZvVMS.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_dca3b /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -O1 --sort-common --as-needed -z relro CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o]
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2] ==> ignore
    arg [-plugin] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so] ==> ignore
    arg [-plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper] ==> ignore
    arg [-plugin-opt=-fresolution=/tmp/ccZZvVMS.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [--build-id] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [--hash-style=gnu] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-pie] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_dca3b] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o] ==> ignore
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0]
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib]
    arg [-L/lib/../lib] ==> dir [/lib/../lib]
    arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..]
    arg [-O1] ==> ignore
    arg [--sort-common] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-zrelro] ==> ignore
    arg [CMakeFiles/cmTC_dca3b.dir/CMakeCCompilerABI.c.o] ==> ignore
    arg [-lgcc] ==> lib [gcc]
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--no-as-needed] ==> ignore
    arg [-lc] ==> lib [c]
    arg [-lgcc] ==> lib [gcc]
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--no-as-needed] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o] ==> ignore
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0] ==> [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0]
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib] ==> [/usr/lib]
  collapse library dir [/lib/../lib] ==> [/lib]
  collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..] ==> [/usr/lib]
  implicit libs: [gcc;gcc_s;c;gcc;gcc_s]
  implicit dirs: [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0;/usr/lib;/lib]
  implicit fwks: []




Detecting C [-std=c11] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_5ce4c/fast"
/usr/bin/make -f CMakeFiles/cmTC_5ce4c.dir/build.make CMakeFiles/cmTC_5ce4c.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5ce4c.dir/feature_tests.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c11 -o CMakeFiles/cmTC_5ce4c.dir/feature_tests.c.o   -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_5ce4c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5ce4c.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_5ce4c.dir/feature_tests.c.o  -o cmTC_5ce4c 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: C_FEATURE:1c_function_prototypes
    Feature record: C_FEATURE:1c_restrict
    Feature record: C_FEATURE:1c_static_assert
    Feature record: C_FEATURE:1c_variadic_macros


Detecting C [-std=c99] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a8e59/fast"
/usr/bin/make -f CMakeFiles/cmTC_a8e59.dir/build.make CMakeFiles/cmTC_a8e59.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a8e59.dir/feature_tests.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c99 -o CMakeFiles/cmTC_a8e59.dir/feature_tests.c.o   -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_a8e59
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a8e59.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_a8e59.dir/feature_tests.c.o  -o cmTC_a8e59 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: C_FEATURE:1c_function_prototypes
    Feature record: C_FEATURE:1c_restrict
    Feature record: C_FEATURE:0c_static_assert
    Feature record: C_FEATURE:1c_variadic_macros


Detecting C [-std=c90] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_d2077/fast"
/usr/bin/make -f CMakeFiles/cmTC_d2077.dir/build.make CMakeFiles/cmTC_d2077.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d2077.dir/feature_tests.c.o
/usr/bin/cc   -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c90 -o CMakeFiles/cmTC_d2077.dir/feature_tests.c.o   -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.c
Linking C executable cmTC_d2077
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2077.dir/link.txt --verbose=1
/usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_d2077.dir/feature_tests.c.o  -o cmTC_d2077 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: C_FEATURE:1c_function_prototypes
    Feature record: C_FEATURE:0c_restrict
    Feature record: C_FEATURE:0c_static_assert
    Feature record: C_FEATURE:0c_variadic_macros
Determining if the CXX compiler works passed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_49fa6/fast"
/usr/bin/make -f CMakeFiles/cmTC_49fa6.dir/build.make CMakeFiles/cmTC_49fa6.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_49fa6.dir/testCXXCompiler.cxx.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_49fa6.dir/testCXXCompiler.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_49fa6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_49fa6.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_49fa6.dir/testCXXCompiler.cxx.o  -o cmTC_49fa6 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_62743/fast"
/usr/bin/make -f CMakeFiles/cmTC_62743.dir/build.make CMakeFiles/cmTC_62743.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp
Linking CXX executable cmTC_62743
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_62743.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro -v -rdynamic CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o  -o cmTC_62743 
Using built-in specs.
COLLECT_GCC=/usr/bin/c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.0 (GCC) 
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_62743' '-shared-libgcc'
 /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccqEOkrh.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_62743 /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -O1 --sort-common --as-needed -z relro CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o
COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_62743' '-shared-libgcc'
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command:"/usr/bin/make" "cmTC_62743/fast"]
  ignore line: [/usr/bin/make -f CMakeFiles/cmTC_62743.dir/build.make CMakeFiles/cmTC_62743.dir/build]
  ignore line: [make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp']
  ignore line: [Building CXX object CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o]
  ignore line: [/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [Linking CXX executable cmTC_62743]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_62743.dir/link.txt --verbose=1]
  ignore line: [/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro -v -rdynamic CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o  -o cmTC_62743 ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/usr/bin/c++]
  ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper]
  ignore line: [Target: x86_64-pc-linux-gnu]
  ignore line: [Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp]
  ignore line: [Thread model: posix]
  ignore line: [gcc version 7.3.0 (GCC) ]
  ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/]
  ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=x86-64' '-mtune=generic' '-O2' '-pipe' '-fstack-protector-strong' '-v' '-rdynamic' '-o' 'cmTC_62743' '-shared-libgcc']
  link line: [ /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccqEOkrh.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_62743 /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../.. -O1 --sort-common --as-needed -z relro CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o]
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/collect2] ==> ignore
    arg [-plugin] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/liblto_plugin.so] ==> ignore
    arg [-plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper] ==> ignore
    arg [-plugin-opt=-fresolution=/tmp/ccqEOkrh.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [--build-id] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [--hash-style=gnu] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-pie] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_62743] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/Scrt1.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crti.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtbeginS.o] ==> ignore
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0]
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib]
    arg [-L/lib/../lib] ==> dir [/lib/../lib]
    arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
    arg [-L/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..]
    arg [-O1] ==> ignore
    arg [--sort-common] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-zrelro] ==> ignore
    arg [CMakeFiles/cmTC_62743.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
    arg [-lstdc++] ==> lib [stdc++]
    arg [-lm] ==> lib [m]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [-lc] ==> lib [c]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/crtendS.o] ==> ignore
    arg [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib/crtn.o] ==> ignore
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0] ==> [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0]
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../lib] ==> [/usr/lib]
  collapse library dir [/lib/../lib] ==> [/lib]
  collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
  collapse library dir [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../..] ==> [/usr/lib]
  implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
  implicit dirs: [/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0;/usr/lib;/lib]
  implicit fwks: []




Detecting CXX [-std=c++1z] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_b52e0/fast"
/usr/bin/make -f CMakeFiles/cmTC_b52e0.dir/build.make CMakeFiles/cmTC_b52e0.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b52e0.dir/feature_tests.cxx.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c++1z -o CMakeFiles/cmTC_b52e0.dir/feature_tests.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_b52e0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b52e0.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_b52e0.dir/feature_tests.cxx.o  -o cmTC_b52e0 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
    Feature record: CXX_FEATURE:1cxx_alias_templates
    Feature record: CXX_FEATURE:1cxx_alignas
    Feature record: CXX_FEATURE:1cxx_alignof
    Feature record: CXX_FEATURE:1cxx_attributes
    Feature record: CXX_FEATURE:1cxx_attribute_deprecated
    Feature record: CXX_FEATURE:1cxx_auto_type
    Feature record: CXX_FEATURE:1cxx_binary_literals
    Feature record: CXX_FEATURE:1cxx_constexpr
    Feature record: CXX_FEATURE:1cxx_contextual_conversions
    Feature record: CXX_FEATURE:1cxx_decltype
    Feature record: CXX_FEATURE:1cxx_decltype_auto
    Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
    Feature record: CXX_FEATURE:1cxx_default_function_template_args
    Feature record: CXX_FEATURE:1cxx_defaulted_functions
    Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
    Feature record: CXX_FEATURE:1cxx_delegating_constructors
    Feature record: CXX_FEATURE:1cxx_deleted_functions
    Feature record: CXX_FEATURE:1cxx_digit_separators
    Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
    Feature record: CXX_FEATURE:1cxx_explicit_conversions
    Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
    Feature record: CXX_FEATURE:1cxx_extern_templates
    Feature record: CXX_FEATURE:1cxx_final
    Feature record: CXX_FEATURE:1cxx_func_identifier
    Feature record: CXX_FEATURE:1cxx_generalized_initializers
    Feature record: CXX_FEATURE:1cxx_generic_lambdas
    Feature record: CXX_FEATURE:1cxx_inheriting_constructors
    Feature record: CXX_FEATURE:1cxx_inline_namespaces
    Feature record: CXX_FEATURE:1cxx_lambdas
    Feature record: CXX_FEATURE:1cxx_lambda_init_captures
    Feature record: CXX_FEATURE:1cxx_local_type_template_args
    Feature record: CXX_FEATURE:1cxx_long_long_type
    Feature record: CXX_FEATURE:1cxx_noexcept
    Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
    Feature record: CXX_FEATURE:1cxx_nullptr
    Feature record: CXX_FEATURE:1cxx_override
    Feature record: CXX_FEATURE:1cxx_range_for
    Feature record: CXX_FEATURE:1cxx_raw_string_literals
    Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
    Feature record: CXX_FEATURE:1cxx_relaxed_constexpr
    Feature record: CXX_FEATURE:1cxx_return_type_deduction
    Feature record: CXX_FEATURE:1cxx_right_angle_brackets
    Feature record: CXX_FEATURE:1cxx_rvalue_references
    Feature record: CXX_FEATURE:1cxx_sizeof_member
    Feature record: CXX_FEATURE:1cxx_static_assert
    Feature record: CXX_FEATURE:1cxx_strong_enums
    Feature record: CXX_FEATURE:1cxx_template_template_parameters
    Feature record: CXX_FEATURE:1cxx_thread_local
    Feature record: CXX_FEATURE:1cxx_trailing_return_types
    Feature record: CXX_FEATURE:1cxx_unicode_literals
    Feature record: CXX_FEATURE:1cxx_uniform_initialization
    Feature record: CXX_FEATURE:1cxx_unrestricted_unions
    Feature record: CXX_FEATURE:1cxx_user_literals
    Feature record: CXX_FEATURE:1cxx_variable_templates
    Feature record: CXX_FEATURE:1cxx_variadic_macros
    Feature record: CXX_FEATURE:1cxx_variadic_templates


Detecting CXX [-std=c++14] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_17879/fast"
/usr/bin/make -f CMakeFiles/cmTC_17879.dir/build.make CMakeFiles/cmTC_17879.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_17879.dir/feature_tests.cxx.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c++14 -o CMakeFiles/cmTC_17879.dir/feature_tests.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_17879
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_17879.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_17879.dir/feature_tests.cxx.o  -o cmTC_17879 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: CXX_FEATURE:1cxx_aggregate_default_initializers
    Feature record: CXX_FEATURE:1cxx_alias_templates
    Feature record: CXX_FEATURE:1cxx_alignas
    Feature record: CXX_FEATURE:1cxx_alignof
    Feature record: CXX_FEATURE:1cxx_attributes
    Feature record: CXX_FEATURE:1cxx_attribute_deprecated
    Feature record: CXX_FEATURE:1cxx_auto_type
    Feature record: CXX_FEATURE:1cxx_binary_literals
    Feature record: CXX_FEATURE:1cxx_constexpr
    Feature record: CXX_FEATURE:1cxx_contextual_conversions
    Feature record: CXX_FEATURE:1cxx_decltype
    Feature record: CXX_FEATURE:1cxx_decltype_auto
    Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
    Feature record: CXX_FEATURE:1cxx_default_function_template_args
    Feature record: CXX_FEATURE:1cxx_defaulted_functions
    Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
    Feature record: CXX_FEATURE:1cxx_delegating_constructors
    Feature record: CXX_FEATURE:1cxx_deleted_functions
    Feature record: CXX_FEATURE:1cxx_digit_separators
    Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
    Feature record: CXX_FEATURE:1cxx_explicit_conversions
    Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
    Feature record: CXX_FEATURE:1cxx_extern_templates
    Feature record: CXX_FEATURE:1cxx_final
    Feature record: CXX_FEATURE:1cxx_func_identifier
    Feature record: CXX_FEATURE:1cxx_generalized_initializers
    Feature record: CXX_FEATURE:1cxx_generic_lambdas
    Feature record: CXX_FEATURE:1cxx_inheriting_constructors
    Feature record: CXX_FEATURE:1cxx_inline_namespaces
    Feature record: CXX_FEATURE:1cxx_lambdas
    Feature record: CXX_FEATURE:1cxx_lambda_init_captures
    Feature record: CXX_FEATURE:1cxx_local_type_template_args
    Feature record: CXX_FEATURE:1cxx_long_long_type
    Feature record: CXX_FEATURE:1cxx_noexcept
    Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
    Feature record: CXX_FEATURE:1cxx_nullptr
    Feature record: CXX_FEATURE:1cxx_override
    Feature record: CXX_FEATURE:1cxx_range_for
    Feature record: CXX_FEATURE:1cxx_raw_string_literals
    Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
    Feature record: CXX_FEATURE:1cxx_relaxed_constexpr
    Feature record: CXX_FEATURE:1cxx_return_type_deduction
    Feature record: CXX_FEATURE:1cxx_right_angle_brackets
    Feature record: CXX_FEATURE:1cxx_rvalue_references
    Feature record: CXX_FEATURE:1cxx_sizeof_member
    Feature record: CXX_FEATURE:1cxx_static_assert
    Feature record: CXX_FEATURE:1cxx_strong_enums
    Feature record: CXX_FEATURE:1cxx_template_template_parameters
    Feature record: CXX_FEATURE:1cxx_thread_local
    Feature record: CXX_FEATURE:1cxx_trailing_return_types
    Feature record: CXX_FEATURE:1cxx_unicode_literals
    Feature record: CXX_FEATURE:1cxx_uniform_initialization
    Feature record: CXX_FEATURE:1cxx_unrestricted_unions
    Feature record: CXX_FEATURE:1cxx_user_literals
    Feature record: CXX_FEATURE:1cxx_variable_templates
    Feature record: CXX_FEATURE:1cxx_variadic_macros
    Feature record: CXX_FEATURE:1cxx_variadic_templates


Detecting CXX [-std=c++11] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_94586/fast"
/usr/bin/make -f CMakeFiles/cmTC_94586.dir/build.make CMakeFiles/cmTC_94586.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_94586.dir/feature_tests.cxx.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c++11 -o CMakeFiles/cmTC_94586.dir/feature_tests.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_94586
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_94586.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_94586.dir/feature_tests.cxx.o  -o cmTC_94586 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
    Feature record: CXX_FEATURE:1cxx_alias_templates
    Feature record: CXX_FEATURE:1cxx_alignas
    Feature record: CXX_FEATURE:1cxx_alignof
    Feature record: CXX_FEATURE:1cxx_attributes
    Feature record: CXX_FEATURE:0cxx_attribute_deprecated
    Feature record: CXX_FEATURE:1cxx_auto_type
    Feature record: CXX_FEATURE:0cxx_binary_literals
    Feature record: CXX_FEATURE:1cxx_constexpr
    Feature record: CXX_FEATURE:0cxx_contextual_conversions
    Feature record: CXX_FEATURE:1cxx_decltype
    Feature record: CXX_FEATURE:0cxx_decltype_auto
    Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types
    Feature record: CXX_FEATURE:1cxx_default_function_template_args
    Feature record: CXX_FEATURE:1cxx_defaulted_functions
    Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
    Feature record: CXX_FEATURE:1cxx_delegating_constructors
    Feature record: CXX_FEATURE:1cxx_deleted_functions
    Feature record: CXX_FEATURE:0cxx_digit_separators
    Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
    Feature record: CXX_FEATURE:1cxx_explicit_conversions
    Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
    Feature record: CXX_FEATURE:1cxx_extern_templates
    Feature record: CXX_FEATURE:1cxx_final
    Feature record: CXX_FEATURE:1cxx_func_identifier
    Feature record: CXX_FEATURE:1cxx_generalized_initializers
    Feature record: CXX_FEATURE:0cxx_generic_lambdas
    Feature record: CXX_FEATURE:1cxx_inheriting_constructors
    Feature record: CXX_FEATURE:1cxx_inline_namespaces
    Feature record: CXX_FEATURE:1cxx_lambdas
    Feature record: CXX_FEATURE:0cxx_lambda_init_captures
    Feature record: CXX_FEATURE:1cxx_local_type_template_args
    Feature record: CXX_FEATURE:1cxx_long_long_type
    Feature record: CXX_FEATURE:1cxx_noexcept
    Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
    Feature record: CXX_FEATURE:1cxx_nullptr
    Feature record: CXX_FEATURE:1cxx_override
    Feature record: CXX_FEATURE:1cxx_range_for
    Feature record: CXX_FEATURE:1cxx_raw_string_literals
    Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
    Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
    Feature record: CXX_FEATURE:0cxx_return_type_deduction
    Feature record: CXX_FEATURE:1cxx_right_angle_brackets
    Feature record: CXX_FEATURE:1cxx_rvalue_references
    Feature record: CXX_FEATURE:1cxx_sizeof_member
    Feature record: CXX_FEATURE:1cxx_static_assert
    Feature record: CXX_FEATURE:1cxx_strong_enums
    Feature record: CXX_FEATURE:1cxx_template_template_parameters
    Feature record: CXX_FEATURE:1cxx_thread_local
    Feature record: CXX_FEATURE:1cxx_trailing_return_types
    Feature record: CXX_FEATURE:1cxx_unicode_literals
    Feature record: CXX_FEATURE:1cxx_uniform_initialization
    Feature record: CXX_FEATURE:1cxx_unrestricted_unions
    Feature record: CXX_FEATURE:1cxx_user_literals
    Feature record: CXX_FEATURE:0cxx_variable_templates
    Feature record: CXX_FEATURE:1cxx_variadic_macros
    Feature record: CXX_FEATURE:1cxx_variadic_templates


Detecting CXX [-std=c++98] compiler features compiled with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_fd0bd/fast"
/usr/bin/make -f CMakeFiles/cmTC_fd0bd.dir/build.make CMakeFiles/cmTC_fd0bd.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_fd0bd.dir/feature_tests.cxx.o
/usr/bin/c++    -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -std=c++98 -o CMakeFiles/cmTC_fd0bd.dir/feature_tests.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/feature_tests.cxx
Linking CXX executable cmTC_fd0bd
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fd0bd.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_fd0bd.dir/feature_tests.cxx.o  -o cmTC_fd0bd 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'


    Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
    Feature record: CXX_FEATURE:0cxx_alias_templates
    Feature record: CXX_FEATURE:0cxx_alignas
    Feature record: CXX_FEATURE:0cxx_alignof
    Feature record: CXX_FEATURE:0cxx_attributes
    Feature record: CXX_FEATURE:0cxx_attribute_deprecated
    Feature record: CXX_FEATURE:0cxx_auto_type
    Feature record: CXX_FEATURE:0cxx_binary_literals
    Feature record: CXX_FEATURE:0cxx_constexpr
    Feature record: CXX_FEATURE:0cxx_contextual_conversions
    Feature record: CXX_FEATURE:0cxx_decltype
    Feature record: CXX_FEATURE:0cxx_decltype_auto
    Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types
    Feature record: CXX_FEATURE:0cxx_default_function_template_args
    Feature record: CXX_FEATURE:0cxx_defaulted_functions
    Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers
    Feature record: CXX_FEATURE:0cxx_delegating_constructors
    Feature record: CXX_FEATURE:0cxx_deleted_functions
    Feature record: CXX_FEATURE:0cxx_digit_separators
    Feature record: CXX_FEATURE:0cxx_enum_forward_declarations
    Feature record: CXX_FEATURE:0cxx_explicit_conversions
    Feature record: CXX_FEATURE:0cxx_extended_friend_declarations
    Feature record: CXX_FEATURE:0cxx_extern_templates
    Feature record: CXX_FEATURE:0cxx_final
    Feature record: CXX_FEATURE:0cxx_func_identifier
    Feature record: CXX_FEATURE:0cxx_generalized_initializers
    Feature record: CXX_FEATURE:0cxx_generic_lambdas
    Feature record: CXX_FEATURE:0cxx_inheriting_constructors
    Feature record: CXX_FEATURE:0cxx_inline_namespaces
    Feature record: CXX_FEATURE:0cxx_lambdas
    Feature record: CXX_FEATURE:0cxx_lambda_init_captures
    Feature record: CXX_FEATURE:0cxx_local_type_template_args
    Feature record: CXX_FEATURE:0cxx_long_long_type
    Feature record: CXX_FEATURE:0cxx_noexcept
    Feature record: CXX_FEATURE:0cxx_nonstatic_member_init
    Feature record: CXX_FEATURE:0cxx_nullptr
    Feature record: CXX_FEATURE:0cxx_override
    Feature record: CXX_FEATURE:0cxx_range_for
    Feature record: CXX_FEATURE:0cxx_raw_string_literals
    Feature record: CXX_FEATURE:0cxx_reference_qualified_functions
    Feature record: CXX_FEATURE:0cxx_relaxed_constexpr
    Feature record: CXX_FEATURE:0cxx_return_type_deduction
    Feature record: CXX_FEATURE:0cxx_right_angle_brackets
    Feature record: CXX_FEATURE:0cxx_rvalue_references
    Feature record: CXX_FEATURE:0cxx_sizeof_member
    Feature record: CXX_FEATURE:0cxx_static_assert
    Feature record: CXX_FEATURE:0cxx_strong_enums
    Feature record: CXX_FEATURE:1cxx_template_template_parameters
    Feature record: CXX_FEATURE:0cxx_thread_local
    Feature record: CXX_FEATURE:0cxx_trailing_return_types
    Feature record: CXX_FEATURE:0cxx_unicode_literals
    Feature record: CXX_FEATURE:0cxx_uniform_initialization
    Feature record: CXX_FEATURE:0cxx_unrestricted_unions
    Feature record: CXX_FEATURE:0cxx_user_literals
    Feature record: CXX_FEATURE:0cxx_variable_templates
    Feature record: CXX_FEATURE:0cxx_variadic_macros
    Feature record: CXX_FEATURE:0cxx_variadic_templates
Determining if the Q_WS_X11 exist passed with the following output:
Change Dir: /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_0c871/fast"
/usr/bin/make -f CMakeFiles/cmTC_0c871.dir/build.make CMakeFiles/cmTC_0c871.dir/build
make[1]: Entering directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0c871.dir/CheckSymbolExists.cxx.o
/usr/bin/c++   -I/usr/include/qt4  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong    -o CMakeFiles/cmTC_0c871.dir/CheckSymbolExists.cxx.o -c /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTC_0c871
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0c871.dir/link.txt --verbose=1
/usr/bin/c++  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong   -Wl,-O1,--sort-common,--as-needed,-z,relro  -rdynamic CMakeFiles/cmTC_0c871.dir/CheckSymbolExists.cxx.o  -o cmTC_0c871 
make[1]: Leaving directory '/home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp'

File /home/phung/Downloads/src/qsapecng/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef Q_WS_X11
  return ((int*)(&Q_WS_X11))[argc];
#else
  (void)argc;
  return 0;
#endif
}

[phung@archlinux Downloads]$ 

Last edited by promach (2018-03-10 00:57:56)

Offline

#18 2018-03-10 01:14:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,526
Website

Re: Request for PKGBUILD support of qsapecng

promach wrote:

we have to use "cmake ../ -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so -DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ -DCMAKE_INSTALL_PREFIX=/usr .." instead

No, it was fine as it was.  I just confirmed Progandy's PKGBUILD works perfectly here too.

Your error is very odd.  I'm not well versed in cmake, but for some reason it's not expanding the variables properly.  Do you already have all the dependencies?  Run `makepkg -s` not just `makepkg`.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#19 2018-03-10 03:03:10

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

This is the PKGBUILD I am using

# Maintainer: promach
_gitname=qsapecng
pkgname=${_gitname}-git
pkgver=v2.1.1.r0.ga5b16f4
pkgrel=1
pkgdesc="QSapecNG is a Qt-based program for symbolic analysis of linear analog circuits"
arch=('x86_64')
url="https://github.com/skypjack/qsapecng.git"
license=('GPL')
depends=('qt4' 'qwt-qt4')
makedepends=('cmake' 'doxygen' 'boost')
source=('git+https://github.com/skypjack/qsapecng.git')
md5sums=('SKIP')

pkgver() {
   cd "$_gitname"
   git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
   cd "$_gitname"
   mkdir -p build
   cd build
   cmake ../ -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so 
-DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ -DCMAKE_INSTALL_PREFIX=/usr ..
   make
}

package() {
   cd "${_gitname}/build"
   make DESTDIR="$pkgdir" install
}

and the following the terminal output when I run "makepkg -s" instead of "makepkg"

[phung@archlinux qsapecng]$ makepkg -s
==> Making package: qsapecng-git v2.1.1.r0.ga5b16f4-1 (Sat Mar 10 10:58:14 +08 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning qsapecng git repo...
Cloning into bare repository '/home/phung/Downloads/qsapecng/qsapecng'...
remote: Counting objects: 888, done.
remote: Total 888 (delta 0), reused 0 (delta 0), pack-reused 888
Receiving objects: 100% (888/888), 1.91 MiB | 536.00 KiB/s, done.
Resolving deltas: 100% (474/474), done.
==> Validating source files with md5sums...
    qsapecng ... Skipped
==> Extracting sources...
  -> Creating working copy of qsapecng git repo...
Cloning into 'qsapecng'...
done.
==> Starting pkgver()...
==> Starting build()...
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.66.0
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.7", minimum required is "4.6.2") 
CMake Error at cmake/Modules/FindQwt.cmake:66 (file):
  file STRINGS file
  "/home/phung/Downloads/qsapecng/src/qsapecng/src/QWT_INCLUDE_DIR-NOTFOUND/qwt_global.h"
  cannot be read.
Call Stack (most recent call first):
  src/CMakeLists.txt:3 (find_package)


CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Qwt: Found unsuitable version "..", but required is at least
  "6.0.0" (found /usr/lib/libqwt-qt4.so)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindQwt.cmake:104 (find_package_handle_standard_args)
  src/CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/phung/Downloads/qsapecng/src/qsapecng/build/CMakeFiles/CMakeOutput.log".
See also "/home/phung/Downloads/qsapecng/src/qsapecng/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...
[phung@archlinux qsapecng]$ 

Offline

#20 2018-03-10 03:09:30

promach
Member
Registered: 2016-05-18
Posts: 96

Re: Request for PKGBUILD support of qsapecng

It seems like https://www.archlinux.org/packages/extra/x86_64/qwt/ is needed as dependency.

I have modified the PKGBUILD accordingly to include 'qwt' as dependency. But do we need 'qwt-qt4' ?

# Maintainer: promach
_gitname=qsapecng
pkgname=${_gitname}-git
pkgver=v2.1.1.r0.ga5b16f4
pkgrel=1
pkgdesc="QSapecNG is a Qt-based program for symbolic analysis of linear analog circuits"
arch=('x86_64')
url="https://github.com/skypjack/qsapecng.git"
license=('GPL')
depends=('qt4' 'qwt-qt4' 'qwt')
makedepends=('cmake' 'doxygen' 'boost')
source=('git+https://github.com/skypjack/qsapecng.git')
md5sums=('SKIP')

pkgver() {
   cd "$_gitname"
   git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
   cd "$_gitname"
   mkdir -p build
   cd build
   cmake ../ -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so 
-DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ -DCMAKE_INSTALL_PREFIX=/usr ..
   make
}

package() {
   cd "${_gitname}/build"
   make DESTDIR="$pkgdir" install
}

However, I still face the following error:

[phung@archlinux qsapecng]$ makepkg -s
==> Making package: qsapecng-git v2.1.1.r0.ga5b16f4-1 (Sat Mar 10 11:05:39 +08 2018)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for phung: 
Sorry, try again.
[sudo] password for phung: 
resolving dependencies...
looking for conflicting packages...

Packages (1) qwt-6.1.3-3

Total Download Size:    3.50 MiB
Total Installed Size:  18.40 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 qwt-6.1.3-3-x86_64                                                                                     3.5 MiB   162K/s 00:22 [#############################################################################] 100%
(1/1) checking keys in keyring                                                                                                 [#############################################################################] 100%
(1/1) checking package integrity                                                                                               [#############################################################################] 100%
(1/1) loading package files                                                                                                    [#############################################################################] 100%
(1/1) checking for file conflicts                                                                                              [#############################################################################] 100%
(1/1) checking available disk space                                                                                            [#############################################################################] 100%
:: Processing package changes...
(1/1) installing qwt                                                                                                           [#############################################################################] 100%
Optional dependencies for qwt
    qt5-tools: For Designer plugin
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning qsapecng git repo...
Cloning into bare repository '/home/phung/Downloads/qsapecng/qsapecng'...
remote: Counting objects: 888, done.
remote: Total 888 (delta 0), reused 0 (delta 0), pack-reused 888
Receiving objects: 100% (888/888), 1.91 MiB | 193.00 KiB/s, done.
Resolving deltas: 100% (474/474), done.
==> Validating source files with md5sums...
    qsapecng ... Skipped
==> Extracting sources...
  -> Creating working copy of qsapecng git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- Boost version: 1.66.0
-- Found Qwt: /usr/lib/libqwt-qt4.so (found suitable version "6.1.3", minimum required is "6.0.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/phung/Downloads/qsapecng/src/qsapecng/build
/home/phung/Downloads/qsapecng/PKGBUILD: line 25: -DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
[phung@archlinux qsapecng]$ 

Offline

#21 2018-03-10 08:51:51

progandy
Member
Registered: 2012-05-17
Posts: 5,192

Re: Request for PKGBUILD support of qsapecng

You must not simply add a linebreak in the cmake command. If you do, you have to escape it. https://stackoverflow.com/q/3871332
I tested the PKGBUILD I gave you and it worked without problems.

qwt is the wrong package, you do not need it at all. you need qwt-qt4 instead.

   cmake -DQWT_LIBRARY=/usr/lib/libqwt-qt4.so \
      -DQWT_INCLUDE_DIR=/usr/include/qwt-qt4/ \
      -DCMAKE_INSTALL_PREFIX=/usr ..

Last edited by progandy (2018-03-10 08:53:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB