Skip to content

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.8k Topics 51.2k Posts
  • imagevi3d installation problem

    Unsolved
    2
    0 Votes
    2 Posts
    583 Views
    SGaistS
    Hi, Can you show the error you got in the compilation window ?
  • Yocto: cross-compile problem with QtCreator

    Unsolved
    3
    0 Votes
    3 Posts
    2k Views
    MilindurM
    Did you find a solution for this problem? I currently have the same issue.
  • Qml Module Not Found - Error.

    Unsolved qtcreator
    4
    0 Votes
    4 Posts
    3k Views
    L
    Hey Mathan, You may have already gotten around this by now, but the "Esri.ArcGISRuntime 100.0" namespace is for use with the SDK. If you are using AppStudio, you will import AppFramework. To further add to the issues, AppStudio exposes the 10.2.6 version of ArcGIS Runtime at this time, and so it is not able to use the 100.0 ("Quartz") version. If you are looking to use version 100.0, you will currently need to use Qt standalone, not with AppStudio. Luke
  • Qt installation problem

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    crazyprogrammerC
    Thanks @SGaist . Thank you very much . I have done it :) now .
  • How install Qt from tmp in Ubuntu?

    installer
    3
    0 Votes
    3 Posts
    2k Views
    feniks_fireF
    @raven-worx Ehh I know that is also offline installer but as I said "Well I have limit for internet and I want to ask a question." Maybe I must better explain my problem. I also said " I see in '/tmp' folder in Ubuntu I have all files" for qt installation. So I have for example "5.7.0-1qt-everywhere-opensource-src-5.7.0 .7z" from "http://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_57_src_doc_examples/qt.57.src/", I have "4.0.3-0qtcreator.7z" from "https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/tools_qtcreator/qt.tools.qtcreator/" and like this I have all other package. I can extract "4.0.3-0qtcreator.7z" and I have full working Qt Creator but these packages is few hundred and I don't know where I must extract each package and probably it must not work. Each folder have also "installscript.qs". I think there must be some way to install them as it does after the installer online downloading files. Maybe someone know how to run in Linux *.qs files similar to this: installscript.qs for 4.0.3-0qtcreator.7z: /**************************************************************************** ** ** Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Digia. For licensing terms and ** conditions see http://qt.digia.com/licensing. For further information ** use the contact form at http://qt.digia.com/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Digia gives you certain additional ** rights. These rights are described in the Digia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3.0 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU General Public License version 3.0 requirements will be ** met: http://www.gnu.org/copyleft/gpl.html. ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ var native_path_separator = "/"; // constructor function Component() { component.loaded.connect(this, Component.prototype.loaded); installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown); installer.finishButtonClicked.connect(this, Component.prototype.installationFinished); installer.valueChanged.connect(this, Component.prototype.reactOnTargetDirChange); if (installer.value("os") == "win") { // Creator needs vcredist 32bit on windows component.addDependency("qt.tools.vcredist_msvc2013_x86"); } if (installer.value("os") == "x11") { // set installation directory installer.setValue("EmbeddedInstallationRootDir", "/usr/local/Trolltech"); installer.setValue("EmbeddedToolchainDir", "/usr/local/angstrom/arm"); } // set the default values to SDKToolBinary and QtCreatorInstallerSettingsFile Component.prototype.reactOnTargetDirChange("TargetDir", installer.value("TargetDir")); } Component.prototype.loaded = function() { try { if (installer.value("os") == "win" && installer.isInstaller()) installer.addWizardPageItem(component, "AssociateCommonFiletypesForm", QInstaller.TargetDirectory); } catch(e) { print(e); } } Component.prototype.beginInstallation = function() { if (installer.value("os") === "win") component.addStopProcessForUpdateRequest(component.qtCreatorBinaryPath); } Component.prototype.reactOnTargetDirChange = function(key, value) { if (key == "TargetDir") { component.qtCreatorBinaryPath = value; if (installer.value("os") == "win") { installer.setValue("QtCreatorInstallerSettingsFile", value + "//Tools/QtCreator/share/qtcreator/QtProject/QtCreator.ini"); installer.setValue("SDKToolBinary", value + "\\/Tools/QtCreator\\bin\\sdktool.exe"); component.qtCreatorBinaryPath = value + "\\/Tools/QtCreator\\bin\\qtcreator.exe"; component.qtCreatorBinaryPath = component.qtCreatorBinaryPath.replace(/\//g, "\\"); } else if (installer.value("os") == "mac") { installer.setValue("QtCreatorInstallerSettingsFile", value + "//Tools/QtCreator/Qt Creator.app/Contents/Resources/QtProject/QtCreator.ini"); installer.setValue("SDKToolBinary", value + "//Tools/QtCreator/Qt Creator.app/Contents/Resources/sdktool"); component.qtCreatorBinaryPath = value + "//Tools/QtCreator/Qt Creator.app/Contents/MacOS/Qt Creator"; // fix duplicate forward slashes in path component.qtCreatorBinaryPath = component.qtCreatorBinaryPath.replace(/\/+/g, "/"); } else { installer.setValue("QtCreatorInstallerSettingsFile", value + "//Tools/QtCreator/share/qtcreator/QtProject/QtCreator.ini"); installer.setValue("SDKToolBinary", value + "//Tools/QtCreator/libexec/qtcreator/sdktool"); component.qtCreatorBinaryPath = value + "//Tools/QtCreator/bin/qtcreator"; // fix duplicate forward slashes in path component.qtCreatorBinaryPath = component.qtCreatorBinaryPath.replace(/\/+/g, "/"); } } } registerCommonWindowsFileTypeExtensions = function() { var headerExtensions = new Array("h", "hh", "hxx", "h++", "hpp"); for (var i = 0; i < headerExtensions.length; ++i) { component.addOperation("RegisterFileType", headerExtensions[i], component.qtCreatorBinaryPath + " -client \"%1\"", "C++ Header file", "text/plain", component.qtCreatorBinaryPath + ",3", "ProgId=QtProject.QtCreator." + headerExtensions[i]); } var cppExtensions = new Array("cc", "cxx", "c++", "cp", "cpp"); for (var i = 0; i < cppExtensions.length; ++i) { component.addOperation("RegisterFileType", cppExtensions[i], component.qtCreatorBinaryPath + " -client \"%1\"", "C++ Source file", "text/plain", component.qtCreatorBinaryPath + ",2", "ProgId=QtProject.QtCreator." + cppExtensions[i]); } component.addOperation("RegisterFileType", "c", component.qtCreatorBinaryPath + " -client \"%1\"", "C Source file", "text/plain", component.qtCreatorBinaryPath + ",1", "ProgId=QtProject.QtCreator.c"); } registerWindowsFileTypeExtensions = function() { component.addOperation("RegisterFileType", "ui", component.qtCreatorBinaryPath + " -client \"%1\"", "Qt UI file", "text/plain", component.qtCreatorBinaryPath + ",4", "ProgId=QtProject.QtCreator.ui"); component.addOperation("RegisterFileType", "pro", component.qtCreatorBinaryPath + " -client \"%1\"", "Qt Project file", "text/plain", component.qtCreatorBinaryPath + ",5", "ProgId=QtProject.QtCreator.pro"); component.addOperation("RegisterFileType", "pri", component.qtCreatorBinaryPath + " -client \"%1\"", "Qt Project Include file", "text/plain", component.qtCreatorBinaryPath + ",6", "ProgId=QtProject.QtCreator.pri"); component.addOperation("RegisterFileType", "qbs", component.qtCreatorBinaryPath + " -client \"%1\"", "Qbs Project file", "text/plain", component.qtCreatorBinaryPath + ",5", "ProgId=QtProject.QtCreator.qbs"); component.addOperation("RegisterFileType", "qs", component.qtCreatorBinaryPath + " -client \"%1\"", "Qt Script file", "text/plain", component.qtCreatorBinaryPath + ",0", "ProgId=QtProject.QtCreator.qs"); component.addOperation("RegisterFileType", "qml", component.qtCreatorBinaryPath + " -client \"%1\"", "Qt Quick Markup language file", "text/plain", component.qtCreatorBinaryPath + ",7", "ProgId=QtProject.QtCreator.qml"); } Component.prototype.createOperations = function() { // Call the base createOperations and afterwards set some registry settings component.createOperations(); var maintenanceToolPath; if (installer.value("os") == "win") { component.addOperation("CreateShortcut", component.qtCreatorBinaryPath, "@StartMenuDir@\\Qt Creator (Community).lnk", "workingDirectory=@homeDir@"); registerWindowsFileTypeExtensions(); if (component.userInterface("AssociateCommonFiletypesForm").AssociateCommonFiletypesCheckBox.checked) registerCommonWindowsFileTypeExtensions(); maintenanceToolPath = installer.value("TargetDir") + "/MaintenanceTool.exe"; } if (installer.value("os") == "x11") { component.addOperation("InstallIcons", installer.value("TargetDir") + "/Tools/QtCreator/share/icons" ); component.addOperation("CreateDesktopEntry", "DigiaQt-qtcreator-community.desktop", "Type=Application\nExec=" + component.qtCreatorBinaryPath + "\nName=Qt Creator (Community)\nGenericName=The IDE of choice for Qt development.\nIcon=QtProject-qtcreator\nTerminal=false\nCategories=Development;IDE;Qt;\nMimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.qt.qmakeprofile;application/vnd.qt.xml.resource;text/x-qml;text/x-qt.qml;text/x-qt.qbs;"); maintenanceToolPath = installer.value("TargetDir") + "/MaintenanceTool"; } if (installer.value("os") == "mac") { maintenanceToolPath = installer.value("TargetDir") + "/MaintenanceTool.app/Contents/MacOS/MaintenanceTool"; } var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); if (!installer.isOfflineOnly()) { // Configure UpdateInfo plugin component.addOperation("Settings", "path="+settingsFile, "method=set", "key=Updater/MaintenanceTool", "value="+maintenanceToolPath); } } function isRoot() { if (installer.value("os") == "x11" || installer.value("os") == "mac") { var id = installer.execute("/usr/bin/id", new Array("-u"))[0]; id = id.replace(/(\r\n|\n|\r)/gm,""); if (id === "0") { return true; } } return false; } Component.prototype.installationFinishedPageIsShown = function() { isroot = isRoot(); try { if (component.installed && installer.isInstaller() && installer.status == QInstaller.Success && !isroot) installer.addWizardPageItem( component, "LaunchQtCreatorCheckBoxForm", QInstaller.InstallationFinished ); } catch(e) { print(e); } } Component.prototype.installationFinished = function() { try { if (component.installed && installer.isInstaller() && installer.status == QInstaller.Success && !isroot) { var isLaunchQtCreatorCheckBoxChecked = component.userInterface("LaunchQtCreatorCheckBoxForm").launchQtCreatorCheckBox.checked; if (isLaunchQtCreatorCheckBoxChecked) installer.executeDetached(component.qtCreatorBinaryPath, new Array(), "@homeDir@"); } } catch(e) { print(e); } }
  • trouble with phonon

    Locked Unsolved
    2
    0 Votes
    2 Posts
    788 Views
    SGaistS
    Hi, Please don't post the same question on multiple sub-forum, one is enough. Duplicate Closing this one.
  • Could not find or load the Qt platform plugin "windows"

    Solved windows internet explo
    3
    0 Votes
    3 Posts
    3k Views
    jonawebbJ
    Thanks. I finally figured out the problem. The platforms folder wasn't being found because it wasn't included in the search path. I had code that would include the install directory in the search path, using addLibraryPath, but the code was #ifdef'd with the Q_WS_WIN macro. This seems to be Q_OS_WIN in Qt5. So the code wasn't executed. In Chrome, apparently, the current directory is set to the directory of the .dll prior to execution. So the code worked in Chrome. But this doesn't seem to happen in Internet Explorer. At one point I'd run across a potential fix for this problem -- set the environment variable QT_QPA_PLATFORM_PLUGIN_PATH to the platforms folder -- but I think the variable name was misspelled in the forum. So when I tried to set it, it had no effect. BTW, I eventually found the problem by downloading the Qt 5.5.1 source, and using the .pdb files included with my distribution to see what was going on. This was troublesome, but invaluable. So thanks to the Qt developers for making that possible.
  • Schedule/Plan of 5.6.2? (or how to find up-to-date "plan" release date)

    Unsolved
    2
    0 Votes
    2 Posts
    790 Views
    S
    got some answers from Jani Heikkinen: current schedule: Honestly speaking I don't have concrete schedule for 5.6.2 atm. I am just back from my summer holiday & starting to collect information related to coming releases. I think Qt 5.6.2 will come ~Sep/Oct but let's see... where to be notified: I'll update the plan in https://wiki.qt.io/Qt-5.6-release when available. Please register in releasing ML (http://lists.qt-project.org/mailman/listinfo/releasing) to get the latest info as well
  • 0 Votes
    4 Posts
    3k Views
    timdayT
    Actually, I have now seen the .mov files played by QML's MediaPlayer on Windows. I'm making things slightly difficult for myself by not having a Windows machine in the house, so this has all been on an AWS EC2 instance; that gives you a Server2012R2 session... but that seems to have no media player support at all until you enable "Windows Desktop Experience". I also installed a "K-Lite Codec Pack", but since I'd installed that before I enabled the "desktop experience" stuff, I'm not sure if it was needed or not (will try and remove the codec pack at some point, if it's uninstallable; strongly suspect it is needed though). Anyway, that's the existence proof the .mov files can work I was looking for. Thanks for the other suggestions... I'm not too keen on turning to other tools like VLC or ffmpeg if I can possibly avoid it. Stock Qt has so far served me remarkably well as a one-stop shop for multiplatform applications and I'm very reluctant to have to bring in something else too. Transcoding my video content to something that worked everywhere would have been a more attractive solution if needed.
  • Some lib file "No such file or directory"

    2
    0 Votes
    2 Posts
    3k Views
    G
    Similar issue here..Any idea ?
  • Install Qt 5.7.0 on Centos 6.0

    Unsolved
    4
    1 Votes
    4 Posts
    1k Views
    jsulmJ
    @borisa Yes, it should be possible. For openssl you should install the dev package before building Qt.
  • /MP: No such file or directory (when Building sankore on Windows)

    Solved
    10
    0 Votes
    10 Posts
    7k Views
    G
    @musimbate I'm encountering the same issue..Please tell me how u solved it ? :)
  • How to deploy windows app on a clean machine?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    L
    I've built in realease mode, this is the reason why I've excluded all the *d.dll
  • QT Set up for Beagleboard Xm

    Unsolved
    1
    0 Votes
    1 Posts
    336 Views
    No one has replied
  • Qt 5.0.1 - Project ERROR: Unknown module(s) in QT: phonon

    10
    0 Votes
    10 Posts
    23k Views
    G
    @musimbate said: reverted to Qt 4.8.1 Standard How did u revert to Qt 4.8.1 Standard ?
  • 0 Votes
    8 Posts
    5k Views
    HaxusH
    Thank you very much. The solution was the ' -nomake examples ' option. I don't know where I got the -no-make-examples option from. :P
  • Mac OS X deployment

    Unsolved
    8
    0 Votes
    8 Posts
    4k Views
    shavS
    @alejandro_pnz Did you run macdeployqt from the Qt install folder? I had the same problem when try to call macdeployqt command from the another folder. I will try to explain what i mean: I have a application in folder /Users/andrew/qt_projects/myapp/build Go to this folder with command: cd /Users/andrew/qt_projects/myapp/build In folder I call command qt_install_folder/5.7/clang_64/bin/macdeploy myapp.app In current folder I receive myapp.app with all needs libraries and frameworks. And if I run it on my mac it's works fine. But if this application will open on another mac the users will get the same error with framework (in my case it's QML plugin). The solution for this it's run macdeployqt from the Qt install folder. You need to go to folder where is macdeplotqt binary file and run this command from there. Another way it's configure QtCreator to run macdeploy command when you build your app. For this create a new Build step in Project settings. And add Custom Build Step where set next properties: command: macdeployqt arguments: %{buildDir}/YouprojectName.app -qmldir=fullpath_to_qml_folder -always-overwrite -verbose=2 -codesign="3rd Party Mac Developer Application: Team Name" working folder: $QTDIR/bin This configuration works for me. Please check the arguments for macdeploqt for your project. I hope this will help to you.
  • setup with Qt installer framework, in french (or other language)

    Unsolved
    2
    0 Votes
    2 Posts
    727 Views
    S
    in other words,is it possible to have the whole setup in french (or in other language) with the qt installer framework on macos and linux ?
  • No iOS Simulator option for deploy, how to add it ?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    S
    @jsulm no Device type field. Nothing about devices !
  • 5.7.0 compiled with 3D module, but no connection to VS2013

    Unsolved
    2
    0 Votes
    2 Posts
    466 Views
    raven-worxR
    @Urgus there is no official VS Qt addin yet. See this to keep track. Edit: This may only be true for VS2015, my fault Setting the include path and the lib-file to link manually should be fine though.