Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error message when trying to build with qmake from 5.15.2 static build
Forum Updated to NodeBB v4.3 + New Features

Error message when trying to build with qmake from 5.15.2 static build

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 657 Views 1 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.
  • C Offline
    C Offline
    Crag_Hack
    wrote on last edited by Crag_Hack
    #1

    Hi I have a peculiar problem... when I try to build my project using qmake from a static build of 5.15.2 using the below command, I get the below error message:

    ***update - this occurs in other projects as well

    qmake "CONFIG += static release" project.pro
    
    ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)" in file C:\qt-everywhere-src-5.15.2\qtbase\qmake\library\ioutils.cpp, line 54
    

    I used the following to build Qt static:

    set QTDIR=C:\qt-everywhere-src-5.15.2\qtbase
    set PATH=C:\qt-everywhere-src-5.15.2\qtbase\bin;%PATH%
    cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build"
    call vcvars64.bat
    cd C:\5.15.2_static_build_x64
    C:\qt-everywhere-src-5.15.2\configure -debug-and-release -confirm-license -platform win32-msvc2019 -opengl dynamic -static -static-runtime -nomake examples -no-compile-examples -nomake tests -nomake tools -prefix C:\Qt_5.15.2_MSVC2019_Static_x64 -openssl-linked -L C:\OpenSSL-VC-64\lib -I C:\OpenSSL-VC-64\include OPENSSL_LIBS="-llibcrypto -llibssl" -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -qt-freetype
    jom.exe -j 24
    jom.exe -j 24 install
    

    Any ideas what might have gone wrong? Possibly related topic:
    https://forum.qt.io/topic/36948/solved-changing-qt-conf-error-assert-filename-isempty-isabsolutepath-filename
    Here's my C:\5.15.2_static_build_x64\qtbase\bin\qt.conf just in case:

    [EffectivePaths]
    Prefix=..
    [DevicePaths]
    Prefix=C:/Qt_5.15.2_MSVC2019_Static_x64
    [Paths]
    Prefix=C:/Qt_5.15.2_MSVC2019_Static_x64
    HostPrefix=C:/Qt_5.15.2_MSVC2019_Static_x64
    Sysroot=
    SysrootifyPrefix=false
    TargetSpec=win32-msvc
    HostSpec=win32-msvc
    [EffectiveSourcePaths]
    Prefix=C:/qt-everywhere-src-5.15.2/qtbase
    

    Thanks!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      You have asked the Qt configure script to arrange installation into the directory "C:\Qt_5.15.2_MSVC2019_Static_x64". The qmake you should be building your project with is likely to be "C:\Qt_5.15.2_MSVC2019_Static_x64\bin\qmake", and the relevant qt.conf file would also live under "C:\Qt_5.15.2_MSVC2019_Static_x64" (not under the build folder).

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Crag_Hack
        wrote on last edited by
        #3

        Thanks Chris. I am using the correct qmake.exe. Also I searched my whole drive for qt.conf and only found it where reported.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Crag_Hack
          wrote on last edited by Crag_Hack
          #4

          I just rebuilt Qt static all over again and am getting the same error message on running qmake. Could this be a bug or something? Any ideas? Also when I switch back to qmake with a static build of 5.12.11 I get no errors.

          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