![](https://secure.gravatar.com/avatar/f40b961fd497e2471960f7150d986610.jpg?s=120&d=mm&r=g)
I tried building a simple hello world example (attached) with qt5 and got an error from qmake-qt5: $ ls hello.cpp testqt5.pro $ qmake-qt5 Project ERROR: Unknown module(s) in QT: widgets gui core The attached patch fixes qt5 but it isn't very precise. It simply doesn't remove as many files from the compiled qt5 but I cannot narrow down which file(s) are really fixing the problem. Also, with qt4 and qt5 installed this error happens building wireshark: prt-get: updating /usr/ports/opt/wireshark prt-get: starting build Sun Sep 7 16:03:05 2014 =======> Building '/usr/ports/pkgs/wireshark#1.12.0-1.pkg.tar.gz'. [snip] CXX packet_list.o In file included from main_window_slots.cpp:33:0: ui_main_window.h:13:25: fatal error: QtGui/QAction: No such file or directory #include <QtGui/QAction> ^ compilation terminated. Makefile:1351: recipe for target 'main_window_slots.o' failed make[2]: *** [main_window_slots.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/crux/wireshark/src/wireshark-1.12.0/ui/qt' Makefile:3894: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/crux/wireshark/src/wireshark-1.12.0' Makefile:2030: recipe for target 'all' failed make: *** [all] Error 2 =======> ERROR: Building '/usr/ports/pkgs/wireshark#1.12.0-1.pkg.tar.gz' failed. Removing qt5 and leaving qt4 works. The resulting wireshark uses qt4 as the port doesn't say specifically not to. Wireshark has no dependency for qt4 or qt5 but if it finds qt installed it tries to use it. I'm not sure how to proceed. Should I submit a bug report for qt5? Should I also submit a bug report for wireshark? Am I the only one using qt5? wxpython-3.0.0 requires qt5 but other ports won't work with qt5 so a way must be devised to make it possible to have both installed I think. -Daryl
![](https://secure.gravatar.com/avatar/4c81bbb8a10f6dc5cc0135c383b0f645.jpg?s=120&d=mm&r=g)
On Sun, 07 Sep 2014 21:57:43 -0500 (CDT) Daryl F wrote:
Also, with qt4 and qt5 installed this error happens building wireshark:
=======> ERROR: Building '/usr/ports/pkgs/wireshark#1.12.0-1.pkg.tar.gz' failed.
QT5 GUI is broken in Wireshark, git snapshot is recommended for it, if you want it.
Removing qt5 and leaving qt4 works. The resulting wireshark uses qt4 as the port doesn't say specifically not to.
QT4 GUI builds fine, with QT5 installed, using 'sed -i "s:Qt5 Qt:Qt:g" configure ' line in Pkgfile.
Wireshark has no dependency for qt4 or qt5 but if it finds qt installed it tries to use it.
It also prefers gtk3 to gtk2.Btw, gtk3 might be mandatory for Wireshark-2.x
I'm not sure how to proceed. Should I submit a bug report for qt5? Should I also submit a bug report for wireshark?
Prefered upstream tool for switching between QT versions is qtchooser (https://qt.gitorious.org/qt/qtchooser), but to use it, both qt4 and qt5 binaries would have to be suffixed e.g qmake-qt4. qmake-qt5 etc. I made a port for it, and I just might test it one of these days, when qt4 finishes compiling ;) Pedja
![](https://secure.gravatar.com/avatar/4c81bbb8a10f6dc5cc0135c383b0f645.jpg?s=120&d=mm&r=g)
On Sun, 07 Sep 2014 21:57:43 -0500 (CDT) Daryl F wrote: Would you try to build attached Stellarium port with your patched version of QT5? I can no longer build it, cmake issues with qt5.Weird. Thanks. Pedja
![](https://secure.gravatar.com/avatar/f40b961fd497e2471960f7150d986610.jpg?s=120&d=mm&r=g)
On Mon, 8 Sep 2014, Predrag Ivanovic wrote:
On Sun, 07 Sep 2014 21:57:43 -0500 (CDT) Daryl F wrote:
Would you try to build attached Stellarium port with your patched version of QT5? I can no longer build it, cmake issues with qt5.Weird. Thanks.
Pedja
Hi Pedja, I get this with the patched version of qt: =======> Downloading 'http://downloads.sourceforge.net/stellarium/stellarium-0.13.0.tar.gz'. --2014-09-08 17:14:44-- http://downloads.sourceforge.net/stellarium/stellarium-0.13.0.tar.gz Resolving downloads.sourceforge.net... 216.34.181.59 Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://downloads.sourceforge.net/project/stellarium/Stellarium-sources/0.13.... [following] --2014-09-08 17:14:45-- http://downloads.sourceforge.net/project/stellarium/Stellarium-sources/0.13.... Reusing existing connection to downloads.sourceforge.net:80. HTTP request sent, awaiting response... 302 Found Location: http://tcpdiag.dl.sourceforge.net/project/stellarium/Stellarium-sources/0.13... [following] --2014-09-08 17:14:45-- http://tcpdiag.dl.sourceforge.net/project/stellarium/Stellarium-sources/0.13... Resolving tcpdiag.dl.sourceforge.net... 69.160.243.51 Connecting to tcpdiag.dl.sourceforge.net|69.160.243.51|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 94928628 (91M) [application/x-gzip] Saving to: '/usr/ports/source/stellarium-0.13.0.tar.gz.partial' 0K .......... .......... .......... .......... .......... 0% 209K 7m24s [snip download] 92650K .......... .......... .......... .......... .......... 99% 196K 0s 92700K ... 100% 57.5K=13m12s 2014-09-08 17:27:59 (117 KB/s) - '/usr/ports/source/stellarium-0.13.0.tar.gz.partial' saved [94928628/94928628] =======> WARNING: Packages should be built as root. =======> Building '/usr/ports/pkgs/stellarium#0.13.0-1.pkg.tar.gz'. bsdtar -p -o -C /var/tmp/crux/stellarium/src -xf /usr/ports/source/stellarium-0.13.0.tar.gz cp stellarium.desktop /var/tmp/crux/stellarium/src cp stellarium.png /var/tmp/crux/stellarium/src + build + cd stellarium-0.13.0 + sed -i s,share/man/man1/,man/man1, doc/CMakeLists.txt + mkdir -p builds/unix + cd builds/unix + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_ENABLE_NLS=0 DCMAKE_PREFIX_PATH=/usr/share/qt5 ../.. -- The C compiler identification is GNU 4.8.3 -- The CXX compiler identification is GNU 4.8.3 -- 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 -- 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 CMake Error at CMakeLists.txt:211 (FIND_PACKAGE): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeOutput.log". =======> ERROR: Building '/usr/ports/pkgs/stellarium#0.13.0-1.pkg.tar.gz' failed. The aforementioned /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeOutput.log doesnt' seem to contain anything useful: The system is: Linux - 3.12.28 - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/cc Build flags: -O2;-march=x86-64;-pipe 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 "/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/3.0.1/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ Build flags: -O2;-march=x86-64;-pipe 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 "/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/3.0.1/CompilerIdCXX/a.out" Determining if the C compiler works passed with the following output: Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec2513491764/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2513491764.dir/build.make CMakeFiles/cmTryCompileExec2513491764.dir/build make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2513491764.dir/testCCompiler.c.o /usr/bin/cc -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec2513491764.dir/testCCompiler.c.o -c /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTryCompileExec2513491764 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2513491764.dir/link.txt --verbose=1 /usr/bin/cc -O2 -march=x86-64 -pipe CMakeFiles/cmTryCompileExec2513491764.dir/testCCompiler.c.o -o cmTryCompileExec2513491764 -rdynamic make[1]: Leaving directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' Detecting C compiler ABI info compiled with the following output: Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec2503823376/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec2503823376.dir/build.make CMakeFiles/cmTryCompileExec2503823376.dir/build make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o /usr/bin/cc -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.0/Modules/CMakeCCompilerABI.c Linking C executable cmTryCompileExec2503823376 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2503823376.dir/link.txt --verbose=1 /usr/bin/cc -O2 -march=x86-64 -pipe -v CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec2503823376 -rdynamic Using built-in specs. COLLECT_GCC=/usr/bin/cc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.8.3/configure --prefix=/usr --mandir=/usr/man --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 Thread model: posix gcc version 4.8.3 (CRUX) COMPILER_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-O2' '-march=x86-64' '-pipe' '-v' '-o' 'cmTryCompileExec2503823376' '-rdynamic' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib/ld-linux-x86-64.so.2 -o cmTryCompileExec2503823376 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../.. CMakeFiles/cmTryCompileExec2503823376.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-unknown-linux-gnu/4.8.3/crtend.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o make[1]: Leaving directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' Parsed C implicit link information from above output: link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/make" "cmTryCompileExec2503823376/fast"] ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec2503823376.dir/build.make CMakeFiles/cmTryCompileExec2503823376.dir/build] ignore line: [make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp'] ignore line: [/usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1] ignore line: [Building C object CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o] ignore line: [/usr/bin/cc -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.0/Modules/CMakeCCompilerABI.c] ignore line: [Linking C executable cmTryCompileExec2503823376] ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2503823376.dir/link.txt --verbose=1] ignore line: [/usr/bin/cc -O2 -march=x86-64 -pipe -v CMakeFiles/cmTryCompileExec2503823376.dir/CMakeCCompilerABI.c.o -o cmTryCompileExec2503823376 -rdynamic ] ignore line: [Using built-in specs.] ignore line: [COLLECT_GCC=/usr/bin/cc] ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper] ignore line: [Target: x86_64-unknown-linux-gnu] ignore line: [Configured with: ../gcc-4.8.3/configure --prefix=/usr --mandir=/usr/man --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] ignore line: [Thread model: posix] ignore line: [gcc version 4.8.3 (CRUX) ] ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../:/lib/:/usr/lib/] ignore line: [COLLECT_GCC_OPTIONS='-O2' '-march=x86-64' '-pipe' '-v' '-o' 'cmTryCompileExec2503823376' '-rdynamic'] link line: [ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib/ld-linux-x86-64.so.2 -o cmTryCompileExec2503823376 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../.. CMakeFiles/cmTryCompileExec2503823376.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-unknown-linux-gnu/4.8.3/crtend.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o] arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-export-dynamic] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib/ld-linux-x86-64.so.2] ==> ignore arg [-o] ==> ignore arg [cmTryCompileExec2503823376] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o] ==> ignore arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib] arg [-L/lib/../lib] ==> dir [/lib/../lib] arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../..] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../..] arg [CMakeFiles/cmTryCompileExec2503823376.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-unknown-linux-gnu/4.8.3/crtend.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o] ==> ignore remove lib [gcc] remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] collapse library dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] ==> [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] collapse library dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../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-unknown-linux-gnu/4.8.3/../../..] ==> [/usr/lib] implicit libs: [c] implicit dirs: [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3;/usr/lib;/lib] implicit fwks: [] Determining if the CXX compiler works passed with the following output: Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec694988599/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec694988599.dir/build.make CMakeFiles/cmTryCompileExec694988599.dir/build make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec694988599.dir/testCXXCompiler.cxx.o /usr/bin/c++ -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec694988599.dir/testCXXCompiler.cxx.o -c /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec694988599 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec694988599.dir/link.txt --verbose=1 /usr/bin/c++ -O2 -march=x86-64 -pipe CMakeFiles/cmTryCompileExec694988599.dir/testCXXCompiler.cxx.o -o cmTryCompileExec694988599 -rdynamic make[1]: Leaving directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' Detecting CXX compiler ABI info compiled with the following output: Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec3095719115/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec3095719115.dir/build.make CMakeFiles/cmTryCompileExec3095719115.dir/build make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o /usr/bin/c++ -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.0/Modules/CMakeCXXCompilerABI.cpp Linking CXX executable cmTryCompileExec3095719115 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3095719115.dir/link.txt --verbose=1 /usr/bin/c++ -O2 -march=x86-64 -pipe -v CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec3095719115 -rdynamic Using built-in specs. COLLECT_GCC=/usr/bin/c++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.8.3/configure --prefix=/usr --mandir=/usr/man --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 Thread model: posix gcc version 4.8.3 (CRUX) COMPILER_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-O2' '-march=x86-64' '-pipe' '-v' '-o' 'cmTryCompileExec3095719115' '-rdynamic' '-shared-libgcc' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib/ld-linux-x86-64.so.2 -o cmTryCompileExec3095719115 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../.. CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtend.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o make[1]: Leaving directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp' Parsed CXX implicit link information from above output: link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp] ignore line: [] ignore line: [Run Build Command:"/usr/bin/make" "cmTryCompileExec3095719115/fast"] ignore line: [/usr/bin/make -f CMakeFiles/cmTryCompileExec3095719115.dir/build.make CMakeFiles/cmTryCompileExec3095719115.dir/build] ignore line: [make[1]: Entering directory '/var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp'] ignore line: [/usr/bin/cmake -E cmake_progress_report /var/tmp/crux/stellarium/src/stellarium-0.13.0/builds/unix/CMakeFiles/CMakeTmp/CMakeFiles 1] ignore line: [Building CXX object CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o] ignore line: [/usr/bin/c++ -O2 -march=x86-64 -pipe -o CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.0/Modules/CMakeCXXCompilerABI.cpp] ignore line: [Linking CXX executable cmTryCompileExec3095719115] ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3095719115.dir/link.txt --verbose=1] ignore line: [/usr/bin/c++ -O2 -march=x86-64 -pipe -v CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -o cmTryCompileExec3095719115 -rdynamic ] ignore line: [Using built-in specs.] ignore line: [COLLECT_GCC=/usr/bin/c++] ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/lto-wrapper] ignore line: [Target: x86_64-unknown-linux-gnu] ignore line: [Configured with: ../gcc-4.8.3/configure --prefix=/usr --mandir=/usr/man --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] ignore line: [Thread model: posix] ignore line: [gcc version 4.8.3 (CRUX) ] ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/] ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../:/lib/:/usr/lib/] ignore line: [COLLECT_GCC_OPTIONS='-O2' '-march=x86-64' '-pipe' '-v' '-o' 'cmTryCompileExec3095719115' '-rdynamic' '-shared-libgcc'] link line: [ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib/ld-linux-x86-64.so.2 -o cmTryCompileExec3095719115 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../.. CMakeFiles/cmTryCompileExec3095719115.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtend.o /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o] arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/collect2] ==> ignore arg [--eh-frame-hdr] ==> ignore arg [-m] ==> ignore arg [elf_x86_64] ==> ignore arg [-export-dynamic] ==> ignore arg [-dynamic-linker] ==> ignore arg [/lib/ld-linux-x86-64.so.2] ==> ignore arg [-o] ==> ignore arg [cmTryCompileExec3095719115] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crt1.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crti.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/crtbegin.o] ==> ignore arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib] arg [-L/lib/../lib] ==> dir [/lib/../lib] arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] arg [-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../..] ==> dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../..] arg [CMakeFiles/cmTryCompileExec3095719115.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-unknown-linux-gnu/4.8.3/crtend.o] ==> ignore arg [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib/crtn.o] ==> ignore remove lib [gcc_s] remove lib [gcc] remove lib [gcc_s] remove lib [gcc] collapse library dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] ==> [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3] collapse library dir [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../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-unknown-linux-gnu/4.8.3/../../..] ==> [/usr/lib] implicit libs: [stdc++;m;c] implicit dirs: [/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.3;/usr/lib;/lib] implicit fwks: [] -Daryl
![](https://secure.gravatar.com/avatar/4c81bbb8a10f6dc5cc0135c383b0f645.jpg?s=120&d=mm&r=g)
I found out why you couldn't build hello world, mkspecs for modules were removed (my bad). After yet another rebuild, everything seems to work now. For some reason, cmake does not pick up -DCMAKE_PREFIX_PATH, but does 'export CMAKE_PREFIX_PATH=/usr/share/qt5', and Stellarium builds fine. I'll clean up Pkgfile, rebuild, and open a bug for qt5 when I'm done. Thanks for bringing this up, btw. Pedja
participants (2)
-
Daryl F
-
Predrag Ivanovic