Results 1 to 4 of 4

Thread: Qextserialport

  1. #1
    Join Date
    Mar 2010
    Posts
    15

    Default Qextserialport

    Hi,
    I tried to compile the examples from http://code.google.com/p/qextserialport/. I am using Mac Os.

    First I compile the src.pro. I get some dynamic library. Then I tried to
    compile the examples. But at the runtime I get: dyld: Library not loaded:
    libqextserialportd.1.dylib.

    When I link the src with CONFIG += staticlib it is the same issue.

    Under Windows it worked.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qextserialport

    Is the dylib visible to the example?

    Adding -staticlib to your .pro isn't going to do much unless you have recompiled the Qt library.

  3. #3
    Join Date
    Mar 2010
    Posts
    15

    Default Re: Qextserialport

    Ok now I renamed libqextserialportd.1.2.0.dylib to libqextserialportd.1.dylib an move it to /usr/lib and it work. But when I remove the libs from src/build it doesn't compile.

  4. #4
    Join Date
    Mar 2010
    Posts
    15

    Default Re: Qextserialport

    And do I really have to recompile my Qt Library static. because when I add CONFIG += staticlib I get an libqextserialportd.a.

    And the event Exaple worked with adding LIBS+=libqextserialportd.a. But in the portenumerator I get

    :-1: error: collect2: ld returned 1 exit status

    here is my enumerator Project File:
    Qt Code:
    1. PROJECT = enumerator
    2. TEMPLATE = app
    3. INCLUDEPATH += ../../src
    4. LIBS+=libqextserialportd.a
    5. OBJECTS_DIR = tmp
    6. MOC_DIR = tmp
    7. UI_DIR = tmp
    8.  
    9. SOURCES += main.cpp
    To copy to clipboard, switch view to plain text mode 

    And here the working Event:
    Qt Code:
    1. PROJECT = event
    2. TEMPLATE = app
    3. INCLUDEPATH += ../../src
    4. LIBS+=libqextserialportd.a
    5. OBJECTS_DIR = tmp
    6. MOC_DIR = tmp
    7. UI_DIR = tmp
    8.  
    9. SOURCES += main.cpp PortListener.cpp
    10. HEADERS += PortListener.h
    To copy to clipboard, switch view to plain text mode 

    The libqextserialportd.a is in both folders.
    Last edited by Max123; 27th March 2010 at 23:02.

Similar Threads

  1. New Qextserialport
    By pherthyl in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 01:09
  2. QTimer with Qextserialport
    By jjbabu in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2008, 22:15
  3. QextSerialPort
    By Diph in forum Newbie
    Replies: 5
    Last Post: 13th September 2008, 19:18
  4. QExtSerialPort
    By baray98 in forum Qt Programming
    Replies: 1
    Last Post: 9th September 2008, 20:46
  5. QExtSerialPort with readyRead()
    By tho97 in forum Qt Programming
    Replies: 4
    Last Post: 27th August 2008, 20:18

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.