mbahar94 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Examples don't run on MacOs #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by tuxia...@gmail.com on 27 Mar 2010 at 8:54

GoogleCodeExporter commented 9 years ago
In Windows I get an "collect2: ld returned 1 exit status" error, with dll. And
undefined reference with staitc.

Original comment by tuxia...@gmail.com on 27 Mar 2010 at 5:25

GoogleCodeExporter commented 9 years ago
As with any dynamic lib, you'll need to do one of the following:
 * install the dynamic lib to one of the spots dyld knows to look for it
 * add the path to the library to your DYLD_LIBRARY_PATH - you can either export this to your bash env if you're 
running from the command line, or add it to your project run configuration in 
QtCreator.  The default is 
$(HOME)/lib:/usr/local/lib:/lib:/usr/lib

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m
an1/dyld.1.html has 
more info

Original comment by lst...@gmail.com on 27 Mar 2010 at 7:42

GoogleCodeExporter commented 9 years ago
Ok I will try it. And whats with static linking is it possible and how does it 
works?

Original comment by tuxia...@gmail.com on 27 Mar 2010 at 7:49

GoogleCodeExporter commented 9 years ago
Ok static linking seems to work by adding libqextserialportd.a to the project 
folder
and LIBS+=libqextserialportd.a to the projekt file. This works for the event 
example
but not for the enumerator. There I get:

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

Original comment by tuxia...@gmail.com on 27 Mar 2010 at 11:12

GoogleCodeExporter commented 9 years ago

Original comment by dbzhang...@gmail.com on 10 Apr 2012 at 4:13