Project error unknown module s in qt charts windows

Hi, I'm currently working through "Mastering QT5" and chapter 2 uses charts. When I try and add charts to my project, and build, I get the following error message: "Project ERROR: Unknown module(s) in QT: charts" I've used the "Qt Maintenance Tool", check...

  1. Home


  2. Qt Development


  3. Installation and Deployment


  4. Project ERROR: Unknown module(s) in QT: charts

⚠️ Forum Maintenance: Feb 6th, 8am — 14pm (UTC+2)

This topic has been deleted. Only users with topic management privileges can see it.


  • Hi,

    I’m currently working through «Mastering QT5» and chapter 2 uses charts. When I try and add charts to my project, and build, I get the following error message:

    «Project ERROR: Unknown module(s) in QT: charts»

    I’ve used the «Qt Maintenance Tool», checked QT Charts, and tried to install it from there. When I look in the InstallationLog.txt file it has the following:

    [57040] Installation space required: «0.00 bytes» Temporary space required: «0.00 bytes» Local repository size: «0.00 bytes»

    When I try and install charts it seems to think its size is zero but when I reopen the «Qt Maintenance Tool» the QT Charts option is now checked.

    Even after I did the installation my project wasn’t building so I restarted the project anew and it also didn’t build (with the same error message).

    Can anyone help me out where I’m going wrong? Surely this should be very basic and should just work? I’m using the open source version of QT Creator (v6.0.1, newest version) on Windows 10.


  • Hi and welcome to devnet,

    I am currently unsure but isn’t the module provided as sources and you should build it for the Qt version you are using ?


  • Hi,

    it could be….I’m new to QT. Do you know where I would find the ‘Charts’ modules to build?


  • Look for the sources in your Qt installation folder.


  • In «C:QtToolsQtDesignStudiobin» there is QT6Charts.dll and Qt6ChartsQml.dll. QTCreator doesn’t seem to be picking these up though.

    Is there a difference between the free version of QT and the fully licensed version? Does the free version have limitations where it wouldn’t support charts? At my work I’ve been told that QTCreator isn’t great (I’m being polite) and they use QT libraries within MS Visual Studio instead. Is QTCreator a usable product or am I better off just using the libraries in another IDE?


  • I did some reading and QT Charts was previously only for commercial QT but since v5.7 it’s now included for open source users. Before v5.7 you had to build from source but now you don’t…apparently. Unfortunately it still doesn’t work however.


  • There is no relation between the dlls you can find in the Tools folder and the Qt version you use to build your application.

    As I suggested you should search for the sources of the module.

    Which version(s) of Qt did you install ?
    Which exact version of Qt are you using to build your application ?

    As for the comment on Qt Creator, lots of people are using it daily and are happy about it others don’t. Make your opinion on it yourself.


  • @Grimface said in Project ERROR: Unknown module(s) in QT: charts:

    QT Creator (v6.0.1, newest version) on Windows 10.

    Based on QT 6.22 (MSVC 2019, 64 bit)
    Built on Dec 15 20
    From revision ad505aad59

    According to the documentation I shouldn’t need to build it as this is a newer version. I don’t see any sources for the module.


  • Qt Creator (and for that matter the version of Qt used to build it) has nothing to do with regard to version of Qt you are using to build your application.


  • @SGaist I have to move on as this is getting me no-where. If I ever need a chart I’ll use a third party one. This should work in QT Creator (the latest one that I downloaded recently), it should be a simple case of checking a box, but it just doesn’t work….possibly a bug in the software (…or a feature).


  • Hi @Grimface, Maintenance Tool exists to make things easy without any need to compile Qt from source. That’s the way I’ve always done it and it should be an easy experience.

    Can I check which checkbox you ticked?

    There’s one at the top under Additional Libraries at top level
    Qt standalone additional library.png

    and one within Additional Libraries within the Qt build you’re installing.
    Qt 6.2.3 additional library.png

    I haven’t used QtCharts myself, but I use QtMultimedia which is another additional library and I’ve had no problem installing that by ticking the latter one only.


neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Здравствуйте.

Хочу поработать с модулем построения графиков Qt Charts.
Установил Qt Charts через MaintenanceTool.exe  (смотри картинку в приложении).

Создаю новый проект.
Но когда в pro-файле добавляю charts

QT += charts core gui

 то получаю ошибку

Project ERROR: Unknown module(s) in QT: charts

Как заставить увидеть Qt Charts?

Спасибо.

« Последнее редактирование: Январь 11, 2022, 00:52 от neosapient1 »
Записан
kambala


может она установилась под какую-то конкретную версию Qt? у тебя их вон 3.


Записан

Изучением C++ вымощена дорога в Qt.

UTF-8 has been around since 1993 and Unicode 2.0 since 1996; if you have created any 8-bit character content since 1996 in anything other than UTF-8, then I hate you. © Matt Gallagher

neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Галки выставлены так, как указано на прикрепленной картинке.
Не вижу как этими настройками можно дополнительно управлять.


Записан
kambala


речь не о галках, там особо нечем управлять. поищи в каких из папок появился модуль. если лишь в одной — тогда проблема ясна.


Записан

Изучением C++ вымощена дорога в Qt.

UTF-8 has been around since 1993 and Unicode 2.0 since 1996; if you have created any 8-bit character content since 1996 in anything other than UTF-8, then I hate you. © Matt Gallagher

neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Я не знаю, как этот модуль должен выглядеть.

Смотрел в папке C:Qt5.15.2msvc2015_64bin (и ей подобным ‘msvc2019’ и ‘msvc2019_64’). Там нет библиотек вида Qt5Cahrts.dll (или что там должно быть?)
Не знаю, что искать.

P.S.
Есть папка C:Qt5.15.2Srcqtcharts
Пробовал собрать библиотеку — куча ошибок вылезло.


Записан
neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


В итоге поборол сборку файлов Qt5Charts.dll и Qt5Chartsd.dll из исходников.
Все папки (bin, examples, include, lib, mkspecs, qml, src, tests) перекинул в папку C:Qt5.15.2msvc2015_64.
Дальше всё заработало.

P.S.
Ещё надо было прописывать пути к программе rc.exe
Добавил в Path следующий путь
   C:Program Files (x86)Windows Kits10bin10.0.19041.0×64


Записан
PimenS

Крякер
****
Offline Offline

Сообщений: 363

Просмотр профиля


Галки выставлены так, как указано на прикрепленной картинке.
Не вижу как этими настройками можно дополнительно управлять.

Просто нужно было галку Qt Charts выставлять в той ветке для которой уже установлены пакеты.


Записан
neosapient1

Новичок

Offline Offline

Сообщений: 10

Просмотр профиля


Просто нужно было галку Qt Charts выставлять в той ветке для которой уже установлены пакеты.

Ох, проглядел. Есть такая галка.
Спасибо! Буду знать.


Записан

i have Ubuntu 16.04.x LTS and i tried to follow the build description Ubuntu Linux 16.04 LTS

i downloaded «Open Source Usage under (L)GPL v3 license» -> «Go open source» -> qt-unified-linux-x64-3.0.4-online.run

i installed QT 5.9 including the QT Charts
screenshot from 2018-04-26 10-30-47

i installed the packages as shown
sudo apt install libfaad-dev libfftw3-dev librtlsdr-dev libusb-1.0-0-dev mesa-common-dev libglu1-mesa-dev libpulse-dev

i cloned the project git clone https://github.com/AlbrechtL/welle.io.git

but when i open the file ~/welle.io/welle.io.pro
i get the following error in Qt Creator.

Project MESSAGE: Current git hash = 4e13f5e
Project ERROR: Unknown module(s) in QT: charts
Warnings while parsing QML type information of /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content:
Failed to parse "/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes".
Error: /usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:276:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:277:36: Expected array literal with only number literal members.
/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:283:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:284:36: Expected array literal with only number literal members.
/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:301:19: Expected string literal to contain 'Package/Name major.minor' or 'Name major.minor'.
/usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Content/plugins.qmltypes:302:36: Expected array literal with only number literal members.

i also tried Qt 5.10 instead of Qt5.9…
i also tried to install Qt as root…
… all without any difference and no success to build/run welle.io.

EDIT: even installing all sub-items of Qt5.9.5, i don’t get the project to build/run

0 / 0 / 0

Регистрация: 13.11.2013

Сообщений: 37

1

24.02.2016, 23:29. Показов 8710. Ответов 6


Кароче я толком вообще ничего не знаю о Qt Creator, а курсовой делать нужно, решил хоть пример запустить для начала и мне бьет такую ошибку

22:18:24: Выполняются этапы для проекта HRdepartment…
22:18:24: Запускается: «D:Programs installQt5.3mingw482_32binqmake.exe» D:InstallKursovoy_2016HRdepartmentHRdepartment .pro -r -spec win32-g++ «CONFIG+=debug» «CONFIG+=qml_debug»
Project ERROR: Unknown module(s) in QT: widgets gui core
22:18:24: Процесс «D:Programs installQt5.3mingw482_32binqmake.exe» завершился с кодом 3.
Ошибка при сборке/установке проекта HRdepartment (комплект: Desktop Qt 5.3 MinGW 32bit)
Во время выполнения этапа «qmake»
22:18:24: Прошло времени: 00:00.

Как устранить?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



6 / 6 / 2

Регистрация: 01.02.2013

Сообщений: 24

25.02.2016, 07:50

2

Написано же: не может найти модули



0



0 / 0 / 0

Регистрация: 13.11.2013

Сообщений: 37

25.02.2016, 14:15

 [ТС]

3

Цитата
Сообщение от Nix0N
Посмотреть сообщение

Написано же: не может найти модули

Не подскажеш где их можно скачать отдельно?



0



6 / 6 / 2

Регистрация: 01.02.2013

Сообщений: 24

25.02.2016, 16:15

4

Покажи содержимое своего *.pro файла



0



0 / 0 / 0

Регистрация: 13.11.2013

Сообщений: 37

25.02.2016, 23:26

 [ТС]

5

#————————————————-
#
# Project created by QtCreator 2014-01-06T15:46:44
#
#————————————————-

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = HRdepartment
TEMPLATE = app

SOURCES += main.cpp
cworker.cpp
editworkerform.cpp
MainWindow.cpp

HEADERS +=
cworker.h
editworkerform.h
MainWindow.h

FORMS +=
editworkerform.ui
MainWindow.ui



0



6 / 6 / 2

Регистрация: 01.02.2013

Сообщений: 24

26.02.2016, 01:51

6

Всё ок. Значит ты скорее всего переместил папку с установленной Qt по другому пути. Можно править qt.conf, но лучше переустановить Qt (после установки папку нельзя перемещать).



0



0 / 0 / 0

Регистрация: 13.11.2013

Сообщений: 37

26.02.2016, 12:08

 [ТС]

7

Да я и не перемещал, но сейчас попробую переустановить



0



I have error Project ERROR: Unknown module(s) in QT: positioning when I’m trying to build QT5 dependent project with qmake, I suspect that problem can be in old QT4 installation that was installed before.

qmake -version
QMake version 3.0
Using Qt version 5.2.1 in /usr/lib/x86_64-linux-gnu

So my questions are:

1.How to resolve this error?

2.How to completelly remove Qt4 (and maybe reinstall QT5?)?

Update:

which qmake
/usr/bin/qmake

ls -l /usr/bin/qmake
lrwxrwxrwx 1 root root 9 апр.   4  2016 /usr/bin/qmake -> qtchooser

dpkg -l|grep qt5|grep qmake
ii  qt5-qmake:amd64                                       5.2.1+dfsg-1ubuntu14.3                              amd64        Qt 5 qmake Makefile generator tool

qt5-qmake
lots of output like /usr/lib/x86_64-linux-gnu/qt5/*
/usr/lib/x86_64-linux-gnu/qt5/bin
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake

qtchooser -list-versions
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5

qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"

After I set export QT_SELECT=qt5:

qtchooser -print-env
QT_SELECT="qt5"
QTTOOLDIR="/usr/lib/x86_64-linux-gnu/qt5/bin"
QTLIBDIR="/usr/lib/x86_64-linux-gnu"

Also I have tried:

qtchooser -run-tool=qmake -qt=qt5 ../src

But I still have same error.

Понравилась статья? Поделить с друзьями:
  • Progtv для windows 10 скачать бесплатно
  • Progtv professional for windows x64 скачать торрент
  • Programs and features windows 10 на русском
  • Programme manager windows 10 что это
  • Programma dlya vzloma wifi na windows