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. QT 5.0.2 Static Build MSVC 2010 HELP
Forum Updated to NodeBB v4.3 + New Features

QT 5.0.2 Static Build MSVC 2010 HELP

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.0k 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.
  • G Offline
    G Offline
    gametack
    wrote on last edited by
    #1

    Hi, I resently started using qt creator, and I have already created an application and I want to create a static build of qt so I dont have to include the dlls when running the exe.
    I have look at some tutorials about build QT statically and so far I havent gotten very far. I have tried this so far;

    • Download qt-everywhere-opensource-src-5.0.2,
    • unzipped it into a folder,
    • editted qmake.config in qtbase\mkspecs\win32-msvc2010\ for static build
    • ran Visual Studio Command Prompt (2010), used cd command to change the dir to the qt source folder
    • then i ran this command configure.exe -static -release -opensource -confirm-license -opengl desktop -mp -platform win32-msvc2010

    After that It runs till it gets to a point where this erroe message is displayed;

    @Running syncqt...
    <srcbase> = C:/Qt/sourceQT5.0.2/qt-everywhere-opensource-src-5.0.2/qtbase
    <outbase> = C:/Qt/sourceQT5.0.2/qt-everywhere-opensource-src-5.0.2/qtbase
    Creating qmake...

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

    Running configuration tests...
    ASSERT: "fileName.isEmpty() || isAbsolutePath(fileName)" in file C:\Qt\sourceQT5
    .0.2\qt-everywhere-opensource-src-5.0.2\qtbase\qmake\library\ioutils.cpp, line 6
    1
    QMake failed!
    *** qtbase/configure exited with non-zero status.@

    I have tried other configure commands but i still get the same error.
    I don't know what to do to build qt 5.0.2 statically. ANY HELP WILL BE MUCH APPRECIATED. THANKS.
    By the way, I use the webkit in my application.

    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