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. Can not find 'Qt3DExtras' module.
Forum Updated to NodeBB v4.3 + New Features

Can not find 'Qt3DExtras' module.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 782 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.
  • A Offline
    A Offline
    Andrey01
    wrote on last edited by
    #1

    I can not include Qt3DExtras module from Qt3D. It writes an error: 'Qt3DExtras' file not found. However, I installed qt3d5-dev and qt3d5-dev-tools packages and added that in the .pro file:

    QT += 3dextras core gui 3dcore 3drender
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    CONFIG += c++11
    
    # The following define makes your compiler emit warnings if you use
    # any Qt feature that has been marked deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if it uses deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    SOURCES += \
        main.cpp \
        mainwindow.cpp
    
    HEADERS += \
        mainwindow.h
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    

    My used version of Qt is 5.12.8, Qt Creator is 4.11.0. I have Ubuntu 20.04.
    Why can Qt Creator not find that file?

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Shouldn't you install qt3dextras5 then?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andrey01
        wrote on last edited by
        #3

        That package is already installed together with qt3d5-dev.

        eyllanescE 1 Reply Last reply
        0
        • A Andrey01

          That package is already installed together with qt3d5-dev.

          eyllanescE Offline
          eyllanescE Offline
          eyllanesc
          wrote on last edited by
          #4

          @Andrey01 If you have used apt to install qt3dextras5 but you have used the installed one to install Qt then it won't work as they are different packages. How did you install Qt?

          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

          A 1 Reply Last reply
          1
          • eyllanescE eyllanesc

            @Andrey01 If you have used apt to install qt3dextras5 but you have used the installed one to install Qt then it won't work as they are different packages. How did you install Qt?

            A Offline
            A Offline
            Andrey01
            wrote on last edited by
            #5

            @eyllanesc I installed it from Discover, app centre.

            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