跳到內容

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 貼文
  • Qt Installer Framework: Spaces in target paths (Windows7-64)

    Unsolved spaces in paths installer win64
    9
    0 評價
    9 貼文
    4k 瀏覽
    D
    @martonmiklos said in Qt Installer Framework: Spaces in target paths (Windows7-64): @Peter.Chorn How did you managed to import the Dir component? In QIF 3 dynamic page example, there is the following definition (installscript.js): var Dir = new function () { this.toNativeSparator = function (path) { if (systemInfo.productType === "windows") return path.replace(/\//g, '\\'); return path; } };
  • Qt vsaddin 2017 failing to create project

    Unsolved
    2
    0 評價
    2 貼文
    482 瀏覽
    RatzzR
    @Wanz said in Qt vsaddin 2017 failing to create project: error dialog saying "Object reference not set to an instance of an object". Do you have VS 2017 Installed ? Is so try clearing AppData of VisualStudio ,VSCommon . Some times u can reset user data . To do that run devenv /resetuserdata.
  • RPI installing cross-compiling

    Solved
    9
    0 評價
    9 貼文
    2k 瀏覽
    K-StrK
    Hello, yes I opened a new topic https://forum.qt.io/topic/99703/gdb-error-the-selected-build-of-gdb-does-not-support-python-scripting Kurt
  • Cannot download sedkit-env-qtwebkit in ubuntu 18.04

    Solved
    5
    0 評價
    5 貼文
    825 瀏覽
    D
    @jsulm Thank you for clarifying this. :)
  • Qt5.12.0 configure for iMx6 issue

    Unsolved
    1
    0 評價
    1 貼文
    570 瀏覽
    尚無回覆
  • 0 評價
    4 貼文
    2k 瀏覽
    P
    I solved the problem. Actually this is the linker error. Some required libraries were missing, so I added them as per the Readme document of the GLG toolkit(for C++). I installed the compatible GLG program and in .pro file of Qt program the library path was properly included as : INCLUDEPATH += . /opt/glg3.7/include #comment (this line includes the header files) LIBS = -L/opt/glg3.7/lib -lglg_x11 -lglg_map_stub -lXt -lX11 -ljpeg -lpng -lz -ldl -lXft -lfontconfig -lfreetype #comment (-L includes the library folder and -l include the libraries itself)
  • QtPlatformHeaders and QCocoaNativeContext

    Solved
    4
    0 評價
    4 貼文
    703 瀏覽
    A
    Hi @SGaist , I actually found the code I was looking for in that old QtOpenCL project you linked. Turns out to be a lot simpler than I had originally thought! Very portable too. Here it is in case anyone searches in future: glWidget->makeCurrent(); if(CGLContextObj context = CGLGetCurrentContext()) { if(CGLShareGroupObj shareGroup = CGLGetShareGroup(context)) { cl_context_properties properties[] = { CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, cl_context_properties(shareGroup), 0 }; auto appleCLContext = cl::Context(CL_DEVICE_TYPE_ALL, properties); auto availableDevices = appleCLContext.getInfo<CL_CONTEXT_DEVICES>(); for(auto& d : availableDevices) { qDebug() << d.getInfo<CL_DEVICE_NAME>().c_str(); } } } NOTE: This method is specific to Apple which uses sharegroups to initialise OpenCL/OpenGL interoperability. The Windows and Linux methods are different.
  • QT nmake exception “Undefined Interface” at QTCharts “cartesianchartaxis_p.h”

    Unsolved
    3
    0 評價
    3 貼文
    537 瀏覽
    T
    QtCharts, I did qmake CONFIG+="debug_and_release build_all" and after that Qtcharts quide says I need to do make/nmake but when I did I've got the error shown in the question
  • Building QT with compiler flag _ITERATOR_DEBUG_LEVEL=0

    Unsolved
    2
    0 評價
    2 貼文
    518 瀏覽
    SGaistS
    Hi and welcome to devnet, You have to modify the VS2017 mkspec for that.
  • Boot to Qt and Xenomai ?

    Unsolved
    2
    0 評價
    2 貼文
    607 瀏覽
    SGaistS
    Hi, Boot2Qt being a commercial product, you should contact the Qt Company directly. Note that there's also Qt Functional Safety that might be of interest.
  • Qt versions missing

    Unsolved
    11
    0 評價
    11 貼文
    4k 瀏覽
    D
    for any ubuntu 18.04 users (like me) finding this discussion through web search... don't use the ubuntu QT install from apt-get, instead install open-source-QT from the QT website. It's installer program will install binaries, including qt-for-android into it's own subdirectory.
  • 1 評價
    5 貼文
    7k 瀏覽
    VistoufV
    @SGaist It worked!! 😄😄😄😄 Thanks!!! So for anyone else who stumbled here, the trick was to get this package from the Qt installer : MSVC 2017 64-bit And then go in Qt Creator, and use the aforementioned package as a "kit" to compile the project.
  • Can't configure Qt 5.12.0 with Qt for WebAssembly in Linux lubuntu

    Solved
    11
    0 評價
    11 貼文
    3k 瀏覽
    SGaistS
    In the preferences, go to Build And Run, then Qt Versions. Once you added your custom Qt, create a Kit for it and you are ready to go.
  • macdeployqt 5.12.1 command not found

    Solved
    3
    0 評價
    3 貼文
    2k 瀏覽
    A
    @J.Hilk I was trying to add the path, but my changes weren't saving. I tried again this morning and instead of closing the terminal to see if the changes were saved, I simply attempted to use macdeployqt and it worked! Now I have other issues to deal with and I need to figure out why my changes to path aren't saving, but at least I can use the macdeloyqt tool now! Thank You! Anton Bursch
  • Error while building/deploying - when executing 'qmake'

    Unsolved
    6
    0 評價
    6 貼文
    2k 瀏覽
    Pablo J. RoginaP
    @LiDe is your issue solved? If so, please don't forget to mark your post as such! Thanks.
  • Error on build with Static Qt 5.9.0

    Solved
    3
    0 評價
    3 貼文
    1k 瀏覽
    A
    solved by ./configure with -qt-zlib option.
  • This application failed to start because no Qt platform plugin could be initialized!

    Unsolved
    11
    0 評價
    11 貼文
    41k 瀏覽
    J
    @koahnig VCLTL can let my qt program run with out VC run time VC Runtime is terrible now!
  • How to use OpenVINO library in Qt5.9.1 on Ubuntu

    Unsolved
    2
    0 評價
    2 貼文
    837 瀏覽
    jsulmJ
    @Hank_Lee LIBS should actualy be like this: LIBS += -LPATH_TO_LIBS_DIR -lLIBA_NAME http://doc.qt.io/qt-5/qmake-variable-reference.html#libs LIBS += -L/usr/local/lib -lopencv_ \ -lopencv_highgui \ -lopencv_core \ -lopencv_imgproc \ -lopencv_imgcodecs \ -lopencv_video \ -lopencv_videoio \ ...
  • How do we install a missing module?

    Unsolved
    17
    0 評價
    17 貼文
    3k 瀏覽
    JKSHJ
    AFAIK, the "add" functionality only works in the Online installer.
  • Howto build QT5.10.0 static on MAC

    Unsolved
    16
    0 評價
    16 貼文
    6k 瀏覽
    jsulmJ
    @mzimmers On Mac "qmake" without ".exe" :-)