jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
639 stars 199 forks source link

Linux library names #8

Closed jcurl closed 8 years ago

jcurl commented 8 years ago

After buliding packages for ubuntu (using dh_make to create the templates), the libnserial.so is in the "dev" package, while libnserial.so.1 and libnserial.so.1.0 is in the main package. Naturally, to get software working, we shouldn't include the "-dev" package, but just the single binary package.

Checking other packages in Ubuntu shows the same structure for non-mono libraries, so this is the way to go.

The DLL imports need to be modified to use "libnserial.so.1" instead (which is a little contradictory, because the mono docs suggest to use "nserial" where possible, so ".dll" or ".so" is attached depending on the platform. More important is the packaging for native binaries and making mono suit.

We should not use the config file for now that maps the nserial to libnserial.so.1, as some testing has shown that the dll.config file is not always reliably copied by building, and the user should be able to customise this for themselves for their specific project.

jcurl commented 8 years ago

Resolved with 99c95e7bdd520880313a6f822c6c805deb2fb528