A gui is created with designer-qt2: I get Compile error

Florian Erfurth <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
Hi, I did begin to program my own apps for diploma thesis. Thank to 
Dmitriy I did successfully compile qt-embedded and opie. I did create an 
gui with design-qt2. I wanted to compile it and try the gui with qvfb. 
Of course it still hasn't any function because it's not implemented, but 
I should be able to see the gui.
After adding my application into menuconfig I did enter "make" in 
$OPIEDIR/ directory. Unfortunatelly I get error if I want to compile my 
application. :( I hope you could tell me, what did I wrong.
Here is the output:
 >>>
make QMAKE=/home/floh/qt-embedded/opie/qmake/qmake -C 
noncore/unsupported/speech2text
make[1]: Entering directory 
`/home/floh/qt-embedded/opie/noncore/unsupported/speech2text'
gcc -c -pipe  -Wall -W  -O2  -DOPIE_NO_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN 
-DUSE_FILE_NOTIFICATION -DOPIE_SOUND_FRAGMENT_SHIFT=16 -DQT_NO_DEBUG 
-I/home/floh/qt-embedded/opie/mkspecs/qws/linux-x86-g++ -I. 
-I/home/floh/qt-embedded/opie/include 
-I/home/floh/qt-embedded/qt-2.3.10/include -I.moc/x86-linux/ -o 
.obj/x86-linux/speech2text.o speech2text.ui
gcc: speech2text.ui: linker input file unused because linking not done
test -d /home/floh/qt-embedded/opie/bin/ || mkdir -p 
/home/floh/qt-embedded/opie/bin/
g++  -Wl,-rpath-link,/home/floh/qt-embedded/opie/lib  
-Wl,-rpath,/home/floh/qt-embedded/qt-2.3.10/lib -o 
/home/floh/qt-embedded/opie/bin/speech2text 
.obj/x86-linux/speech2text.o    -L/home/floh/qt-embedded/qt-2.3.10/lib  
-lqpe -L/home/floh/qt-embedded/opie/lib -lqte
g++: .obj/x86-linux/speech2text.o: No such file or directory
make[1]: *** [/home/floh/qt-embedded/opie/bin/speech2text] Error 1
make[1]: Leaving directory 
`/home/floh/qt-embedded/opie/noncore/unsupported/speech2text'
make: *** [noncore/unsupported/speech2text] Error 2
<<<

/home/floh/qt-embedded/opie/noncore/unsupported/speech2text contains 
following:
 >>>
floh@debian-vmware:~/qt-embedded/opie/noncore/unsupported/speech2text$ ls
Makefile  config.in  speech2text.pro  speech2text.ui
<<<

As far I think, the following line is the cause that speech2text.o is 
not created:
gcc: speech2text.ui: linker input file unused because linking not done

Am I right? Unfortunatelly I don't understand what this message means.

Should there be a cpp-file? Designer-qt2 did only create the ui-file 
which may be correct. I suspect the main-programm is missing. I hope 
these attachments are allowed in mailinglist.
If you need more info, then let me know, please.

cu Floh

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
speech2text.pro (text/plain, 247 B)
TEMPLATE = app
CONFIG  += qt warn_on release
DESTDIR  = $(OPIEDIR)/bin
HEADERS  =
SOURCES  = speech2text.ui
TARGET  = speech2text
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
LIBS  += -lqpe
include ( $(OPIEDIR)/include.pro )
Makefile (text/plain, 4.4 KB)
#############################################################################
# Makefile for building: $(OPIEDIR)/bin/speech2text
# Generated by qmake (1.07a) (Qt 3.3.2) on: Tue Nov 28 08:57:22 2006
# Project:  speech2text.pro
# Template: app
# Command: $(QMAKE) -o Makefile speech2text.pro
#############################################################################

####### Compiler, tools and options

CC       = gcc
CXX      = g++
LEX      = flex
YACC     = yacc
CFLAGS   = -pipe $(CFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)  -DOPIE_NO_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN -DUSE_FILE_NOTIFICATION -DOPIE_SOUND_FRAGMENT_SHIFT=16 -DQT_NO_DEBUG
CXXFLAGS = -pipe $(CFLAGS_EXTRA) -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) -Wall -W $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2)  -DOPIE_NO_DEBUG -DOPIE_NO_BUILTIN_SHUTDOWN -DUSE_FILE_NOTIFICATION -DOPIE_SOUND_FRAGMENT_SHIFT=16 -DQT_NO_DEBUG
LEXFLAGS = 
YACCFLAGS= -d
INCPATH  = -I/home/floh/qt-embedded/opie/mkspecs/qws/linux-x86-g++ -I. -I$(OPIEDIR)/include -I$(QTDIR)/include -I.moc/$(PLATFORM)/
LINK     = g++
LFLAGS   = $(LFLAGS_EXTRA) -Wl,-rpath-link,$(OPIEDIR)/lib  -Wl,-rpath,$(QTDIR)/lib
LIBS     = $(SUBLIBS) -L$(QTDIR)/lib $(LIBS_EXTRA) -lqpe -L$(OPIEDIR)/lib -lqte
AR       = ar cqs
RANLIB   = 
MOC      = $(QTDIR)/bin/moc
UIC      = $(QTDIR)/bin/uic
QMAKE    = qmake
TAR      = tar -cf
GZIP     = gzip -9f
COPY     = cp -f
COPY_FILE= $(COPY)
COPY_DIR = $(COPY) -R
INSTALL_FILE= $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK  = ln -sf
DEL_DIR  = rmdir
MOVE     = mv -f
PRO      = speech2text.pro
CHK_DIR_EXISTS= test -d
MKDIR    = mkdir -p

####### Output directory

OBJECTS_DIR = .obj/$(PLATFORM)/

####### Files

HEADERS = 
SOURCES = speech2text.ui
OBJECTS = .obj/$(PLATFORM)/speech2text.o
FORMS = 
UICDECLS = 
UICIMPLS = 
SRCMOC   = 
OBJMOC = 
DIST	   = ../../../gen.pro \
		../../../include.pro \
		speech2text.pro
QMAKE_TARGET = speech2text
DESTDIR  = $(OPIEDIR)/bin/
TARGET   = $(OPIEDIR)/bin/speech2text

first: all
####### Implicit rules

.SUFFIXES: .c .o .cpp .cc .cxx .C

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: Makefile $(TARGET)

$(TARGET):  $(UICDECLS) $(OBJECTS) $(OBJMOC)  
	test -d $(OPIEDIR)/bin/ || mkdir -p $(OPIEDIR)/bin/
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)

mocables: $(SRCMOC)
uicables: $(UICDECLS) $(UICIMPLS)

$(MOC): 
	( cd $(QTDIR)/src/moc && $(MAKE) )

Makefile: speech2text.pro  /home/floh/qt-embedded/opie/mkspecs/qws/linux-x86-g++/qmake.conf ../../../gen.pro \
		../../../include.pro
	$(QMAKE) -o Makefile speech2text.pro
qmake: 
	@$(QMAKE) -o Makefile speech2text.pro

dist: 
	@mkdir -p .obj/$(PLATFORM)/speech2text && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) .obj/$(PLATFORM)/speech2text/ && ( cd `dirname .obj/$(PLATFORM)/speech2text` && $(TAR) speech2text.tar speech2text && $(GZIP) speech2text.tar ) && $(MOVE) `dirname .obj/$(PLATFORM)/speech2text`/speech2text.tar.gz . && $(DEL_FILE) -r .obj/$(PLATFORM)/speech2text

mocclean:

uiclean:

yaccclean:
lexclean:
clean:
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


####### Sub-libraries

distclean: clean
	-$(DEL_FILE) $(OPIEDIR)/bin/$(TARGET) $(TARGET)


lupdate:
	lupdate -noobsolete $(PRO)

lrelease:
	lrelease $(PRO)

ipk:
	tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="" install && ipkg-build ; rm -rf ; )

opie-lupdate:
	opie-lupdate $(PRO)

opie-lrelease:
	opie-lrelease $(PRO)

messages:
	xgettext -C -n -ktr -kQT_TRANSLATE_NOOP speech2text.ui -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a speech2text.ui -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po'

FORCE:

####### Compile

.obj/$(PLATFORM)/speech2text.o: speech2text.ui 
	$(CC) -c $(CFLAGS) $(INCPATH) -o .obj/$(PLATFORM)/speech2text.o speech2text.ui

####### Install

install_target: all 
	@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)$(OPIEDIR)/bin/" || $(MKDIR) "$(INSTALL_ROOT)$(OPIEDIR)/bin/"
	-$(INSTALL_FILE) "$(OPIEDIR)/bin/$(QMAKE_TARGET)" "$(INSTALL_ROOT)$(OPIEDIR)/bin/$(QMAKE_TARGET)"

uninstall_target: 
	-$(DEL_FILE) "$(INSTALL_ROOT)$(OPIEDIR)/bin/$(QMAKE_TARGET)"
	-$(DEL_DIR) "$(INSTALL_ROOT)$(OPIEDIR)/bin/"


install: install_target  

uninstall: uninstall_target
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.