Here is some output:
qmake -v
QMake version 2.01a
Using Qt version 4.3.2 in /usr/local/Qt4/lib
echo $PATH
/usr/local/Qt4/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
## The following line was manually inserted.
QT = sql gui
# Input
HEADERS += areacodescombobox.h clientNotebook.h ../../userFunc.h
FORMS += clientNotebook.ui
SOURCES += areacodescombobox.cpp clientNotebook.cpp main.cpp ../../userFunc.cpp
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
## The following line was manually inserted.
QT = sql gui
# Input
HEADERS += areacodescombobox.h clientNotebook.h ../../userFunc.h
FORMS += clientNotebook.ui
SOURCES += areacodescombobox.cpp clientNotebook.cpp main.cpp ../../userFunc.cpp
To copy to clipboard, switch view to plain text mode
Doesn't make any difference if I use full pathname to qmake.
This is full error message:
make /usr/local/Qt4/bin/uic clientNotebook.ui -o ui_clientNotebook.h
Warning: name layoutWidget is already used
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_SHARED -I/usr/local/Qt4/mkspecs/linux-g++ -I. -I/usr/local/Qt4/include/QtGui -I/usr/local/Qt4/include/QtGui -I/usr/local/Qt4/include/QtSql -I/usr/local/Qt4/include/QtSql -I/usr/local/Qt4/include -I. -I. -I. -o areacodescombobox.o areacodescombobox.cpp
In file included from ./areacodescombobox.h:10,
from areacodescombobox.cpp:1:
./../../userFunc.h:7:19: error: QString: No such file or directory
./../../userFunc.h:8:23: error: QStringList: No such file or directory
make: *** [areacodescombobox.o] Error 1
// areacodescombobox.cpp
#include "./areacodescombobox.h"
...
// areacodescombobox.cpp
#include "./areacodescombobox.h"
...
To copy to clipboard, switch view to plain text mode
// areacodescombobox.h
#ifndef AREACODESCOMBOBOX_H
#define AREACODESCOMBOBOX_H
//#include <QWidget>
#include <QtSql>
#include <QSqlQuery>
#include <QComboBox>
#include <QApplication>
#include <QMessageBox>
#include "../../userFunc.h"
{
Q_OBJECT
public:
AreacodesCombobox
(QWidget *parent
= 0);
void initializeFields();
void setSelectedLocale(const QString& aSelectedLocale);
void setSelectedAreacode(const QString& aSelectedAreacode);
const QString& selectedLocale() const;
const QString& selectedAreacode() const;
private slots:
void on_returnPressed();
private:
};
// areacodescombobox.h
#ifndef AREACODESCOMBOBOX_H
#define AREACODESCOMBOBOX_H
//#include <QWidget>
#include <QtSql>
#include <QSqlQuery>
#include <QComboBox>
#include <QApplication>
#include <QMessageBox>
#include "../../userFunc.h"
class AreacodesCombobox : public QComboBox
{
Q_OBJECT
public:
AreacodesCombobox(QWidget *parent = 0);
void initializeFields();
void setSelectedLocale(const QString& aSelectedLocale);
void setSelectedAreacode(const QString& aSelectedAreacode);
const QString& selectedLocale() const;
const QString& selectedAreacode() const;
private slots:
void on_returnPressed();
private:
QString vSelectedLocale;
QString vSelectedAreacode;
};
To copy to clipboard, switch view to plain text mode
/**************************************************************************
* userFunc.h
* Utility Functions
**************************************************************************/
#ifndef USERFUNC_H
#define USERFUNC_H
#include <QString>
#include <QStringList>
//#include "/usr/local/Qt4/include/Qt/qstring.h"
//#include "/usr/local/Qt4/include/Qt/qstringlist.h"
#endif
/**************************************************************************
* userFunc.h
* Utility Functions
**************************************************************************/
#ifndef USERFUNC_H
#define USERFUNC_H
#include <QString>
#include <QStringList>
//#include "/usr/local/Qt4/include/Qt/qstring.h"
//#include "/usr/local/Qt4/include/Qt/qstringlist.h"
QString searchWordsClause( QString, QString, QString, bool, QString );
void addWhereClause( QString &, QString, QString,QString, QString, QString, QString);
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks