Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. I can't build debug qt5.9.1 lib by vs2017 but can build release
Forum Updated to NodeBB v4.3 + New Features

I can't build debug qt5.9.1 lib by vs2017 but can build release

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 1.5k Views
  • 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.
  • S Offline
    S Offline
    suclida
    wrote on last edited by suclida
    #1

    I have build the release qt lib, such as qt5core.lib. But exec the cmd below, I can't build debug.

    CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
    SET _ROOT=F:\qt-everywhere-opensource-src-5.9.1
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;F:\jom_1_1_2;%PATH%
    .\configure.bat -debug -nomake examples -nomake tests -skip qtwebengine -prefix F:\Qt\Qt5.9.1  -confirm-license -make-tool jom
    
    jom > jom.out 2>&1 && jom install >>jom.out 2>&1
    

    It seemed there is nothing error in jom.out.[https://drive.google.com/file/d/0ByMGxS90xzVlck53TTF5bUVjU0k/view?usp=sharing](link url)
    Could you help me to build the debug? Thank you very much!

    jsulmJ 1 Reply Last reply
    0
    • S suclida

      I have build the release qt lib, such as qt5core.lib. But exec the cmd below, I can't build debug.

      CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
      SET _ROOT=F:\qt-everywhere-opensource-src-5.9.1
      SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;F:\jom_1_1_2;%PATH%
      .\configure.bat -debug -nomake examples -nomake tests -skip qtwebengine -prefix F:\Qt\Qt5.9.1  -confirm-license -make-tool jom
      
      jom > jom.out 2>&1 && jom install >>jom.out 2>&1
      

      It seemed there is nothing error in jom.out.[https://drive.google.com/file/d/0ByMGxS90xzVlck53TTF5bUVjU0k/view?usp=sharing](link url)
      Could you help me to build the debug? Thank you very much!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @suclida You can build both debug and release in one go providing -debug-and-release parameter to configure.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        suclida
        wrote on last edited by
        #3

        I mkdir F:\qt-everywhere-opensource-src-5.9.1\qt-build and cd it to configure, then I build the debug successfully.
        Maybe I didn't remove the build_dir, so the debug can't create.

        1 Reply Last reply
        1
        • L Offline
          L Offline
          liuxin
          wrote on last edited by
          #4

          I was compiling qt5.9.3 with vs2017 and always get error. Can you tell me your step to compile source code ?

          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