View Full Version : Qextserialport
Max123
27th March 2010, 20:11
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.
squidge
27th March 2010, 20:57
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.
Max123
27th March 2010, 21:49
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.
Max123
27th March 2010, 23:53
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:
PROJECT = enumerator
TEMPLATE = app
INCLUDEPATH += ../../src
LIBS+=libqextserialportd.a
OBJECTS_DIR = tmp
MOC_DIR = tmp
UI_DIR = tmp
SOURCES += main.cpp
And here the working Event:
PROJECT = event
TEMPLATE = app
INCLUDEPATH += ../../src
LIBS+=libqextserialportd.a
OBJECTS_DIR = tmp
MOC_DIR = tmp
UI_DIR = tmp
SOURCES += main.cpp PortListener.cpp
HEADERS += PortListener.h
The libqextserialportd.a is in both folders.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.