Results 1 to 4 of 4

Thread: Problems with building a static version with qextserialport

  1. #1
    Join Date
    Aug 2011
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Problems with building a static version with qextserialport

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problems with building a static version with qextserialport

    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?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    inger (29th August 2011)

  4. #3
    Join Date
    Aug 2011
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with building a static version with qextserialport

    My project is named: EikeTest.pro. This pro-file includes several .h and .cpp files as shown:
    Qt Code:
    1. PROJECT = EikeTest
    2. QT += core gui sql
    3.  
    4. #CONFIG += debug
    5.  
    6. OBJECTS_DIR = obj
    7.  
    8. TARGET = EikeTest
    9. TEMPLATE = app
    10. TEMPLATE += lib
    11.  
    12.  
    13. SOURCES += main.cpp\
    14. eiketesten.cpp \
    15. qextserialbase.cpp \
    16. qextserialport.cpp \
    17. gsmkommunikasjon.cpp \
    18. tabdialog.cpp \
    19. startprogram.cpp
    20.  
    21.  
    22. HEADERS += eiketesten.h \
    23. qextserialbase.h \
    24. qextserialport.h \
    25. gsmkommunikasjon.h \
    26. tabdialog.h \
    27. startprogram.h \
    28.  
    29.  
    30.  
    31. unix:HEADERS += posix_qextserialport.h
    32. unix:SOURCES += posix_qextserialport.cpp
    33. unix:DEFINES += _TTY_POSIX_
    34. unix:target.path += /usr/local/lib
    35.  
    36. win32:HEADERS += win_qextserialport.h
    37. win32:SOURCES += win_qextserialport.cpp
    38. win32:DEFINES += _TTY_WIN_
    39. win32:target.path += c:/WINNT
    40. win32:DLLDESTDIR = ../
    41.  
    42. FORMS += eiketesten.ui
    43.  
    44. LIBS += -lqextserialport -L../lib
    45.  
    46. INSTALLS += target sources
    47.  
    48. DESTDIR = lib
    To copy to clipboard, switch view to plain text mode 

    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:

    Qt Code:
    1. #ifndef EIKETESTEN_H
    2. #define EIKETESTEN_H
    3.  
    4. #include <qwidget.h>
    5. #include <QChar>
    6. .....
    7. #include "posix_qextserialport.h"
    8. #include "qextserialbase.h"
    9. #include "qextserialport.h"
    10. #include "win_qextserialport.h"
    11.  
    12. class QextSerialPort;
    13. class GSMkommunikasjon;
    14. class TabDialog;
    15. class StartPageTab;
    16. ...
    To copy to clipboard, switch view to plain text mode 

    I use Ubuntu Linux as OS.

  5. #4
    Join Date
    Aug 2011
    Posts
    25
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [SOLVED]Problems with building a static version with qextserialport

    Now I got the solution

    I had to add the source.path into the PRO file. I did ithis in line 43:
    Qt Code:
    1. sousce.path = /home/user/EikeTest
    To copy to clipboard, switch view to plain text mode 

    This is solved!

Similar Threads

  1. Replies: 1
    Last Post: 18th August 2010, 08:15
  2. Problem building stripped down version of Qt 4.6.2
    By blukske in forum Installation and Deployment
    Replies: 1
    Last Post: 19th May 2010, 13:34
  3. Problems with static compile for QextSerialPort
    By blm in forum Qt Programming
    Replies: 4
    Last Post: 6th October 2009, 12:55
  4. Building QExtserialport with Visual Studio 2008
    By bnilsson in forum Qt Programming
    Replies: 7
    Last Post: 7th June 2009, 11:15
  5. Replies: 2
    Last Post: 8th March 2007, 22:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.