Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Giving up on QT - can't add modules
Forum Updated to NodeBB v4.3 + New Features

Giving up on QT - can't add modules

Scheduled Pinned Locked Moved Solved General and Desktop
31 Posts 8 Posters 13.5k Views 1 Watching
  • 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.
  • banditoB Offline
    banditoB Offline
    bandito
    wrote on last edited by
    #1

    I reinstalled Ubuntu on my latop and ever since I cannot add modules to Qt. It's QtCharts that I am looking for. I am also having problems adding QtWidget as that is a dependency.

    I can install Qt Creator with no problems either from the repositories or downloading and compiling the open source version.

    I have tried to add the modules use this repository "deb http://cz.archive.ubuntu.com/ubuntu artful main universe"
    to the /etc/apt/sources.list which worked but my program freezes once the window displays and there is no error reported.

    I also tried downloading, compiling and adding the location of qt-everything to PATH. Qt doesn't seam to see the modules and says QtCharts module is unknown.

    I tried the MaintenanceTool but that only give me an error "at least one valid and enabled repository required"

    I have been googling to no end for every error I have encountered. Not sure why I am having so much difficultly. The first time I install Qt I have no problems at all.

    Please help,
    Thanks

    jsulmJ joeQJ JonBJ 3 Replies Last reply
    1
    • banditoB bandito

      I reinstalled Ubuntu on my latop and ever since I cannot add modules to Qt. It's QtCharts that I am looking for. I am also having problems adding QtWidget as that is a dependency.

      I can install Qt Creator with no problems either from the repositories or downloading and compiling the open source version.

      I have tried to add the modules use this repository "deb http://cz.archive.ubuntu.com/ubuntu artful main universe"
      to the /etc/apt/sources.list which worked but my program freezes once the window displays and there is no error reported.

      I also tried downloading, compiling and adding the location of qt-everything to PATH. Qt doesn't seam to see the modules and says QtCharts module is unknown.

      I tried the MaintenanceTool but that only give me an error "at least one valid and enabled repository required"

      I have been googling to no end for every error I have encountered. Not sure why I am having so much difficultly. The first time I install Qt I have no problems at all.

      Please help,
      Thanks

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

      @bandito Why don't you simply use the Qt Online Installer? This way you can install Qt, QtCreator and QtCharts. I'm working on Ubuntu and do not have any issues with Qt.

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

      1 Reply Last reply
      2
      • banditoB bandito

        I reinstalled Ubuntu on my latop and ever since I cannot add modules to Qt. It's QtCharts that I am looking for. I am also having problems adding QtWidget as that is a dependency.

        I can install Qt Creator with no problems either from the repositories or downloading and compiling the open source version.

        I have tried to add the modules use this repository "deb http://cz.archive.ubuntu.com/ubuntu artful main universe"
        to the /etc/apt/sources.list which worked but my program freezes once the window displays and there is no error reported.

        I also tried downloading, compiling and adding the location of qt-everything to PATH. Qt doesn't seam to see the modules and says QtCharts module is unknown.

        I tried the MaintenanceTool but that only give me an error "at least one valid and enabled repository required"

        I have been googling to no end for every error I have encountered. Not sure why I am having so much difficultly. The first time I install Qt I have no problems at all.

        Please help,
        Thanks

        joeQJ Offline
        joeQJ Offline
        joeQ
        wrote on last edited by joeQ
        #3

        @bandito Hi,friend.Welcome.

        Install Qt maybe not complex in Ubuntu. I also using Ubuntu.

        1. Download Qt install package wget http://download.qt.io/official_releases/qt/5.9/5.9.0/qt-opensource-linux-x64-5.9.0.run
        2. chmod a+x qt-opensource-linux-x64-5.9.0.run
        3. ./qt-opensource-linux-x64-5.9.0.run

        Then the install steps are same with in Window. You can choose what module of Qt you want to install from UI. Offline also install many Qt examples.

        Do not give up, You will succeed, Just do it.

        Just do it!

        1 Reply Last reply
        4
        • banditoB bandito

          I reinstalled Ubuntu on my latop and ever since I cannot add modules to Qt. It's QtCharts that I am looking for. I am also having problems adding QtWidget as that is a dependency.

          I can install Qt Creator with no problems either from the repositories or downloading and compiling the open source version.

          I have tried to add the modules use this repository "deb http://cz.archive.ubuntu.com/ubuntu artful main universe"
          to the /etc/apt/sources.list which worked but my program freezes once the window displays and there is no error reported.

          I also tried downloading, compiling and adding the location of qt-everything to PATH. Qt doesn't seam to see the modules and says QtCharts module is unknown.

          I tried the MaintenanceTool but that only give me an error "at least one valid and enabled repository required"

          I have been googling to no end for every error I have encountered. Not sure why I am having so much difficultly. The first time I install Qt I have no problems at all.

          Please help,
          Thanks

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @bandito
          I'll just add my 2 cents.

          Not saying you shouldn't follow the advice of others here to do it via Qt installer package, but for my part I prefer sticking with the apt-get I use for everything else. I have installed Qt + Qt Creator purely with apt-get commands. Never had to affect the default Ubuntu repository locations and all went without hitch. So that's an alternative approach.

          1 Reply Last reply
          1
          • banditoB Offline
            banditoB Offline
            bandito
            wrote on last edited by
            #5

            So I tried all the approaches mentioned and here are the results:

            jsulm: I tried the online installer:

            -downloaded online installer qt-unified-linux-x64-3.0.1-online.run
            -preformed sudo chmod +x
            -gives this error: "bash: ./qt-unified-linux-x64-3.0.1-online.run: cannot execute binary file: Exec format error"

            joeQ:

            I followed your steps and I get the same error as jsulm's suggestion

            I figure this may be because I have a 32 bit processor and not a 64 bit.
            The most recent version of a 32 version of Qt is 5.5.1 which I can install but cannot load any additional modules.

            JNBarchan:

            Using apt-get I can install Qt no problem. As for the additional modules, there is no QtCharts module but I did find a qtdeclarative4-kqtquickcharts-1 module. I installed that and also have QtWidgets installed but Qt still doesn't see any of them. Perhaps my sources.list file is somewhat different then yours? So I posted mine.

            #deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release i386 (20170801)]/ xenial main restricted
            
            # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
            # newer versions of the distribution.
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial main restricted
            
            ## Major bug fix updates produced after the final release of the
            ## distribution.
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
            
            ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
            ## team. Also, please note that software in universe WILL NOT receive any
            ## review or updates from the Ubuntu security team.
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial universe
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial universe
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates universe
            
            ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
            ## team, and may not be under a free licence. Please satisfy yourself as to 
            ## your rights to use the software. Also, please note that software in 
            ## multiverse WILL NOT receive any review or updates from the Ubuntu
            ## security team.
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial multiverse
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
            
            ## N.B. software from this repository may not have been tested as
            ## extensively as that contained in the main release, although it includes
            ## newer versions of some applications which may provide useful features.
            ## Also, please note that software in backports WILL NOT receive any review
            ## or updates from the Ubuntu security team.
            deb http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
            # deb-src http://ca.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
            
            ## Uncomment the following two lines to add software from Canonical's
            ## 'partner' repository.
            ## This software is not part of Ubuntu, but is offered by Canonical and the
            ## respective vendors as a service to Ubuntu users.
            # deb http://archive.canonical.com/ubuntu xenial partner
            # deb-src http://archive.canonical.com/ubuntu xenial partner
            
            deb http://security.ubuntu.com/ubuntu xenial-security main restricted
            # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
            deb http://security.ubuntu.com/ubuntu xenial-security universe
            # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
            deb http://security.ubuntu.com/ubuntu xenial-security multiverse
            # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
            

            All three approaches have been done on a fresh install of Ubuntu 16.04

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              You are on 32 bit system so that cannot run the
              64 installer as you found out.

              Are you sure your CPU is not 64-bit cable ?
              They are not making 32 bit linux Qt pre-builds anymore.

              banditoB 1 Reply Last reply
              2
              • mrjjM mrjj

                Hi
                You are on 32 bit system so that cannot run the
                64 installer as you found out.

                Are you sure your CPU is not 64-bit cable ?
                They are not making 32 bit linux Qt pre-builds anymore.

                banditoB Offline
                banditoB Offline
                bandito
                wrote on last edited by
                #7

                @mrjj said in Giving up on QT - can't add modules:

                Hi
                You are on 32 bit system so that cannot run the
                64 installer as you found out.

                Are you sure your CPU is not 64-bit cable ?
                They are not making 32 bit linux Qt pre-builds anymore.

                How can I determine if my CPU is 64 bit cable?

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Hi, if you have a 2GB or bigger USB memory stick you can try for example Ubuntu 17.10 (download here) dd the .iso to your memory stick and try to boot it. If it does then you know your CPU is 64-bit able.

                  1 Reply Last reply
                  1
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi

                    alt text

                    banditoB 1 Reply Last reply
                    5
                    • aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @bandito:

                      cat /proc/cpuinfo gives you your CPU information. if your CPU is Intel or AMD and younger than 10 years, or if you have more than 4 GB RAM, it is most likely 64 bit.

                      Qt has to stay free or it will die.

                      banditoB 1 Reply Last reply
                      3
                      • mrjjM mrjj

                        Hi

                        alt text

                        banditoB Offline
                        banditoB Offline
                        bandito
                        wrote on last edited by
                        #11

                        @mrjj said in Giving up on QT - can't add modules:

                        Here are the results:

                        CPU op-mode(s):        32-bit, 64-bit
                        CPU(s):                2
                        On-line CPU(s) list:   0,1
                        CPU family:            6
                        Model name:            Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
                        CPU MHz:               2267.000
                        CPU max MHz:           2267.0000
                        CPU min MHz:           800.0000
                        
                        

                        I guess the script isn't running for other reasons.

                        1 Reply Last reply
                        0
                        • aha_1980A aha_1980

                          @bandito:

                          cat /proc/cpuinfo gives you your CPU information. if your CPU is Intel or AMD and younger than 10 years, or if you have more than 4 GB RAM, it is most likely 64 bit.

                          banditoB Offline
                          banditoB Offline
                          bandito
                          wrote on last edited by
                          #12

                          @aha_1980 said in Giving up on QT - can't add modules:

                          cat /proc/cpuinfo

                          Results from cat /proc/cpuinfo

                          processor	: 0
                          vendor_id	: GenuineIntel
                          cpu family	: 6
                          model		: 23
                          model name	: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
                          stepping	: 6
                          microcode	: 0x60f
                          cpu MHz		: 2266.000
                          cache size	: 3072 KB
                          physical id	: 0
                          siblings	: 2
                          core id		: 0
                          cpu cores	: 2
                          apicid		: 0
                          initial apicid	: 0
                          fdiv_bug	: no
                          f00f_bug	: no
                          coma_bug	: no
                          fpu		: yes
                          fpu_exception	: yes
                          cpuid level	: 10
                          wp		: yes
                          flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority dtherm
                          bugs		:
                          bogomips	: 4521.74
                          clflush size	: 64
                          cache_alignment	: 64
                          address sizes	: 36 bits physical, 48 bits virtual
                          power management:
                          
                          processor	: 1
                          vendor_id	: GenuineIntel
                          cpu family	: 6
                          model		: 23
                          model name	: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
                          stepping	: 6
                          microcode	: 0x60f
                          cpu MHz		: 800.000
                          cache size	: 3072 KB
                          physical id	: 0
                          siblings	: 2
                          core id		: 1
                          cpu cores	: 2
                          apicid		: 1
                          initial apicid	: 1
                          fdiv_bug	: no
                          f00f_bug	: no
                          coma_bug	: no
                          fpu		: yes
                          fpu_exception	: yes
                          cpuid level	: 10
                          wp		: yes
                          flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm tpr_shadow vnmi flexpriority dtherm
                          bugs		:
                          bogomips	: 4521.74
                          clflush size	: 64
                          cache_alignment	: 64
                          address sizes	: 36 bits physical, 48 bits virtual
                          power management:
                          

                          Not sure how to read all of it but I see nothing that is 32 and lots that is 64.

                          1 Reply Last reply
                          0
                          • aha_1980A Offline
                            aha_1980A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @bandito: already a senior processor, but capable for a 64 bit operating system.

                            Qt has to stay free or it will die.

                            1 Reply Last reply
                            0
                            • banditoB Offline
                              banditoB Offline
                              bandito
                              wrote on last edited by bandito
                              #14

                              According to Intel the instruction set is 64 bit.
                              My processor

                              After my research it seams that I have to use a 64 bit OS.

                              mrjjM 1 Reply Last reply
                              0
                              • banditoB bandito

                                According to Intel the instruction set is 64 bit.
                                My processor

                                After my research it seams that I have to use a 64 bit OS.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @bandito
                                Yep it can run a 64 bit OS.
                                It will make it easier as online installer will just work then.
                                While i do love apt-get, the online installer makes it really easy to add/remove modules
                                or try another version of Qt to test something. It can also update the current installation.

                                1 Reply Last reply
                                1
                                • goldenhawkingG Offline
                                  goldenhawkingG Offline
                                  goldenhawking
                                  wrote on last edited by
                                  #16

                                  Qt charts does not exist in old Qt versions, such like 5.6.
                                  Install new version, for example, 5.9.2 from website is a good idea.

                                  Qt is the best C++ framework I've ever met.

                                  1 Reply Last reply
                                  1
                                  • banditoB Offline
                                    banditoB Offline
                                    bandito
                                    wrote on last edited by
                                    #17

                                    Well I got qt and qtcharts installed. However I get this error message when I try to compile y project.

                                    Could not find qmake spec 'default'.
                                    Error while parsing file /home/bandito/programming/etf-ipo/etf-ipo.pro. Giving up.
                                    Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
                                    Error while parsing file /home/bandito/programming/etf-ipo/etf-ipo.pro. Giving up.
                                    
                                    mrjjM 1 Reply Last reply
                                    0
                                    • banditoB bandito

                                      Well I got qt and qtcharts installed. However I get this error message when I try to compile y project.

                                      Could not find qmake spec 'default'.
                                      Error while parsing file /home/bandito/programming/etf-ipo/etf-ipo.pro. Giving up.
                                      Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
                                      Error while parsing file /home/bandito/programming/etf-ipo/etf-ipo.pro. Giving up.
                                      
                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      @bandito
                                      Hi
                                      you did install c++ compiler ?
                                      sudo apt-get install build-essential

                                      1 Reply Last reply
                                      2
                                      • banditoB Offline
                                        banditoB Offline
                                        bandito
                                        wrote on last edited by bandito
                                        #19

                                        Ok.

                                        I installed the build-essential. Not I get this error.

                                        14:00:44: Could not determine which "make" command to run. Check the "make" step in the build configuration.
                                        Error while building/deploying project etf-ipo (kit: Desktop Qt 5.9.2 GCC 64bit)
                                        When executing step "qmake"
                                        

                                        In Build & Run I added new CMake. I tried /usr/bin/make and then tried /usr/bin/qmake but neither corrected the problem.

                                        mrjjM 1 Reply Last reply
                                        0
                                        • banditoB bandito

                                          Ok.

                                          I installed the build-essential. Not I get this error.

                                          14:00:44: Could not determine which "make" command to run. Check the "make" step in the build configuration.
                                          Error while building/deploying project etf-ipo (kit: Desktop Qt 5.9.2 GCC 64bit)
                                          When executing step "qmake"
                                          

                                          In Build & Run I added new CMake. I tried /usr/bin/make and then tried /usr/bin/qmake but neither corrected the problem.

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @bandito
                                          but do u have it ?
                                          if you run
                                          make in a shell, what happens ?

                                          banditoB 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