Results 1 to 11 of 11

Thread: Can't Compile Tutorial 7

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't Compile Tutorial 7

    Sorry

    Well, the results are still the same as it were earlier. So nothing's changed.

    On both the projects.

    But I could redo them from scratch again (using your Code::Blocks template, and check if they run again). But I don't have time for the next while...

    -Reenen

  2. #2
    Cesar Guest

    Wink Re: Can't Compile Tutorial 7

    That's ok, keep trying, when you find some spare time
    But keep in mind, that qmake -project scans the current directory, all its sub-directories and adds the files it found to the project file. So all the *.o files left from the previous compilation attempts will occasionally get to the resulting Makefile. This may lead to broken dependencies, etc, etc...

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Can't Compile Tutorial 7

    Did you remember to add the Q_OBJECT macro to the class definition?
    Did you split the class into two files (header and implementation)?

  4. #4
    Join Date
    Feb 2006
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can't Compile Tutorial 7

    Yes, I did add the Q_OBJECT macro thingy to the file. But I haven't "rebooted" the whole application and restarted from scratch.

    I'll do that when time permits.

Similar Threads

  1. Compile Application in XCode for Release. How?
    By Alex Snet in forum Installation and Deployment
    Replies: 7
    Last Post: 3rd February 2009, 09:16
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02
  4. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26
  5. Hehe, Cant Compile tutorial 8
    By Reenen in forum Newbie
    Replies: 1
    Last Post: 8th February 2006, 13:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.