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:
# Makefile for Basler Pylon sample program
.PHONY : all clean
# the program to build
NAME := Grab
# Build tools and flags
CXX := /usr/bin/g++
LD := /usr/bin/g++
CPPFLAGS := -I$(GENICAM_ROOT_V2_1)/library/CPP/include \
-I$(PYLON_ROOT)/include -DUSE_GIGE
CXXFLAGS := -g -O0 #e.g., CXXFLAGS=-g -O0 for debugging
# To keep the makefile for 32 and 64 in sync we add 64 and 32-bit library paths
# If you are targeting only 32 bit for you can remove the entries containing "64"
LDFLAGS := -L$(PYLON_ROOT)/lib64 \
-L$(PYLON_ROOT)/lib \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64/GenApi/Generic \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86/GenApi/Generic \
-Wl,-E
LIBS := -lpylonbase
all : $(NAME)
$(NAME) : $(NAME).o
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -lGCBase_gcc40_v2_1
$(NAME).o : $(NAME).cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
clean :
$(RM) $(NAME).o $(NAME)
# Makefile for Basler Pylon sample program
.PHONY : all clean
# the program to build
NAME := Grab
# Build tools and flags
CXX := /usr/bin/g++
LD := /usr/bin/g++
CPPFLAGS := -I$(GENICAM_ROOT_V2_1)/library/CPP/include \
-I$(PYLON_ROOT)/include -DUSE_GIGE
CXXFLAGS := -g -O0 #e.g., CXXFLAGS=-g -O0 for debugging
# To keep the makefile for 32 and 64 in sync we add 64 and 32-bit library paths
# If you are targeting only 32 bit for you can remove the entries containing "64"
LDFLAGS := -L$(PYLON_ROOT)/lib64 \
-L$(PYLON_ROOT)/lib \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux64_x64/GenApi/Generic \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86 \
-L$(GENICAM_ROOT_V2_1)/bin/Linux32_i86/GenApi/Generic \
-Wl,-E
LIBS := -lpylonbase
all : $(NAME)
$(NAME) : $(NAME).o
$(LD) $(LDFLAGS) -o $@ $^ $(LIBS) -lGCBase_gcc40_v2_1
$(NAME).o : $(NAME).cpp
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
clean :
$(RM) $(NAME).o $(NAME)
To copy to clipboard, switch view to plain text mode
I have set the IncludePath in my pro file as:
INCLUDEPATH += /opt/pylon/include \
/opt/pylon/genicam/library/CPP/include
INCLUDEPATH += /opt/pylon/include \
/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)
Bookmarks