Menu

Building the GUI

2024-04-01
2024-04-04
  • Lyndon Hill

    Lyndon Hill - 2024-04-01

    If I try to use qmake, local install:

    ~/Source/Qt/6.6.2/gcc_64/bin/qmake
    Project ERROR: Qt 6 is not supported via qmake - please use CMake instead
    

    OK, I will use cmake:

    mkdir build; cd build
    cmake -DBUILD_GUI=ON -DHAVE_RULES=ON ..
    ...
    CMake Warning at cmake/findDependencies.cmake:27 (message):
      Building with Qt5 is deprecated (it went EOL in May 2023) and will be
      removed in a future release - please use Qt6 instead
    (fail)
    

    I'm not experienced with cmake; - I need to tell cmake where to find my Qt6 installation because it doesn't seem happen with my standard Qt 5 installation?

     
  • lamoda

    lamoda - 2024-04-01

    -DUSE_QT6=ON

    look inside the CI for windows at .github/ rep

     
  • Oliver Stöneberg

    Although we lack documentation for all the individual CMake options they are all listed in the CMake output:

    -- BUILD_GUI =             ON
    -- REGISTER_GUI_TESTS =    ON
    -- WITH_QCHART =           ON
    -- USE_QT6 =               OFF
    -- QT_VERSION =            5.15.10
    
     
  • Lyndon Hill

    Lyndon Hill - 2024-04-04

    Thank you lamoda and Oliver Stöneberg.

    I didn't see the cmake output listing all the options as the configuration halted before that part.
    My cmake experience was not good enough to know that I should have run a basic config in order to see the other rules; the docs listed BUILD_GUI so I thought that was enough.

    My build was successful after adding -DCMAKE_PREFIX_PATH="/home/user/Source/Qt/6.6.2/gcc_64/lib/cmake/Qt6"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.