Giving up on QT - can't add modules



  • 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


  • Moderators

    @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.



  • @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.



  • @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.



  • 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


  • Qt Champions 2016

    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.



  • @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?



  • 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.


  • Qt Champions 2016

    Hi

    alt text



  • @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.



  • @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.



  • @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.



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



  • 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.


  • Qt Champions 2016

    @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.



  • 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.



  • 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.
    

  • Qt Champions 2016

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



  • 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.


  • Qt Champions 2016

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



  • @mrjj
    user@computer:~$ make
    make: *** No targets specified and no makefile found. Stop.


  • Qt Champions 2016

    @bandito

    Ok so you did get it.
    Try to close creator. Open it again.
    make a new default project and see if that can run.
    It should just pick it up.



  • @mrjj
    Close qt, opened and made a new qt application. Still get the same error.


  • Qt Champions 2016

    @bandito
    so even with qmake it dont find make ?
    This is clean project. nothing added, done by you ?
    no cmake or anything not standard?



  • @mrjj

    The only thing I did was change the project name to 'test'.

    I didn't see a cmake file in usr/bin/


  • Qt Champions 2016

    @bandito

    its just called make
    not cmake

    Can you check this
    https://www.youtube.com/watch?v=unkGHMgffmI
    He has same issue and go select in kits.
    Maybe you need that too.



  • @mrjj
    It turns out that in the kits there was no gcc compiler chosen. Works now. Thanks


  • Qt Champions 2016

    alt text

    Thanks to @Wieland for video and others helping a core 2 still do
    good stuff :)



  • @mrjj And I found out my CPU is 64 bit.


  • Moderators

    @bandito But you're running a 32bit Linux on it, right?



  • I was but now I am running 64 bit.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.