Skip to content
  • 1 Votes
    2 Posts
    392 Views
    KH-219DesignK

    My reply is going to lead down a bit of a tangent...

    If someone knows how to give you a more direct answer, then I would recommend you ignore mine!

    I don't have a direct answer. But I have a long-standing curiosity about cross-platform development, so I took a moment to do a brief investigation.

    When I need a point of reference for using Qt in a "massively cross platform" way, my "cheatsheet" that I often turn to is the Subsurface divelog project.

    They are cross-compiling their Qt app on Linux to target windows. You can see their CI job config here. I know that's not the same as cross-compiling Qt itself.

    However, I noticed (at the top of one of their scripts) that they call out how they are leveraging: https://github.com/mxe/mxe

    And when I read the MXE page, I see they say: "MXE (M cross environment) is a GNU Makefile that compiles a cross compiler and cross compiles many free libraries such as SDL and Qt. "

    Again, this is a very indirect stab and a mostly non-answer.

    But if you end up in dead ends with anything you try, maybe MXE would give you a path forward.

  • 0 Votes
    4 Posts
    723 Views
    J.HilkJ

    @BDC_Patrick might be a driver/win11 issue, does it also directly crash with a console application?

  • 0 Votes
    12 Posts
    1k Views
    SGaistS

    Can the MongoDB dlls be found at run time ?

  • 0 Votes
    12 Posts
    1k Views
    VRoninV

    @Dariusz said in Unable to compile using Mingwx64 on windows, Command line option error:

    The idea that there will be only 1 qt version on the system is quite... frustrating to me.

    There isn't. I have 4 versions on my machine (5.5, 5.15, 6.1, dev). I don't know CLion but I'm sure there is a way to set CMAKE_PREFIX_PATH before it runs CMake, see https://stackoverflow.com/questions/54444846/equivalent-of-cmake-prefix-path-in-clion
    Set it to C:/Qt/6.1.2/mingw81_64 and remove the set(QT_PATH

  • 0 Votes
    6 Posts
    490 Views
    M

    @VRonin said in I am Newbie trying to build Qt5.15.1 on Windows using MinGW, but got linking error:

    That is an old post, the latest version of qcustomplot is compatible with all Qt 5.x versions as well as 6.0 (see https://www.qcustomplot.com/release/2.1.0fixed/changelog.txt)

    You were right. I missed the latest qcustomplot update in March.
    Thanks! :)

  • 0 Votes
    7 Posts
    2k Views
    jsulmJ

    @JG97 said in QT 5.8.0 64 Bit with MinGW-w64 Configuration:

    How do I configure the x86 package for building 64 bit applications?

    You can't. You install Qt 5.12 MinGW 64bit and MinGW 64bit (it is available in the installer under Tools) and use this for 64bit apps. For 32bit apps you do the same but 32bit...

  • 0 Votes
    5 Posts
    785 Views
    J

    @SGaist Thank you, but this is actually the class where I am creating the tables when database is empty and holding all the models and necessary functions to work on them. So it is fine in this case :)

  • MinGW versions

    Unsolved Tools
    3
    0 Votes
    3 Posts
    1k Views
    K

    @raven-worx

    Thanks for reply.

    Certainly this is a possible explanation, but that would make the actual code behind it rather old. Or the whole timeline discussion does make sense with those compilers.

    Also the macro states MINGW_VERSION and not GCC_VERSION.

  • 0 Votes
    2 Posts
    2k Views
    SGaistS

    Hi,

    You first have to build a 64bit Qt with MinGW. This wiki article might help you get started.

    Hope it helps

  • 0 Votes
    4 Posts
    3k Views
    ZenitFan219Z

    Qt (static link) building with MinGW-w64 compiler ends successfully only with this *.bat (run from MinGW-w64 environment (non cygwin or msys2)):

    SET _CD=%CD% SET _PATH=%PATH% SET QT_SOURCE=%_CD%\qt-everywhere-opensource-src-5.5.1 SET QT_BUILD=%_CD%\mingw_w64_objs SET QT_DIST=%_CD%\mingw64_Static REM Building Qt SET PATH=C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%QT_SOURCE%\qtbase\bin;%QT_SOURCE%\gnuwin32\bin;c:\python27\;%PATH%; CALL C:\Ruby22-x64\bin\setrbvars.bat ECHO ON PATH PAUSE MKDIR %QT_BUILD% CD /D %QT_BUILD% PAUSE CALL %QT_SOURCE%\configure.bat -prefix %QT_DIST% -debug-and-release -static -opensource -confirm-license -no-icu -nomake tests -opengl desktop -no-compile-examples -no-plugin-manifests -no-audio-backend -no-native-gestures -skip qtandroidextras -skip qtactiveqt -skip qtconnectivity -skip qtdeclarative -skip qtlocation -skip qtmacextras -skip qtquick1 -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtserialport -skip qtwebengine -skip qtwebchannel -skip qtwayland -skip qtwebkit -skip qtwebkit-examples -skip qtwebsockets -skip qtx11extras -developer-build ECHO ON PAUSE mingw32-make

    No problems.

  • 0 Votes
    6 Posts
    3k Views
    J

    Have posted something about this in another thread (with picture), hope it helps you ;)
    http://forum.qt.io/topic/54293/solved-add-kits/2

  • 0 Votes
    3 Posts
    2k Views
    SGaistS

    Hi and welcome to devnet,

    Not necessarily the answer you are looking but the guys here are providing 64 bit MinGW builds of Qt.

    Hope it helps

  • 0 Votes
    4 Posts
    6k Views
    K

    Good to know that you have found your problem and solved it.

    Please mark thread as solved. This makes it easier for others.

  • 0 Votes
    3 Posts
    1k Views
    R

    @Chris-Kawa Oh that's AWESOME!

    Thank you for that link!