Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linux package version has no .so lib but only dll
28-04-2013, 09:13 AM (This post was last modified: 28-04-2013 09:15 AM by loloof64.)
Post: #1
Linux package version has no .so lib but only dll
Hello everyone,

I noticed from the archive page of OhNet :
  • linux x64 package, release version, from April, 12 2013 has only dll
  • all os package, release version, April 12 2013 also only have dll

Is that mandatory ?

Must I compile from sources, or is there already an available archive with .so libs ?

(In fact, I just want users of my programs not to worry about having all dependencies)

Regards
Find all posts by this user
29-04-2013, 08:39 AM
Post: #2
RE: Linux package version has no .so lib but only dll
In short: ohNet supports only static linking on Linux. You'd need to build it yourself and you might need to do a bit of extra work to build a dynamic library.

At length: Some of ohNet can be built as a shared library, but presently that's used mostly for the .NET/Mono/Java bindings. I believe it exports only the C API, not the C++ one. It also doesn't include any of the UPnP service providers/proxies.

These are the files I see when I download ohNet-1.0.647-Linux-x64-Release.tar.gz:

Code:
CpAvOpenhomeOrgInfo1.net.dll
CpAvOpenhomeOrgMediaServer1.net.dll
...
DvUpnpOrgScheduledRecording2.net.dll
DvUpnpOrgSwitchPower1.net.dll
    .NET/Mono assemblies for UPnP services.
libohNet.so
    Shared object file containing ohNet core.
libohNetCore.a
    Static library containing ohNet core.
libohNetDevices.a
    Static library containing UPnP service providers.
libohNetProxies.a
    Static library containing UPnP service proxies.
libShell.a
    Static library. (I'll need to check what this one is. I don't think you need it.)
libTestFramework.a
    Static library used to build ohNet tests. (You don't need this.)
ohNet.net.dll
    .NET/Mono assembly containing ohNet bindings. Use this with libohNet.so.
ohNetTestsCore.a
    Static library containing ohNetTests. (You don't need this.)
Visit this user's website Find all posts by this user
29-04-2013, 08:45 AM
Post: #3
RE: Linux package version has no .so lib but only dll
Hello, thanks for your answer :

in fact I would like to use the Java bindings (I forgot to mention that) : so is there a way to build a ohnet jar dependency ?

Regards
Find all posts by this user
29-04-2013, 12:21 PM
Post: #4
RE: Linux package version has no .so lib but only dll
Off-hand, I'm not sure. I'll see if someone who's more familiar the Java bindings can advise you.
Visit this user's website Find all posts by this user


Forum Jump: