All,
After installing QT/embedded on the 7300: most examples fail to build without
errors. The only two examples I have made successfully are buttongroups and
popup.
******Here are the first 10 errors from the make of "checklists":
checklists.cpp: In constructor `CheckLists::CheckLists(QWidget*, const char*)':
checklists.cpp:41: error: invalid use of undefined type `struct QListView'
checklists.h:16: error: forward declaration of `struct QListView'
checklists.cpp:42: error: no matching function for call to `QVBoxLayout::
addWidget(QListView*&)'
../../include/qlayout.h:386: error: candidates are: void
QBoxLayout::addWidget(QWidget*, int, int)
checklists.cpp:43: error: `addColumn' undeclared (first use this function)
checklists.cpp:43: error: (Each undeclared identifier is reported only once for
each function it appears in.)
checklists.cpp:44: error: `setRootIsDecorated' undeclared (first use this
function)
checklists.cpp:47: error: `QListViewItem' undeclared (first use this function)
check
****** excerpt from checklists.cpp:
#include <qlistview.h>
#include <qvbox.h>
#include <qlabel.h>
#include <qvaluelist.h>
#include <qstring.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include "checklists.h"
.
.
.
lv1 = new QListView( this ); // line 41
vbox1->addWidget( lv1 );
lv1->addColumn( "Items" );
lv1->setRootIsDecorated( TRUE );
// create a list with 4 ListViewItems which will be parent items of other Li
stViewItems
QValueList<QListViewItem *> parentList;
****** excerpt from checklists.h:
#ifndef CHECKLISTS_H
#define CHECKLISTS_H
#include <qwidget.h>
class QListView; // line 16
class QLabel;
class CheckLists : public QWidget
{
Q_OBJECT
****** this is what make is attempting to do:
:checklists# make
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -O2 -DQT_NO_DEBUG -DQT_SHARED -I/u
sr/local/qt-embedded-free-3.3.4/mkspecs/qws/linux-generic-g++ -I. -I. -I../../in
clude -I.moc/release-shared-emb-generic/ -o .obj/release-shared-emb-generic/chec
klists.o checklists.cpp
****** this is my ln to g++:
:examples# ll /usr/bin/g++
lrwxrwxrwx 1 root root 7 Sep 14 19:20 /usr/bin/g++ -> g++-3.3*
****** I am using Qt/embedded 3.3.4 and this version of g++:
:examples# g++ -dumpversion
3.3.5
****** checklists.h exists in two places:
:checklists# find / -name qlistview.h
/usr/local/qt-embedded-free-3.3.4/src/widgets/qlistview.h
/usr/local/qt-embedded-free-3.3.4/include/qlistview.h
****** this is the output of "env"
HOME=/root
LOGNAME=root
_=/usr/bin/env
:checklists# env | more
HZ=100
SHELL=/bin/bash
TERM=vt100
HUSHLOGIN=FALSE
QTDIR=/usr/local/qt-embedded-free-3.3.4
OLDPWD=/usr/local/qt-embedded-free-3.3.4/examples
USER=root
LD_LIBRARY_PATH=/usr/local/qt-embedded-free-3.3.4/lib
QTDIR2=/usr/local/qt-embedded-free-3.3.4
MAIL=/var/mail/root
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/qt-embedded-free-3
.3.4/bin
PWD=/usr/local/qt-embedded-free-3.3.4/examples/checklists
PS1=:\W#
SHLVL=1
HOME=/root
LOGNAME=root
_=/usr/bin/env
******Thanks in advance.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|