Results 1 to 4 of 4

Thread: settings in QT from makefile

  1. #1
    Join Date
    Oct 2013
    Location
    Bangalore,India
    Posts
    64
    Thanks
    21
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default settings in QT from makefile

    I have a third party Makefile,which I want to incorporate in QT.
    I don' t know how to set the settings.
    Here are the important makefile settings that i need to use:
    Qt Code:
    1. LD := /usr/bin/g++
    2. LDFLAGS := -Wl,-E
    3. LIBS := -lpylonbase
    4.  
    5. $(NAME) : $(NAME).o
    6. $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -lGCBase_gcc40_v2_1
    To copy to clipboard, switch view to plain text mode 

    How do i set these settings in QT GUI application project settings??
    Without these I am getting some linker errors like "undefined reference to ...."

  2. #2
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: settings in QT from makefile

    Just make sure the libraries pylonbase and GCBase_gccxxx are added in the pro. Use the add library wizard to guide you for the first time. Once it does it for you, note the keywords LIBS+= , INCLUDE... etc.
    That all is there to it for the makefile excerpt you have provided.
    You might even want to go through the most basic makefile example on the internet.

  3. The following user says thank you to pkj for this useful post:

    prkhr4u (17th October 2013)

  4. #3
    Join Date
    Oct 2013
    Location
    Bangalore,India
    Posts
    64
    Thanks
    21
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: settings in QT from makefile

    thanks..just what i was looking for!!

  5. #4
    Join Date
    Nov 2013
    Posts
    2
    Qt products
    Qt/Embedded
    Platforms
    Maemo/MeeGo

    Default Re: settings in QT from makefile

    Really your publish is actually excellent and that i be thankful. You are writing perfectly that is amazing. I truly astounded by your publish regards.

Similar Threads

  1. Replies: 1
    Last Post: 24th June 2011, 12:44
  2. Replies: 1
    Last Post: 31st March 2011, 18:38
  3. Replies: 0
    Last Post: 12th October 2010, 04:14
  4. not able to change Makefile
    By shamik in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2007, 12:00
  5. Makefile warnings
    By Doug Broadwell in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 19:42

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.