跳到內容

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.7k 主題 51.1k 貼文
  • External tool and versionAtLeast(variablename, versionNumber)

    Solved
    3
    0 評價
    3 貼文
    594 瀏覽
    P
    Thanks a lot! As expected, your changes didn't work here either but they gave me the clue I needed! I'm obtaining the path to the tool before that fragment, and all I had to do was enclose the code in a !build_pass { } block. !build_pass { TOOLPATH=$$shell_path($$TOOLPATH/$$TOOLEXE) message("Path to tool: " $$TOOLPATH) # Invoke the tool for a version check. TOOLVER=$$system($$TOOLPATH --ver) message(Tool version is $$TOOLVER".") TOOLMINVER=1.0.52 !versionAtLeast(TOOLVER, $${TOOLMINVER}) { message("Unsupported tool version " $${TOOLVER}".") error("We require tool version "$$TOOLMINVER" or greater") } } This means at some point during the qmake process the path is computed incorrectly. The !build_pass block solved it.
  • qmake error with project files on samba share

    Solved windows qmake network share
    4
    0 評價
    4 貼文
    1k 瀏覽
    aha_1980A
    @smhrambo deleting the *.pro.user file often helps when you do such moves...
  • macOS: Qt .. tested with .. 10.13 SDK..., you're using 10.13.4

    Solved
    12
    0 評價
    12 貼文
    6k 瀏覽
    P
    I don't know if this is going to be suitable for you (or for others). My suggestion would be to only keep one version of Qt and always remove the ones you currently don't need or don't want to build with. Makes the "Projects" selection much easier and prevents this kind of accident.
  • Deploy and create installer in Windows 7

    Unsolved qt installer windows
    1
    0 評價
    1 貼文
    490 瀏覽
    尚無回覆
  • Can't find libQt5Core lib

    Solved
    22
    0 評價
    22 貼文
    9k 瀏覽
    R
    Looks like older compiler solved this topic.
  • [Solved]QSerialPort: undefined reference. qt 5.1.1, linux x64

    Solved
    4
    0 評價
    4 貼文
    9k 瀏覽
    R
    @SGaist Thanks
  • error: 'QIcon' is an incomplete type

    Unsolved
    2
    0 評價
    2 貼文
    2k 瀏覽
    Chris KawaC
    Hi, welcome to the forum. Seems you're just missing an include: #include <QIcon>.
  • Static build with mysql

    Unsolved
    9
    0 評價
    9 貼文
    3k 瀏覽
    C
    @caiomarcos he got succeed , but i can't get what he did. FYR https://forum.qt.io/topic/94378/qt-static-with-mysql-issue
  • How to install on a different machine?

    Unsolved
    3
    0 評價
    3 貼文
    438 瀏覽
    ODБOïO
    @dblanch Hi and welcome to forum, Please give more details about what you are trying to do, your qt version yr compiler and your os so people can help you.
  • Using OpenCV Mac Framework with QT5 on Mojhave

    Unsolved
    10
    0 評價
    10 貼文
    2k 瀏覽
    ademmlerA
    A possible Solution: after readings tons of threads I found one explaining how to compile the actual OpenCV 3.8 a single lib (opencv_world.dylib). (Sorry I lost the link from which I got the idea.) Than I included this into my pro file. After this I did clean, than I had to repast the whole code into QTCreator. After this - and only then - the code got recognized correctly and the calcHist function was found. Thx to everybody for helping. My actual *.pro file: #------------------------------------------------- Project created by QtCreator 2016-06-07T18:10:12 #------------------------------------------------- QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += sdk_no_version_check CONFIG -= app #QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14 TARGET = CameraBox TEMPLATE = app DEFINES += QT_DEPRECATED_WARNINGS CONFIG += c++11 SOURCES += main.cpp mainwindow.cpp camviewer.cpp mywidget.cpp HEADERS += mainwindow.h camviewer.h mywidget.h FORMS += mainwindow.ui mywidget.ui INCLUDEPATH += $$PWD/. DEPENDPATH += $$PWD/. INCLUDEPATH += /usr/local/include LIBS += -L/usr/local/lib -lopencv_world debug: DESTDIR = $$PWD/debug/mac release: DESTDIR = $$PWD/release/mac OBJECTS_DIR = $$DESTDIR/tmp MOC_DIR = $$DESTDIR/tmp RCC_DIR = $$DESTDIR/tmp UI_DIR = $$DESTDIR/tmp
  • Clang code model and cross compiling toolchain not working in Qt Creator

    Solved qt creator clang analyser code model
    5
    0 評價
    5 貼文
    2k 瀏覽
    aha_1980A
    Hi @MrRobot, Glad you figured it out. So please mark this topic as SOLVED now. Thanks! PS: If you want to move a topic later, just ask a moderator to do so (if you can't do yourself).
  • "Deployed" application not working on mac

    Unsolved
    2
    0 評價
    2 貼文
    366 瀏覽
    SGaistS
    Hi, What version of Qt are you using ? What version of macOS are you running ? What QML feature are you using ? What does the crash report of macOS show you ?
  • 0 評價
    2 貼文
    1k 瀏覽
    SGaistS
    Hi, You have to build your application on the oldest Linux distribution you have to support.
  • QT Windows 7 Installation Issues

    Solved
    23
    0 評價
    23 貼文
    11k 瀏覽
    M
    UPDATE*** (In case others have similar problems) 9 Months later I went on tackling this problem. Turns out it was the file wall. It was preventing QtCreator.exe and QMake.exe from calling the cmd.exe. That is why when I was running things manually it would appear like everything was working just fine, but as soon as I tried to use QtCreator it would not work. I was actually able to go into the windows event logs and see the blocking event from occurring. After getting those white listed everything seems to be working good now.
  • How to set access rights in folders with the Qt Installer Framework

    Solved
    7
    0 評價
    7 貼文
    2k 瀏覽
    S
    So, finally, I got a solution (even 2 solutions): brackets. installer.executeDetached( "cmd", ["/C", "mkdir", "C:\\ProgramData\\My Company\\MyApp"], "C:\\ProgramData" ); With this trick even the addOperation() function works fine: component.addOperation( "Execute", "cmd", ["/C", "mkdir", C:\\ProgramData\\My Company\\MyApp"] ); I think this is closed.
  • QWT plugin into QT Designer specified module could not be found

    Unsolved plugins qtcreator qtdesigner qwt
    7
    0 評價
    7 貼文
    2k 瀏覽
    Pablo J. RoginaP
    @DSpider great! please don't forget to mark your post as solved. Thanks.
  • Facing problem to install QT on macOS High Sierra 10.13.6 (Xcode 9.4)

    Unsolved
    2
    0 評價
    2 貼文
    486 瀏覽
    SGaistS
    Hi, What exactly did you do ? What did fail ? What are you trying to use an outdated version of Qt ?
  • Qt binary creator: Installation of own package on top of old version

    Unsolved
    4
    0 評價
    4 貼文
    1k 瀏覽
    mrjjM
    @KalleQt yep seems to be unresolved. :( I wonder if the other solution does work. https://stackoverflow.com/questions/46455360/workaround-for-qt-installer-framework-not-overwriting-existing-installation/46614107#46614107
  • Deployment problem

    Solved
    3
    0 評價
    3 貼文
    559 瀏覽
    G
    @hskoglund Yep that was it - thanks
  • QT install, fourth attempt

    Solved
    27
    0 評價
    27 貼文
    7k 瀏覽
    jsulmJ
    @BKBK OK, that's fine. But next time if you install Qt you should do it like I suggested - for me it was always working out of the box. Happy coding!