Solved Giving up on QT - can't add modules
-
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
-
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.
-
Hi
-
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 processorAfter my research it seams that I have to use a 64 bit OS.
-
@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.
-
@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.
-
@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. -
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. -
@bandito
so even with qmake it dont find make ?
This is clean project. nothing added, done by you ?
no cmake or anything not standard?