Results 1 to 2 of 2

Thread: Creating a qt makefile from an existing visual studio project

  1. #1
    Join Date
    Aug 2012
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Creating a qt makefile from an existing visual studio project

    I have a simple visual studio project that works. I want to create a makefile for it on linux. the project has 3 files (main.cpp, a.h, a.cpp) i wrote a .pro file:

    ################################################## ####################
    # Automatically generated by qmake (2.01a) ???�? 4. ??? 15:22:14 2012
    ################################################## ####################

    TARGET = YetAnotherQtApp
    CONFIG += qt
    HEADERS += a.h
    SOURCES += main.cpp a.cpp
    I ran in the shell:

    >>qmake -o Makefile YetAnotherQtApp.pro
    works great. it created for me a Makefile but when i ran 'make' in the shell it does not compile at all. it basically gives an error about every thing in the project (includes, variables etc')

    what am i doing wrong here?

    Thanks in advance..

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

    Default Re: Creating a qt makefile from an existing visual studio project

    Show us the first error you get. Also if you are using MinGW, call mingw32-make instead of make.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 8
    Last Post: 28th October 2013, 01:08
  2. Creating a new form in an existing project
    By raghav in forum Newbie
    Replies: 2
    Last Post: 17th May 2012, 11:06
  3. Visual Studio Project Name
    By fruzzo in forum Qt Programming
    Replies: 2
    Last Post: 2nd April 2012, 10:32
  4. Replies: 0
    Last Post: 28th May 2010, 06:50
  5. Linking Error when Creating DLL with Visual Studio
    By stretchtiberius in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 19:31

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.