I am trying to develop a Qt Widget GUI based application.
I already have a console based application with a Makefile and now want to make some changes to make it a button driven application.
My makefile is as follows:
Qt Code:
  1. # Makefile for Basler Pylon sample program
  2. .PHONY : all clean
  3.  
  4. # the program to build
  5. NAME := Grab
  6.  
  7. # Build tools and flags
  8. CXX := /usr/bin/g++
  9. LD := /usr/bin/g++
  10. CPPFLAGS := -I$(GENICAM_ROOT_V2_1)/library/CPP/include \
  11. -I$(PYLON_ROOT)/include -DUSE_GIGE
  12. CXXFLAGS := -g -O0 #e.g., CXXFLAGS=-g -O0 for debugging
  13.  
  14. # To keep the makefile for 32 and 64 in sync we add 64 and 32-bit library paths
  15. # If you are targeting only 32 bit for you can remove the entries containing "64"
  16. LDFLAGS := -L$(PYLON_ROOT)/lib64 \
  17. -L$(PYLON_ROOT)/lib \
  18. -L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64 \
  19. -L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64/GenApi/Generic \
  20. -L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86 \
  21. -L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86/GenApi/Generic \
  22. -Wl,-E
  23. LIBS := -lpylonbase
  24.  
  25. all : $(NAME)
  26.  
  27. $(NAME) : $(NAME).o
  28. $(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -lGCBase_gcc40_v2_1
  29.  
  30. $(NAME).o : $(NAME).cpp
  31. $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
  32.  
  33. clean :
  34. $(RM) $(NAME).o $(NAME)
To copy to clipboard, switch view to plain text mode 

I have set the IncludePath in my pro file as:
Qt Code:
  1. INCLUDEPATH += /opt/pylon/include \
  2. /opt/pylon/genicam/library/CPP/include
To copy to clipboard, switch view to plain text mode 

Can someone tell what other settings i need to make in my .pro file to make it work

I am using Ubuntu 12.04 32-bit desktop edition using QTCreator 2.4.1 (based on QT 4.8.0 32-bit)