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. Compile cant find QMainWindow
Forum Updated to NodeBB v4.3 + New Features

Compile cant find QMainWindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 451 Views 3 Watching
  • 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.
  • T Offline
    T Offline
    thomasGl
    wrote on last edited by
    #1

    Hello guys. I am trying to compile a programm with g++ and it cant find QMainWindow. Where can i find this file?1.PNG
    2.PNG

    SGaistS 1 Reply Last reply
    0
    • S Offline
      S Offline
      schrute
      wrote on last edited by schrute
      #2

      Are you running the command from the same directory? Can you see the file in the output when you run ls?

      Also why do you need to compile it manually?

      1 Reply Last reply
      0
      • T thomasGl

        Hello guys. I am trying to compile a programm with g++ and it cant find QMainWindow. Where can i find this file?1.PNG
        2.PNG

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @thomasGl hi,

        Your command is missing all the include paths and libraries options to properly build your application.

        You should either use qmake or CMake (recommended) to manage that part.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        T 1 Reply Last reply
        2
        • SGaistS SGaist

          @thomasGl hi,

          Your command is missing all the include paths and libraries options to properly build your application.

          You should either use qmake or CMake (recommended) to manage that part.

          T Offline
          T Offline
          thomasGl
          wrote on last edited by
          #4

          How can I use memcheck? It doesn't start.1.PNG

          I wanted to do it manually because I wanted to use Valgrind to find memory leaks.

          1 Reply Last reply
          0
          • Pl45m4P Pl45m4 referenced this topic on

          • Login

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