PDA

View Full Version : "No such file or directory" when building on XP (development is on a Mac)



Jeffb
23rd June 2010, 04:25
Hi guys

My app builds and runs perfectly on a Mac.

When I try to build in on Win XP through either the console or Qt creator I get:
"JBWindowfactory.h: no such file or directory"

This and several other files are in subdirectories listed in the project file.

Using Qt 4.6.2 (32 bit)

the .pro file

QT += network \
sql \
webkit \
multimedia \
testlib
TARGET = MarketingManager
TEMPLATE = app
SOURCES += main.cpp \
JBUtilities.cpp \
..
Views/JBTreeWidget.cpp \
Factories/JBWindowfactory.cpp \
..
Views/jbConnectableWidget.cpp
HEADERS += JBConstants.h \
..
Views/JBTreeWidget.h \
Factories/JBWindowfactory.h \
Windows/jbMainwindow.h \
..
ui_jbMainWindow.h \
Views/jbConnectableWidget.h
FORMS += jbMainWindow.ui

main.cpp

#include <QtGui/QApplication>
#include <QString>
#include <QtSql>
#include <QDir>
#include <iostream>

#include "JBWindowfactory.h"
#include "JBConstants.h"

using namespace std;

int main(int argc, char *argv[])
{

etc.

Adding the following to my project file doesn't help:
INCLUDEPATH += .
DEPENDPATH += . Factories

Any help would be appreciated.
Thanks
Jeff

Jeffb
23rd June 2010, 06:03
No worries

Got it sorted.

I needed to add:

INCLUDEPATH += . Factories

to the project file.

Regards
Jeff