|
|
程序是用qt 写的
在linux 下编译通过了 (当然包含了几个库也编译过了的)
想把他改成 arm 上运行的
用 tmake 生成的不管用,修改的话,应该怎么修改讷 ?
我的环境变量已经设置正确 ,编译其他东西没有问题
求高人相助
######################################
PROG = cphone
SOURCES := \
addressbookSub.cxx \
audiopropertiesSub.cxx \
callanswerSub.cxx \
cpendpoint.cxx \
main.cxx \
mainwindowSub.cxx \
message.cxx \
options.cxx \
precompile.cxx \
qtvid.cxx \
settingsSub.cxx \
vdisplay.cxx \
videopropertiesSub.cxx
UIFILES := \
addressbook.ui \
audioproperties.ui \
callanswer.ui \
mainwindow.ui \
settings.ui \
videoproperties.ui
MOCFILES := \
vdisplay.h
# message.h \
##################################################
ifndef QTDIR
ifneq (,$(wildcard /usr/local/qt))
QTDIR=/usr/local/qt
else
ifneq (,$(wildcard /usr/lib/qt3))
QTDIR=/usr/lib/qt3
else
ifneq (,$(wildcard ~/qt))
QTDIR=~/qt
else
ifneq (,$(wildcard ../qt))
QTDIR=../qt
else
ifneq (,$(wildcard /usr/X11R6/include/qapplication.h))
QTDIR=/usr/X11R6
endif
endif
endif
endif
endif
endif
ifndef XLIBDIR
XLIBDIR=/usr/X11R6/lib
endif
ifndef QTLIBDIR
QTLIBDIR=$(QTDIR)/lib
endif
UIC = $(QTDIR)/bin/uic
MOC = $(QTDIR)/bin/moc
STDCCFLAGS += -I$(QTDIR)/include -DQT_THREAD_SUPPORT
LDFLAGS += -L$(QTLIBDIR) -L$(XLIBDIR)
ENDLDLIBS += -lqt-mt -lSM -lICE -lXext -lX11
ifeq ($(OSTYPE),linux)
ENDLDLIBS += -ldl
endif
UISRC := $(patsubst %.ui,%.cxx,$(UIFILES))
UIHDRS := $(patsubst %.ui,%.h,$(UIFILES))
MOCFILES += $(UIHDRS)
MOCSRCRAW := $(addprefix moc_, $(MOCFILES))
MOCSRC := $(patsubst %.h,%.cxx,$(MOCSRCRAW))
SOURCES += $(MOCSRC) $(UISRC)
##################################################
ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif
include $(OPENH323DIR)/openh323u.mak
##################################################
%.cxx %.h : %.ui
$(UIC) -impl $*.h $*.ui > $*.cxx
$(UIC) $*.ui > $*.h
moc_%.cxx: %.h
$(MOC) -f$*.h -o $@ < $*.h
.PRECIOUS: $(UIHDRS) $(MOCSRC)
clean::
rm -f $(UISRC) $(UIHDRS) $(MOCSRC)
main.cxx : mainwindow.h
addressbookSub.cxx : addressbook.h mainwindow.h callanswer.h
audiopropertiesSub.cxx : audioproperties.h mainwindow.h
callanswerSub.cxx : callanswer.h mainwindow.h
mainwindowSub.cxx : $(UIHDRS)
options.cxx : mainwindow.h
settingsSub.cxx : settings.h mainwindow.h
videopropertiesSub.cxx : videoproperties.h mainwindow.h
# End of File #################################### |
|