mbahar94 / qextserialport

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

error linking shared library in example (qt creator) #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Linux Os (ubuntu 10.10)
1.compile project qextserialportd with qtcreator
2.open and build the example enumerator with qtcreator

What is the expected output? What do you see instead?
The project is built but I'm not able to run the example: 
libqextserialportd.so.1 is not found. The compiler exits with a 127 error.

I changed the .pro file adding an absolute path for the library (LIBS += 
-L/path/to/library) but the error is the same.

I changed the .pro file adding a relative path for the library (LIBS += 
-L../../src/build) but the error is the same.

I'd like to link the shared library and don't change LD_LIBRARY_PATH

Thank you

Original issue reported on code.google.com by tecnico....@gmail.com on 2 Nov 2010 at 8:02

GoogleCodeExporter commented 9 years ago
I have same setup and see the same behaviour. Not even putting the library in 
the same directory helps, but I tried to put it in /usr/lib and then the 
program runs. I suppose the library has to be put in a directory included in 
/etc/ld.so.conf.

When running these examples, wouldn't it be easier with static linking? Is it 
possible to select that in the project file?

Original comment by erik.lun...@aol.se on 16 Jan 2011 at 2:43

GoogleCodeExporter commented 9 years ago
This issue is not valid any more for current version. Before QextSerialPort 
1.2beta released, your can download the source using Mercurial.

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:35