跳到內容

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 貼文
  • QOpenGLWidget on Form

    Unsolved
    2
    0 評價
    2 貼文
    400 瀏覽
    SGaistS
    Hi and welcome to devnet, Usually you subclass QOpenGLWidget therefore I see two options: Promote feature of designer Create and setuo your QOpenGLWidget based class in the constructor of your custom widget constructor.
  • Unable to debug C/C++ - GDB complains about Python version

    Solved
    4
    0 評價
    4 貼文
    2k 瀏覽
    aha_1980A
    @Bioan, glad you got it working. So please mark this topic as SOLVED. Regards
  • Building Qt 5.10.1 from source on Linux(Ubuntu) using clang/LLVM

    Unsolved
    2
    0 評價
    2 貼文
    1k 瀏覽
    JKSHJ
    @geekie12 said in Building Qt 5.10.1 from source on Linux(Ubuntu) using clang/LLVM: I wanted to know the feasibility of building Qt 5.10.1 entirely using clang/LLVM on Linux(Ubuntu 17.10 x86_64). I think it should be OK. Clang is used to make the official builds of Qt for macOS/iOS/tvOS/watchOS. If something fails, take note of the exact error messages and post them here for help. I have tried to build on my side using clang(v 5.0.0-3) for Qt 5.10.1 from its source which is taking considerably long period of time(looks like expected though). Yes, Qt is a huge framework so building the whole thing could take a few hours (depending on which modules you enabled, and what your PC specs are)
  • seemingly useless files in appveyor artefacts

    Solved
    3
    0 評價
    3 貼文
    588 瀏覽
    MegamouseM
    Okay apparently I forgot to add --no-quick to our <PostBuildEvent> in the proj file. (I only added them to POST_BUILD in CMakeLists.txt before and excluded the Qt5Quick module from the qt settings.) At least now the Qt5Quick.dll is not created anymore.
  • Qt 5.6.2 ignores additional libraries, while building it from source

    Unsolved
    3
    0 評價
    3 貼文
    807 瀏覽
    S
    Well, i have built lzma using this same compiler, according to instructions prior to qt. git clone https://github.com/telegramdesktop/lzma.git cd lzma\C\Util\LzmaLib msbuild LzmaLib.sln /property:Configuration=Debug msbuild LzmaLib.sln /property:Configuration=Release cd ..\..\..\.. This produce lzma lib compiled by msvc2017. But if you look at their build manual, it is suggested to clone this first: git clone https://github.com/Microsoft/Range-V3-VS2015 range-v3 And in a qt installation, suggets this commands (its all done from a visual studio 2017 x86 native command prompt ): git clone git://code.qt.io/qt/qt5.git qt5_6_2 cd qt5_6_2 perl init-repository --module-subset=qtbase,qtimageformats git checkout v5.6.2 cd qtimageformats git checkout v5.6.2 cd ..\qtbase git checkout v5.6.2 git apply ../../../tdesktop/Telegram/Patches/qtbase_5_6_2.diff cd .. configure -debug-and-release -force-debug-info -opensource -confirm-license -static -I "%cd%..\openssl\Release\include" -no-opengl -openssl-linked OPENSSL_LIBS_DEBUG="%cd%..\openssl\Debug\lib\ssleay32.lib %cd%..\openssl\Debug\lib\libeay32.lib" OPENSSL_LIBS_RELEASE="%cd%..\openssl\Release\lib\ssleay32.lib %cd%..\openssl\Release\lib\libeay32.lib" -mp -nomake examples -nomake tests -platform win32-msvc2015 jom -j4 jom -j4 install cd .. So even though the compiler is msvc2017, they instruct to configure qt with win32-msvc2015. But i assume msvc2017/2015 have the same runtime version, plus i do not have any runtime incompability errors during compile time
  • Qt5, PyQt5 and opencv: problem with import

    Solved
    7
    0 評價
    7 貼文
    7k 瀏覽
    J
    @SGaist Thank you for the link i have installed opencv this way so i have also linked my opencv to my python3 virtual environment. i could finally solved my problem by following this link, i guess it is not the optimal method but it worked... http://www.nerdyweekly.com/posts/how-to-install-pyqt5-on-virtualenv-on-ubuntu-14.04/
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    7 瀏覽
    尚無回覆
  • QT build error

    17
    0 評價
    17 貼文
    9k 瀏覽
    S
    This can be overcome by setting path of icu bin folder to PATH environment variable. Just posted for reference, it may help someone to resolve this issue.
  • Can't open input file: 'zdll.lib'

    4
    0 評價
    4 貼文
    9k 瀏覽
    A
    @Shidharth This post was 8 years old... It would definitely have been better to start your own. Never do what the guy above did and just download a random dll. That's how you get malware and viruses embedded in your software. Also, never put dlls into visual studio's directory. Here is the website for zlib: https://zlib.net
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    1 瀏覽
    尚無回覆
  • Qt5.10.1 cross compile: configure errors

    Unsolved
    14
    1 評價
    14 貼文
    15k 瀏覽
    jsulmJ
    @sktrpi Just build QtCore, QtWidgets, networking stuff and QtSerial. I don't know how much space this will take but for sure much less than whole Qt build (and build will be faster and less dependencies needed :-)).
  • No 'Go to Slot' in the context menu

    Unsolved
    3
    0 評價
    3 貼文
    815 瀏覽
    aha_1980A
    Hi @Muz1 As suggested by @J-Hilk I'd try updating Creator. It should work with 3.5.1 also, but I'm afraid nobody will be able to help you with that problem...
  • SLOVED.Where define the QTDIR in visual studio?

    Unsolved
    2
    0 評價
    2 貼文
    8k 瀏覽
    raven-worxR
    @suclida IIRC in the QtAddin settings and/or at the beginning of the vcxproj-file.
  • How to create online installer with Qt Installer Framework without Version specified?

    Unsolved
    1
    0 評價
    1 貼文
    344 瀏覽
    尚無回覆
  • qeglfsvivintegration.cpp: undefined reference to `fbCreateWindow'

    Unsolved
    2
    0 評價
    2 貼文
    2k 瀏覽
    A
    @Lorenc Sounds like you have the wrong version of EGL. You need libEGL-fb.so and not the x11 one.
  • Linguist - adding words manually.

    Unsolved
    10
    0 評價
    10 貼文
    3k 瀏覽
    SGaistS
    You could use ID based translation rather that text. Another idea would be to have a source file using QT_TRID_NOOP but that you don't compile as part of your application.
  • Android, installsize Release and Debug

    Solved
    2
    0 評價
    2 貼文
    488 瀏覽
    J.HilkJ
    Turns out I can answer my own question: Searching the internets I found this stackoverflow topic: The problem comes when calling androiddeployqt. If you look at the source, it creates a release package if it receives --release or also when it receives --sign. Qt Creator never passes the --release, so it compiles files as it should, but androiddeployqt only generates a release APK when you use a certificate, because Qt Creator passes the --sign
  • How to import QtMultimedia module in ubuntu 16.04 in a python program

    Solved
    7
    0 評價
    7 貼文
    3k 瀏覽
    SGaistS
    You're welcome ! Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
  • Qt installer framework: installer have problem create License folder during the installation

    Solved
    2
    1 評價
    2 貼文
    1k 瀏覽
    Q
    I found solution for this later. By adding <RequiresAdminRights>true</RequiresAdminRights> into package.xml and using component.addElevatedOperation("License"); in the installscript.qs so the installer gain admin right for real. I was using installer.gainAdminRights() in the installscript.qs, but it did not really gain the admin right, so the error pop up during the installation. The other thing I can add is that if you have both adding the tag and the installer.gainAdminRights() in the script it will give a not enough memory error during the installation.
  • Qt 5.9.4 OpenGL examples crash

    Unsolved
    19
    0 評價
    19 貼文
    7k 瀏覽
    F
    so, any suggestions on how to make EMGD + mesa 10.1.0 + Qt 5.9.4 work? Qt 5.3.2 works with the same combination. When Qt 5.3.2 qtbase/examples/opengl is built against Qt 5.9.4, they work as well, except 'stereo buffers' in contextinfo example. When Qt 5.9.4 qtbase/examples/opengl is built against Qt 5.9.4, examples such as cube, textures crash, and 'stereo buffers' in contextinfo fails as well.