PDA

View Full Version : Problems with building a static version with qextserialport



inger
24th August 2011, 13:09
Hi,
I have tried to build a static version of my program, that I want to use on a PC without Qt. First I tried a simple program, and that is running on the other PC. Works fine.
:)
I have followed this link: http://doc.trolltech.com/latest/deployment-x11.html, and the simple program runs fine.

When I tried to qmake my program that include QextSerialPort, I got this error message:
"WARNING: source.path is not defined: install target not created".
Does anybody know what I can do to solve this problem?:)

high_flyer
24th August 2011, 13:11
in what was is QextSerialPort "included" in your application?
Did you its source to your application, or do you use from a location outsider your own project tree?

inger
24th August 2011, 14:15
My project is named: EikeTest.pro. This pro-file includes several .h and .cpp files as shown:

PROJECT = EikeTest
QT += core gui sql

#CONFIG += debug

OBJECTS_DIR = obj

TARGET = EikeTest
TEMPLATE = app
TEMPLATE += lib


SOURCES += main.cpp\
eiketesten.cpp \
qextserialbase.cpp \
qextserialport.cpp \
gsmkommunikasjon.cpp \
tabdialog.cpp \
startprogram.cpp


HEADERS += eiketesten.h \
qextserialbase.h \
qextserialport.h \
gsmkommunikasjon.h \
tabdialog.h \
startprogram.h \



unix:HEADERS += posix_qextserialport.h
unix:SOURCES += posix_qextserialport.cpp
unix:DEFINES += _TTY_POSIX_
unix:target.path += /usr/local/lib

win32:HEADERS += win_qextserialport.h
win32:SOURCES += win_qextserialport.cpp
win32:DEFINES += _TTY_WIN_
win32:target.path += c:/WINNT
win32:DLLDESTDIR = ../

FORMS += eiketesten.ui

LIBS += -lqextserialport -L../lib

INSTALLS += target sources

DESTDIR = lib

All these files mentioned here are located in the project directory, but not the libraries.
The header files includes the header files that are used in the class like:


#ifndef EIKETESTEN_H
#define EIKETESTEN_H

#include <qwidget.h>
#include <QChar>
.....
#include "posix_qextserialport.h"
#include "qextserialbase.h"
#include "qextserialport.h"
#include "win_qextserialport.h"

class QextSerialPort;
class GSMkommunikasjon;
class TabDialog;
class StartPageTab;
...
:)
I use Ubuntu Linux as OS.

inger
29th August 2011, 14:05
Now I got the solution:)

I had to add the source.path into the PRO file. I did ithis in line 43:

sousce.path = /home/user/EikeTest

This is solved!