Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Performing Test Qt5Gui_PRIVATE_HEADER_FOUND - Failed
Forum Updated to NodeBB v4.3 + New Features

Performing Test Qt5Gui_PRIVATE_HEADER_FOUND - Failed

Scheduled Pinned Locked Moved Solved Qt WebKit
26 Posts 2 Posters 7.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Konstantin Tokarev

    @RaymondH Could you upload CMakeOutput.log and CMakeError.log?

    K Offline
    K Offline
    Konstantin Tokarev
    wrote on last edited by
    #7

    And CMakeCache.txt

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RaymondH
      wrote on last edited by
      #8

      Sorry, but apparently I don't have permission to attach files, so I just listed it here.

      Here is CMakeOutput.log (Part 1):

      The system is: Linux - 2.6.32-696.el6.x86_64 - x86_64
      Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
      Compiler: /opt/anss/bin/cc 
      Build flags: 
      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/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/2.8.12.2/CompilerIdC/a.out"
      
      Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
      Compiler: /opt/anss/bin/c++ 
      Build flags: 
      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/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out"
      
      Determining if the C compiler works passed with the following output:
      Change Dir: /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp
      
      Run Build Command:/usr/bin/gmake "cmTryCompileExec2362532096/fast"
      /usr/bin/gmake -f CMakeFiles/cmTryCompileExec2362532096.dir/build.make CMakeFiles/cmTryCompileExec2362532096.dir/build
      gmake[1]: Entering directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp'
      /usr/bin/cmake -E cmake_progress_report /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp/CMakeFiles 1
      Building C object CMakeFiles/cmTryCompileExec2362532096.dir/testCCompiler.c.o
      /opt/anss/bin/cc    -o CMakeFiles/cmTryCompileExec2362532096.dir/testCCompiler.c.o   -c /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp/testCCompiler.c
      Linking C executable cmTryCompileExec2362532096
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2362532096.dir/link.txt --verbose=1
      /opt/anss/bin/cc       CMakeFiles/cmTryCompileExec2362532096.dir/testCCompiler.c.o  -o cmTryCompileExec2362532096 -rdynamic 
      gmake[1]: Leaving directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp'
      
      
      Detecting C compiler ABI info compiled with the following output:
      Change Dir: /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp
      
      Run Build Command:/usr/bin/gmake "cmTryCompileExec1009398238/fast"
      /usr/bin/gmake -f CMakeFiles/cmTryCompileExec1009398238.dir/build.make CMakeFiles/cmTryCompileExec1009398238.dir/build
      gmake[1]: Entering directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp'
      /usr/bin/cmake -E cmake_progress_report /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp/CMakeFiles 1
      Building C object CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o
      /opt/anss/bin/cc    -o CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake/Modules/CMakeCCompilerABI.c
      Linking C executable cmTryCompileExec1009398238
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1009398238.dir/link.txt --verbose=1
      /opt/anss/bin/cc     -v CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o  -o cmTryCompileExec1009398238 -rdynamic  
      Reading specs from /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/specs
      COLLECT_GCC=/opt/anss/bin/cc
      COLLECT_LTO_WRAPPER=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper
      Target: x86_64-pc-linux-gnu
      Configured with: ./configure --with-pkgversion=ansys-20170413 --with-bugurl=mailto:EBU-DevServices@ansys.com --prefix=/tmp/toolchain --with-gnu-ld --with-gnu-as --disable-nls --enable-languages=c,c++,fortran --with-gmp=/tmp/toolchain --with-mpfr=/tmp/toolchain --with-mpc=/tmp/toolchain --with-cloog=/tmp/toolchain --with-libelf=/tmp/toolchain --with-libiconv-prefix=/tmp/toolchain --with-host-libstdcxx='-L/opt/anss/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib64 -lstdc++ -lm' --with-arch-32=i586 --with-cpu=generic --with-tune=generic --with-pic --enable-checking=release --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --enable-threads
      Thread model: posix
      gcc version 6.3.0 (ansys-20170413) 
      COMPILER_PATH=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/:/opt/anss/bin/../libexec/gcc/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/
      LIBRARY_PATH=/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/:/opt/anss/bin/../lib/gcc/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../:/lib/:/usr/lib/
      COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec1009398238' '-rdynamic' '-mtune=generic' '-march=x86-64'
       /opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/collect2 -plugin /opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/liblto_plugin.so -plugin-opt=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUgNiHy.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 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -rpath $ORIGIN -rpath $ORIGIN:$ORIGIN/../lib64:$ORIGIN/../../lib64:/opt/anss/lib64 -o cmTryCompileExec1009398238 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtbegin.o -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0 -L/opt/anss/bin/../lib/gcc -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../.. CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtend.o /usr/lib/../lib64/crtn.o
      COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec1009398238' '-rdynamic' '-mtune=generic' '-march=x86-64'
      gmake[1]: Leaving directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp'
      
      
      Parsed C implicit link information from above output:
        link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)]
        ignore line: [Change Dir: /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp]
        ignore line: []
        ignore line: [Run Build Command:/usr/bin/gmake "cmTryCompileExec1009398238/fast"]
        ignore line: [/usr/bin/gmake -f CMakeFiles/cmTryCompileExec1009398238.dir/build.make CMakeFiles/cmTryCompileExec1009398238.dir/build]
        ignore line: [gmake[1]: Entering directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp']
        ignore line: [/usr/bin/cmake -E cmake_progress_report /home/staff/rmhoffma/Qt/QtBuilds/qtwebkit/WebKitBuild/Release/CMakeFiles/CMakeTmp/CMakeFiles 1]
        ignore line: [Building C object CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o]
        ignore line: [/opt/anss/bin/cc    -o CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake/Modules/CMakeCCompilerABI.c]
        ignore line: [Linking C executable cmTryCompileExec1009398238]
        ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1009398238.dir/link.txt --verbose=1]
        ignore line: [/opt/anss/bin/cc     -v CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o  -o cmTryCompileExec1009398238 -rdynamic  ]
        ignore line: [Reading specs from /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/specs]
        ignore line: [COLLECT_GCC=/opt/anss/bin/cc]
        ignore line: [COLLECT_LTO_WRAPPER=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper]
        ignore line: [Target: x86_64-pc-linux-gnu]
        ignore line: [Configured with: ./configure --with-pkgversion=ansys-20170413 --with-bugurl=mailto:EBU-DevServices@ansys.com --prefix=/tmp/toolchain --with-gnu-ld --with-gnu-as --disable-nls --enable-languages=c,c++,fortran --with-gmp=/tmp/toolchain --with-mpfr=/tmp/toolchain --with-mpc=/tmp/toolchain --with-cloog=/tmp/toolchain --with-libelf=/tmp/toolchain --with-libiconv-prefix=/tmp/toolchain --with-host-libstdcxx='-L/opt/anss/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/../../../../lib64 -lstdc++ -lm' --with-arch-32=i586 --with-cpu=generic --with-tune=generic --with-pic --enable-checking=release --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --disable-nls --enable-threads]
        ignore line: [Thread model: posix]
        ignore line: [gcc version 6.3.0 (ansys-20170413) ]
        ignore line: [COMPILER_PATH=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/:/opt/anss/bin/../libexec/gcc/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/]
        ignore line: [LIBRARY_PATH=/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/:/opt/anss/bin/../lib/gcc/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib/:/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../:/lib/:/usr/lib/]
        ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTryCompileExec1009398238' '-rdynamic' '-mtune=generic' '-march=x86-64']
        link line: [ /opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/collect2 -plugin /opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/liblto_plugin.so -plugin-opt=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUgNiHy.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 --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -rpath $ORIGIN -rpath $ORIGIN:$ORIGIN/../lib64:$ORIGIN/../../lib64:/opt/anss/lib64 -o cmTryCompileExec1009398238 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtbegin.o -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0 -L/opt/anss/bin/../lib/gcc -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib -L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../.. CMakeFiles/cmTryCompileExec1009398238.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtend.o /usr/lib/../lib64/crtn.o]
          arg [/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/collect2] ==> ignore
          arg [-plugin] ==> ignore
          arg [/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/liblto_plugin.so] ==> ignore
          arg [-plugin-opt=/opt/anss/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper] ==> ignore
          arg [-plugin-opt=-fresolution=/tmp/ccUgNiHy.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 [--eh-frame-hdr] ==> 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 [-rpath] ==> ignore
          arg [$ORIGIN] ==> ignore
          arg [-rpath] ==> ignore
          arg [$ORIGIN:$ORIGIN/../lib64:$ORIGIN/../../lib64:/opt/anss/lib64] ==> ignore
          arg [-o] ==> ignore
          arg [cmTryCompileExec1009398238] ==> ignore
          arg [/usr/lib/../lib64/crt1.o] ==> ignore
          arg [/usr/lib/../lib64/crti.o] ==> ignore
          arg [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtbegin.o] ==> ignore
          arg [-L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0] ==> dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0]
          arg [-L/opt/anss/bin/../lib/gcc] ==> dir [/opt/anss/bin/../lib/gcc]
          arg [-L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64] ==> dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64]
          arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
          arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
          arg [-L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib] ==> dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib]
          arg [-L/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../..] ==> dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../..]
          arg [CMakeFiles/cmTryCompileExec1009398238.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 [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/crtend.o] ==> ignore
          arg [/usr/lib/../lib64/crtn.o] ==> ignore
        remove lib [gcc]
        remove lib [gcc_s]
        remove lib [gcc]
        remove lib [gcc_s]
        collapse library dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0] ==> [/opt/anss/lib/gcc/x86_64-pc-linux-gnu/6.3.0]
        collapse library dir [/opt/anss/bin/../lib/gcc] ==> [/opt/anss/lib/gcc]
        collapse library dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../lib64] ==> [/opt/anss/lib64]
        collapse library dir [/lib/../lib64] ==> [/lib64]
        collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
        collapse library dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/lib] ==> [/opt/anss/x86_64-pc-linux-gnu/lib]
        collapse library dir [/opt/anss/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../..] ==> [/opt/anss/lib]
        implicit libs: [c]
        implicit dirs: [/opt/anss/lib/gcc/x86_64-pc-linux-gnu/6.3.0;/opt/anss/lib/gcc;/opt/anss/lib64;/lib64;/usr/lib64;/opt/anss/x86_64-pc-linux-gnu/lib;/opt/anss/lib]
        implicit fwks: []
      
      1 Reply Last reply
      0
      • K Offline
        K Offline
        Konstantin Tokarev
        wrote on last edited by
        #9

        You can use any pastebin service

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RaymondH
          wrote on last edited by
          #10

          Apparently I don't have enough of a reputation, and had to wait 10 minutes before posting again...

          You can find the 3 files at this pastebin: https://pastebin.com/Lr1XEq1c

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Konstantin Tokarev
            wrote on last edited by
            #11
            /opt/anss/bin/c++    -fno-exceptions -fno-strict-aliasing -fno-rtti -std=c++11 -DQt5Gui_PRIVATE_HEADER_FOUND    CMakeFiles/cmTryCompileExec3077754407.dir/src.cxx.o  -o cmTryCompileExec3077754407 -rdynamic /home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib/libQt5Gui.so.5.9.6 /home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib/libQt5Core.so.5.9.6 -Wl,-rpath,/home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib
                /home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib/libQt5Gui.so.5.9.6: undefined reference to `memcpy@GLIBC_2.14'
                /home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib/libQt5Core.so.5.9.6: undefined reference to `clock_gettime@GLIBC_2.17'
                /home/staff/rmhoffma/Qt/qt-5.9.6-linx64-gcc630/lib/libQt5Gui.so.5.9.6: undefined reference to `inflateReset2@ZLIB_1.2.3.4'
                collect2: error: ld returned 1 exit status
            

            Looks like a problem with your compiler and/or Qt

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Konstantin Tokarev
              wrote on last edited by
              #12

              As for error reporting: yes, it's highly misleading, but unfortunately cmake doesn't allow making compilation tests without linking (and this test should check just that #include doesn't fail

              1 Reply Last reply
              0
              • R Offline
                R Offline
                RaymondH
                wrote on last edited by
                #13

                Ok, thanks. I will investigate.

                Thanks so much for taking the time to help.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Konstantin Tokarev
                  wrote on last edited by
                  #14

                  By chance, are you using custom mkspec when building Qt? Assuming that Qt is built with the same compiler

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    RaymondH
                    wrote on last edited by
                    #15

                    I have resolved the issue with the undefined references to the three libraries as indicated above.

                    However, though that was fixed, I now do indeed have an issue with the private headers not found, as shown below.

                    I shouldn't need to explicitly add the private header directories to my INCLUDE environment variables, should I? There would potentially be many of them. I'd expect them to be found automatically in some way... How is this done?

                    From the CMakeError.log file:

                    /opt/anss/bin/g++   -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -std=c++11 -DQt5Gui_PRIVATE_HEADER_FOUND -I/home/staff/rmhoffma/Qt/QtBuildBin/include -I/home/staff/rmhoffma/Qt/QtBuildBin/include/QtGui -I/home/staff/rmhoffma/Qt/QtBuildBin/include/QtCore -I/home/staff/rmhoffma/Qt/QtBuildBin/./mkspecs/linux-g++    -fPIC -o CMakeFiles/cmTryCompileExec1880278613.dir/src.cxx.o -c /home/staff/rmhoffma/Qt/QtBuilds/qtwebkitBuild/release/CMakeFiles/CMakeTmp/src.cxx
                    /home/staff/rmhoffma/Qt/QtBuilds/qtwebkitBuild/release/CMakeFiles/CMakeTmp/src.cxx:2:42: fatal error: private/qhexstring_p.h: No such file or directory
                             #include <private/qhexstring_p.h>
                                                              ^
                    compilation terminated.
                    gmake[2]: *** [CMakeFiles/cmTryCompileExec1880278613.dir/src.cxx.o] Error 1
                    gmake[2]: Leaving directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkitBuild/release/CMakeFiles/CMakeTmp'
                    gmake[1]: *** [cmTryCompileExec1880278613/fast] Error 2
                    gmake[1]: Leaving directory `/home/staff/rmhoffma/Qt/QtBuilds/qtwebkitBuild/release/CMakeFiles/CMakeTmp'
                    
                    Source file was:
                    
                            #include <private/qhexstring_p.h>
                            int main() { return 0; }
                    

                    Thanks for any assistance...

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      Konstantin Tokarev
                      wrote on last edited by
                      #16

                      CMake caches results of compilation tests in build directory (in CMakeCache.txt file), so I guess that you've fixed issue with unresolved libraries successfully but didn't clear cache after that

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        RaymondH
                        wrote on last edited by
                        #17

                        I delete everything from my build directory before running make, including any CMakeCache.txt file. Unless there is another location that files are stored on building, I believe I'm starting with a clean slate.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          Konstantin Tokarev
                          wrote on last edited by
                          #18

                          @RaymondH said in Performing Test Qt5Gui_PRIVATE_HEADER_FOUND - Failed:

                          -DQt5Gui_PRIVATE_HEADER_FOUND

                          What is in CMakeError.log if you don't add -DQt5Gui_PRIVATE_HEADER_FOUND?

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            RaymondH
                            wrote on last edited by RaymondH
                            #19

                            This is an automated script - i.e. it's configuring things using the OptionsQt.cmake file. I am not adding any parameters manually. How do I remove parameters that I didn't add and are added atomatically?

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              RaymondH
                              wrote on last edited by RaymondH
                              #20
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                Konstantin Tokarev
                                wrote on last edited by
                                #21

                                Ok, seems like you are just missing Qt5Gui_PRIVATE_INCLUDE_DIRS cmake variable in Qt5GuiConfig.cmake now

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  RaymondH
                                  wrote on last edited by
                                  #22

                                  So are you suggesting I make changes to the Qt installation to make my compilation work? I wouldn't think that should be necessary...

                                  The file is located at: <QtInstall>/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake

                                  There is logic in that file that is supposed to set the variable, but it is by-passed during this build because of the following conditional:

                                  if (NOT TARGET Qt5::Gui)

                                  Apparently, when this configuration step happens, the TARGET is Qt5::Gui, and hence this conditional branch is never entered.

                                  However, removing this conditional causes the QtWebKit configuration to fail in many many other ways, so it's not as simple as removing it.

                                  1 Reply Last reply
                                  0
                                  • K Offline
                                    K Offline
                                    Konstantin Tokarev
                                    wrote on last edited by
                                    #23

                                    Apparently, when this configuration step happens, the TARGET is Qt5::Gui

                                    No, this condition means "if target Qt5::Gui wasn't defined yet" (sort of guard against double inclusion)

                                    Qt5Gui_PRIVATE_INCLUDE_DIRS may be empty if you are using shadow build when building Qt, see https://bugreports.qt.io/browse/QTBUG-37417

                                    1 Reply Last reply
                                    1
                                    • R Offline
                                      R Offline
                                      RaymondH
                                      wrote on last edited by
                                      #24

                                      Apparently a former build, or something, created the following files, which show up as new files when doing a git status command:

                                              Source/JavaScriptCore/disassembler/udis86/ud_optable.pyc
                                              Source/WebCore/inspector/CodeGeneratorInspectorStrings.pyc
                                              Source/WebKit2/Scripts/webkit2/__init__.pyc
                                              Source/WebKit2/Scripts/webkit2/messages.pyc
                                              Source/WebKit2/Scripts/webkit2/model.pyc
                                              Source/WebKit2/Scripts/webkit2/parser.pyc
                                      

                                      Once I delete these files, and reconfigure, the problem seems to have gone away.

                                      Thanks Konstantin for your time.

                                      K 1 Reply Last reply
                                      0
                                      • R RaymondH

                                        Apparently a former build, or something, created the following files, which show up as new files when doing a git status command:

                                                Source/JavaScriptCore/disassembler/udis86/ud_optable.pyc
                                                Source/WebCore/inspector/CodeGeneratorInspectorStrings.pyc
                                                Source/WebKit2/Scripts/webkit2/__init__.pyc
                                                Source/WebKit2/Scripts/webkit2/messages.pyc
                                                Source/WebKit2/Scripts/webkit2/model.pyc
                                                Source/WebKit2/Scripts/webkit2/parser.pyc
                                        

                                        Once I delete these files, and reconfigure, the problem seems to have gone away.

                                        Thanks Konstantin for your time.

                                        K Offline
                                        K Offline
                                        Konstantin Tokarev
                                        wrote on last edited by
                                        #25

                                        @RaymondH This *.pyc files could not have any impact on cmake stage

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          RaymondH
                                          wrote on last edited by
                                          #26

                                          I don't know. Regardless, removing these files makes my problem go away.

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved