Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Instalation version 6.2 on ubuntu20.4
Qt 6.11 is out! See what's new in the release blog

Instalation version 6.2 on ubuntu20.4

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 993 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maria_Ribeiro
    wrote on last edited by
    #1

    Hello,
    I'm trying install Qt6.2 on ubuntu 20.4 and I follow the steps:

    mkdir tempDir

    cd tempDir

    wget https://download.qt.io/official_releases/qt/6.2/6.2.4/single/qt-everywhere-src-6.2.4.tar.xz

    tar xvf qt-everywhere-src-6.2.4.tar.xz

    cd qt-everywhere-src-6.2.4

    ./configure --prefix=/opt/qt6.2 (run ok with some warning message)

    cmake --build ( stop at 97% complete with following message. Also copy some positive messages before de erro one )

    Generating version linker script
    [ 97%] Built target TinyCanBusPlugin
    [ 97%] Automatic MOC for target canbusutil
    [ 97%] Built target canbusutil_autogen
    [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/canbusutil_autogen/mocs_compilation.cpp.o
    [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/canbusutil.cpp.o
    [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/main.cpp.o
    [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/readtask.cpp.o
    [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/sigtermhandler.cpp.o
    [ 97%] Linking CXX executable ../../../../qtbase/bin/canbusutil
    [ 97%] Built target canbusutil
    Updating '/tempDir/qt-everywhere-src-.2.4/qtbase/./translations/qtwebsockets_en.qm'...
    lrelease error: cannot create '/temDir/qt-everywhere-src-6.2.4/qtbase/./translations/qtwebsockets_en.qm': No such file or directory
    make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/build.make:70: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts] Error 1
    make[1]: *** [CMakeFiles/Makefile2:82947: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/all] Error 2
    make: *** [Makefile:146: all] Error 2

    After this I error I look for the directory where command wants to put the qtwebsockets_en.qm but it doesn't exist.. not create, why?

    ls -la /tempDir/qt-everywhere-src-6.2.4/qtbase/./translations': No such file or directory

    WHY? What's wrong? Should I create this diretory somewhere?
    Thanks
    Maria Ribeiro (Lisbon)

    jsulmJ 1 Reply Last reply
    0
    • M Maria_Ribeiro

      Hello,
      I'm trying install Qt6.2 on ubuntu 20.4 and I follow the steps:

      mkdir tempDir

      cd tempDir

      wget https://download.qt.io/official_releases/qt/6.2/6.2.4/single/qt-everywhere-src-6.2.4.tar.xz

      tar xvf qt-everywhere-src-6.2.4.tar.xz

      cd qt-everywhere-src-6.2.4

      ./configure --prefix=/opt/qt6.2 (run ok with some warning message)

      cmake --build ( stop at 97% complete with following message. Also copy some positive messages before de erro one )

      Generating version linker script
      [ 97%] Built target TinyCanBusPlugin
      [ 97%] Automatic MOC for target canbusutil
      [ 97%] Built target canbusutil_autogen
      [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/canbusutil_autogen/mocs_compilation.cpp.o
      [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/canbusutil.cpp.o
      [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/main.cpp.o
      [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/readtask.cpp.o
      [ 97%] Building CXX object qtserialbus/src/tools/canbusutil/CMakeFiles/canbusutil.dir/sigtermhandler.cpp.o
      [ 97%] Linking CXX executable ../../../../qtbase/bin/canbusutil
      [ 97%] Built target canbusutil
      Updating '/tempDir/qt-everywhere-src-.2.4/qtbase/./translations/qtwebsockets_en.qm'...
      lrelease error: cannot create '/temDir/qt-everywhere-src-6.2.4/qtbase/./translations/qtwebsockets_en.qm': No such file or directory
      make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/build.make:70: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts] Error 1
      make[1]: *** [CMakeFiles/Makefile2:82947: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/all] Error 2
      make: *** [Makefile:146: all] Error 2

      After this I error I look for the directory where command wants to put the qtwebsockets_en.qm but it doesn't exist.. not create, why?

      ls -la /tempDir/qt-everywhere-src-6.2.4/qtbase/./translations': No such file or directory

      WHY? What's wrong? Should I create this diretory somewhere?
      Thanks
      Maria Ribeiro (Lisbon)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Maria_Ribeiro Are you sure you want to build Qt by yourself?
      You can use online installer to install Qt.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Maria_Ribeiro
        wrote on last edited by
        #3

        Hi.. thanks.. I was lucky and already installed.. I did analise the cmake_buil file refer in the error and make the miss directory, than run command to build it again and it finish with no more errors. After that i run the command to install and it looks good.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved