Results 1 to 2 of 2

Thread: .pro file help please

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default .pro file help please

    Hi,

    I have a pro file (written by someone else) where the obj, ui and moc directories are defined as

    MOC_DIR = .moc
    OBJECTS_DIR = .obj
    UI_DIR = .ui

    When I import the pro file in MSVC and build the project, in the .moc folder I am getting both somename.moc files and moc_somename.cpp files.

    I am also getting the following error:

    unresolved external symbol _WinMainCRTStartup and I cannot run the app.

    If I have the obj files and the exe file in the same folder then the application runs. But once I make changes some change, mocing fails and I cannot rebuild.

    I think there is some parameter in the pro file that is giving this trouble.

    Any ideas?

    Thanks a lot

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: .pro file help please

    Which exact versions and editions of Qt, (VS integration?) and MSVC are you using? I tested with some minimal dummy project and such moc/obj/ui dirs work fine for me in MSVC 2005 with Qt 4.2.0 Commercial and VS integration 1.2.0.
    J-P Nurmi

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. Replies: 5
    Last Post: 22nd September 2006, 08:04
  3. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 19:24
  4. QHttp GET File & Password
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 11th June 2006, 13:04
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14: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.