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. Shared lib QtCore/qglobal.h: No such file or directory.
QtWS25 Last Chance

Shared lib QtCore/qglobal.h: No such file or directory.

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 10.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.
  • M Offline
    M Offline
    Max_a
    wrote on last edited by
    #1

    Hi all. I'm doing my homework, working with libraries.
    I'm using this tutorial youtube.com/watch?v=9JTooLxhmC0, it helped me with static lib. But when i'm trying to make sharel lib, i got an error.
    It't in dll_global.h, when i'm debuging it. It's in @#include <QtCore/qglobal.h>@ - No such file or directory.
    I'm doing exectly like in that video. What should i do?
    Should i add smt more to any folders?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      [quote author="Max_a" date="1417359016"]when i'm trying use it in my app, when i'm including headers[/quote]Did you set up your app as a Qt app?

      Post the contents of your app's *.pro file.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Max_a
        wrote on last edited by
        #3

        don't know did i set it up. How can i do it, if not?
        .pro is:
        @
        TEMPLATE = app
        CONFIG += console
        CONFIG -= app_bundle
        CONFIG -= qt

        SOURCES += main.cpp

        HEADERS +=
        dll_global.h
        dll.h
        @

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          There some additional info about the same question in this closed thread http://qt-project.org/forums/viewthread/50208/

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            [quote author="Max_a" date="1417463623"]
            .pro is:
            @
            ...
            CONFIG -= qt
            ...
            @
            [/quote]Remove that line. It turns your project into a non-Qt project -- that's why you can't find Qt headers.

            [quote author="Max_a" date="1417464184"]if i add qt5/ in that include it works, and shows errors in the qglobal.h, in some includes, where i can add qt5/ too. Should i do that?[/quote]No, don't do that. Modify your .pro file instead.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Max_a
              wrote on last edited by
              #6

              this is it. thx, now i can finish my labs and prepare for exams. TY

              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