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. QtCore/QtGlobal: No such file or directory
Forum Update on Monday, May 27th 2025

QtCore/QtGlobal: No such file or directory

Scheduled Pinned Locked Moved General and Desktop
qtcoreqtglobalqtgstreamer
1 Posts 1 Posters 3.3k 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.
  • J Offline
    J Offline
    JackCWallace
    wrote on 3 Jun 2015, 17:45 last edited by
    #1

    I am working with QtGStreamer on one of the examples, and I cannot get it to work. I keep getting the error 'QtCore/QtGlobal: No such file or directory' from global.h, when I try #include <QtCore/QtGlobal in main.cpp I don't get an error from that.
    Here is my code:

    main.cpp

    #include "mediaapp.h"
    #include <QApplication>
    #include <QGst/Init>
    
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
        QGst::init(&argc, &argv);
    
        MediaApp media;
        media.show();
    
        if (argc == 2) {
            media.openFile(argv[1]);
        }
    
        return app.exec();
    }
    

    player.pro

    TEMPLATE = app
    TARGET = player
    
    CONFIG += silent
    
    CONFIG += pkgconfig
    
    contains(QT_VERSION, ^4\\..*) {
        PKGCONFIG += QtGStreamer-1.0 QtGStreamerUi-1.0
    }
    contains(QT_VERSION, ^5\\..*) {
        PKGCONFIG += Qt5GStreamer-1.0 Qt5GStreamerUi-1.0\
    }
    
    QT += core quick widgets
    CONFIG += qt console bootstrap
    
    DEFINES += QT_NO_KEYWORDS
    
    HEADERS += mediaapp.h player.h
    SOURCES += main.cpp mediaapp.cpp player.cpp
    
    INCLUDEPATH += C:\qt-gstreamer-1.2.0\src \
        C:\Qt\Qt5.4.1\5.4\mingw491_32\include \
        C:\Qt\Qt5.4.1\5.4\android_armv5\include \
        C:\Qt\Qt5.4.1\5.4\android_armv7\include \
        C:\Qt\Qt5.4.1\5.4\android_x86\include \
        C:\Qt\Qt5.4.1\5.4\Src\qtbase\include
    

    In C:\Qt...\include there is a directory QtCore with QtGlobal. While typing it in to global.h I get suggestions to put it in, but it throws an error when I try and build it.

    1 Reply Last reply
    0

    1/1

    3 Jun 2015, 17:45

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved